SHARE
TWEET

Untitled

Hookoogold Jul 19th, 2017 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package com.hookoogold.testmod.block;
  2.  
  3. import net.minecraft.block.Block;
  4. import net.minecraft.item.Item;
  5. import net.minecraft.item.ItemBlock;
  6. import net.minecraftforge.fml.common.registry.GameRegistry;
  7.  
  8. public class ModBlocks {
  9.    
  10.     public static Item getItemBlock(Block block) {
  11.         return new ItemBlock(block).setRegistryName(block.getRegistryName());
  12.     }
  13.    
  14.     @GameRegistry.ObjectHolder("testmod:test")
  15.     public static BlockTest blockTest;
  16.    
  17.     public static Item iBlockTest = getItemBlock(blockTest);
  18. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top