Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @EventHandler
- public void init(FMLInitializationEvent event){
- registerBlock(new PetrifiedLog(), "petrifiedWood");
- OreDictionary.registerOre("stone", PetrifiedLog.block);
- }
- @EventHandler
- public void postInit(FMLPostInitializationEvent event){
- }
- void registerBlock(Block block, String registryName){
- block.setRegistryName(registryName);
- block.setUnlocalizedName(block.getRegistryName().toString());
- ItemBlock item = new ItemBlock(block);
- item.setRegistryName(registryName);
- item.setUnlocalizedName(block.getRegistryName().toString());
- GameRegistry.register(block);
- GameRegistry.register(item);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement