I'm new to modding and currently I only know how to add items (normal, food, armor, tools) and normal blocks,
but I would like to add a functional block, a 5x5 crafting table.
Any help would be appreciated, but for a better understanding I would prefer a (link to a) (video) tutorial.
Also I tried to add an shield which somehow works but it doesn't load any texture and it doesn't have a durability.
This is the code for the shield
public static final RegistryObject TEST_SHIELD = ITEMS.register("test_shield", ()-> new ShieldItem(new Item.Properties().group(TestGroup.TEST_MOD).maxStackSize(1)));
test_shield.json (I copied this code because a shield works different from a normal item)
Hi,
I'm new to modding and currently I only know how to add items (normal, food, armor, tools) and normal blocks,
but I would like to add a functional block, a 5x5 crafting table.
Any help would be appreciated, but for a better understanding I would prefer a (link to a) (video) tutorial.
Also I tried to add an shield which somehow works but it doesn't load any texture and it doesn't have a durability.
This is the code for the shield
public static final RegistryObject TEST_SHIELD = ITEMS.register("test_shield", ()-> new ShieldItem(new Item.Properties().group(TestGroup.TEST_MOD).maxStackSize(1)));
test_shield.json (I copied this code because a shield works different from a normal item)
{"parent": "item/generated",
"textures": {
"layer0": "testmod:items/test_shield",
"overrides": [ {
"predicate": {"blocking": 1},
"model": "testmod:item/test_shield"} ] } }
I use IntelliJ IDEA to make the mod with these versions Forge 36.2.35, Minecraft 1.16.5, SDK Amazon Corretto version 1.8.0_332, snapshot_20210309