Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[1.7.2] How to register items and blocks


Recommended Posts



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.



You sir are a god damn hero.

Link to comment
Share on other sites

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");

Link to comment
Share on other sites

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.

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 Privacy Policy.