Jump to content

[1.20.1] How do I make a custom Smithing Template?


MrBelieve

Recommended Posts

  • 3 weeks later...

i've tried doing this 

public static final RegistryObject<Item> SMITHING_TEMPLATE_ROSE = ITEMS.register("smithing_template_rose", () -> new SmithingTemplateItem( Component.translatable(Util.makeDescriptionId("item", new ResourceLocation(RoseGoldMod.MOD_ID,"smithing_template.rose_upgrade.applies_to"))).withStyle(ChatFormatting.BLUE), Component.translatable(Util.makeDescriptionId("item", new ResourceLocation(RoseGoldMod.MOD_ID,"smithing_template.rose_upgrade.ingredients"))).withStyle(ChatFormatting.BLUE), Component.translatable(Util.makeDescriptionId("upgrade", new ResourceLocation(RoseGoldMod.MOD_ID,"rose_upgrade"))).withStyle(ChatFormatting.GRAY), Component.translatable(Util.makeDescriptionId("item", new ResourceLocation(RoseGoldMod.MOD_ID,"smithing_template.rose_upgrade.base_slot_description"))), Component.translatable(Util.makeDescriptionId("item", new ResourceLocation(RoseGoldMod.MOD_ID,"smithing_template.rose_upgrade.additions_slot_description"))), SmithingTemplateItem.createNetheriteUpgradeTemplate().getBaseSlotEmptyIcons(), SmithingTemplateItem.createNetheriteUpgradeTemplate().getAdditionalSlotEmptyIcons()));

but it gives me these errors:

Caused by: java.lang.IllegalStateException: Some intrusive holders were not registered: [Reference{null=air}, Reference{null=air}] Hint: Did you register all your registry objects? Registry stage: ACTIVE

finished with non-zero exit value -1

Link to comment
Share on other sites

  • 7 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.