Advertisement
shane020482

Base Blocks

May 25th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. public class BlockBase extends Block
  2. {
  3. //Make note of the order of the parameters this is very important later on
  4. public BlockBase(String name, Material material, float hardness, float resistance, String tool, int level, CreativeTabs tab, SoundType sound, float value) {
  5. super(material);
  6. // This is all you have to have for this class to work
  7. setUnlocalizedName(name);
  8. setRegistryName(name);
  9. // This is where you decide what properties you want your blocks to have can be any that you want. You dont have to add them all right away any you need later can be added later
  10. setHardness(hardness);
  11. setResistance(resistance);
  12. setHarvestLevel(tool, level);
  13. setCreativeTab(tab);
  14. setSoundType(sound);
  15. setLightLevel(value);
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement