0mega_z3ll

Class des blocks

Feb 19th, 2018
152
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

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×