Posted November 7, 20177 yr Hi all! I have a mod that registers this recipe in the init method (when FMLInitializationEvent is fired): ItemStack output = new ItemStack(Items.WRITTEN_BOOK); NBTTagCompound compound = new NBTTagCompound(); output.setTagCompound(compound); compound.setTag("title", new NBTTagString(new TextComponentTranslation("giacomostravelogue.title").getFormattedText())); compound.setBoolean("giacomostravelogue", true); ResourceLocation name = new ResourceLocation(MODID + ":travelogue_recipe"); ResourceLocation group = null; Ingredient ingredient1 = Ingredient.fromItem(Items.COMPASS); Ingredient ingredient2 = Ingredient.fromItem(Items.WRITABLE_BOOK); GameRegistry.addShapelessRecipe(name, group, output, ingredient1, ingredient2); As you can see the tag "title" has a value that depends on the language. Is there a way to put in the json recipe something like that? Edited November 7, 20177 yr by Zacomat
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.