Posted August 15, 201411 yr When i try to add a name to my block, it does not work. PreInitialization: @EventHandler public void preInit(FMLPreInitializationEvent event){ mysticOre = new MysticOre(Material.rock).setCreativeTab(CreativeTabs.tabBlock) .setBlockName("mysticOre").setLightLevel(0.5f); GameRegistry.registerBlock(mysticOre, "Mystic Ore"); } I Put the lang file in my folder (Directory>src>main>resources>assets>mystic>lang>en_US>en_US.yml) tile.mysticOre.name=Mystic Ore
August 15, 201411 yr Put it in a file called "en_US" with the extension being ".lang" (not ".yml") directly in "*directory*/src/main/resources/assets/*modid*/lang/" folder
August 16, 201411 yr and for blocks you need: tile.<unlocalizedname>.name=<what you want the user to see> so tile.mysticOre.name=Mystical Ore a few other examples are: item.itemSwordSoul.name=Soul Rend itemGroup.RoT=Rise of Tristram itemGroup is custom tabs for creative. Currently updating my Mod to 1.10.2 https://bitbucket.org/hugo_the_dwarf/riseoftristram2016/src?at=master
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.