Advertisement
Fiskmans

Untitled

Aug 5th, 2021
894
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.50 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement