SHARE
TWEET

Class des blocks

0mega_z3ll Feb 19th, 2018 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package fr.omega_zell.minecraftplus.Block;
  2.  
  3. import fr.omega_zell.minecraftplus.MinecraftPlus;
  4. import net.minecraft.block.Block;
  5. import net.minecraft.block.material.Material;
  6. import net.minecraft.client.resources.model.ModelResourceLocation;
  7. import net.minecraft.creativetab.CreativeTabs;
  8. import net.minecraft.item.Item;
  9. import net.minecraftforge.client.model.ModelLoader;
  10. import net.minecraftforge.fml.common.registry.GameRegistry;
  11. import net.minecraftforge.fml.relauncher.Side;
  12. import net.minecraftforge.fml.relauncher.SideOnly;
  13.  
  14. public class Mpblocks
  15. {
  16.      public static final Block COMPOST = new SolFertile(Material.ground).setCreativeTab(CreativeTabs.tabBlock).setHardness(5.0F).setResistance(20.0F).setUnlocalizedName("compost");
  17.          
  18.          public static void registerBlocks()
  19.          {
  20.              GameRegistry.registerBlock(COMPOST, "compost_block");
  21.          }
  22.          
  23.          @SideOnly(Side.CLIENT)
  24.          public static void registerBlocksModels()
  25.          {
  26.              ModelLoader.setCustomModelResourceLocation(Item.getItemFromBlock(COMPOST), 0, new ModelResourceLocation(MinecraftPlus.MODID + ":compost_block", "inventory"));
  27.          }
  28. }
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