I registered new blocks and items. It was difficult to find how to register these. In my mods before ive never added new blocks biomes ore anything like that.
As the unobfuscated versions of minecraft arent out that long, it is difficult to find good documentations of the class names.
I first tried fabrics AbstractBlock settings which looked like this:
val SAPPHIRE_ORE = registerBlock(
“sapphire_ore”,
Block(AbstractBlock.Settings.create()
.mapColor(MapColor.STONE_GRAY)
.instrument(Instrument.BASE_DRUM)
.requiresTool()
.strength(3.0f, 3.0f)
.sounds(BlockSoundGroup.STONE))
)
After asking Gemini and telling it that I am working with the latest minecraft version (and that it is NOT 1.21.4) I made the system use lateinit var and an helper function.
Comments 1
peak bro keep going!!
Sign in to join the conversation.