Fiskmans

Untitled

Aug 5th, 2021
789
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. public class FlowingElementBase extends Block {
  3.  
  4.     public static final IntegerProperty Level = IntegerProperty.create("level",1,8);
  5.  
  6.     public FlowingElementBase(ElementType type) {
  7.         super(GetProperties());
  8.         this.registerDefaultState(this.getStateDefinition().any().setValue(Level,1));
  9.     }
  10.  
  11.  
  12.     public static Block.Properties GetProperties() {
  13.         return Block.Properties.of(Material.METAL).harvestTool(ToolType.PICKAXE).destroyTime(0.5f).sound(SoundType.METAL);
  14.     }
  15. }
RAW Paste Data