feat(models): add block model boxes + picking

This commit is contained in:
Jacobwasbeast
2026-03-11 15:12:35 -05:00
parent 6fabb8fd39
commit 788b7167a2
26 changed files with 1429 additions and 4 deletions

View File

@@ -14,6 +14,7 @@ public class ExampleMod : IMod
public static RegisteredBlock? RubyOre;
public static RegisteredBlock? RubyStone;
public static RegisteredBlock? RubyWoodPlanks;
public static RegisteredBlock? RubyChair;
public static RegisteredBlock? RubySand;
public static RegisteredSlabBlock? RubyStoneSlab;
public static RegisteredSlabBlock? RubyWoodSlab;
@@ -236,6 +237,16 @@ public class ExampleMod : IMod
.Name(Text.Translatable("block.examplemod.ruby_wood_planks"))
.InCreativeTab(CreativeTab.BuildingBlocks));
RubyChair = Registry.Block.Register("examplemod:ruby_chair",
new BlockProperties()
.Material(MaterialType.Wood)
.Hardness(1.5f)
.Resistance(5f)
.Sound(SoundType.Wood)
.Model("examplemod:block/ruby_chair")
.Name(Text.Translatable("block.examplemod.ruby_chair"))
.InCreativeTab(CreativeTab.Decoration));
RubySand = Registry.Block.Register("examplemod:ruby_sand",
new RubySandBlock(),
new BlockProperties()