Blocks
Custom Blocks to create
Imports
To get started add the import
import dev.xdpxi.xdlib.api.v3.Register;
import net.minecraft.block.AbstractBlock;
import net.minecraft.block.Block;
import net.minecraft.sound.BlockSoundGroup;
Custom Blocks
To make a custom item you add Register.registerBlock()
to the Mod Initializer
test_block = Register.registerBlock(
new Block(AbstractBlock.Settings.create().sounds(BlockSoundGroup.STONE)),
"test_block",
MOD_ID
);
Last updated