Posted January 3, 201411 yr Hello, I recently update Forge to 1.7.2 but now i don't know how to register item and blocks. Another problem is that the registerItemRenderer() method only takes Item as a parameter and not Block. Any help is greatly appreciated. ss7 You sir are a god damn hero.
January 5, 201411 yr GameRegistry.registerBlock(block, name); GameRegistry.registerItem(item, name); Doesn't work in eclipse gives the following error: "Syntax error on tokens, ConstructorHeaderName expected instead" Help us make the unofficial [de]obfuscated function names in 1.7.2! http://www.minecraftforge.net/forum/index.php/topic,15275.msg77472.html
January 6, 201411 yr GameRegistry.registerBlock(block, name); GameRegistry.registerItem(item, name); Doesn't work in eclipse gives the following error: "Syntax error on tokens, ConstructorHeaderName expected instead" I works for me: public static Block myNewBlock = new Block(Material.someMaterial); GameRegistry.registerBlock(myNewBlock, "myBlock"); public static Block myNewItem = new Item(); GameRegistry.registerItem(myNewItem, "myItem");
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.