Nexuslib Wiki › Guides › Create Custom Block Families Without Complex Code
Create Custom Block Families Without Complex Code
What Are Block Families?
Block families in NexusLib let mods group related blocks together—like logs, stripped logs, wood, and stripped wood—so they share consistent properties and recipes without requiring extensive custom coding.
How Block Families Work
NexusLib provides a clean system for defining block families that automatically:
- Link related block variants together
- Generate consistent recipes across the family
- Apply shared properties like tool requirements and harvest levels
- Ensure blocks behave predictably when used in crafting
Mods using NexusLib can define these families in their configuration, and the mod handles the rest. As a player, you benefit from:
- Consistent crafting recipes for similar blocks
- Reliable tool interactions across modded content
- Fewer bugs from conflicting block definitions
You won't interact with this system directly—it works behind the scenes. However, you'll notice that modded wood types, stone variants, and other block sets behave more consistently and logically than they might otherwise.