Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class FlowingElementBase extends Block {
- public static final IntegerProperty Level = IntegerProperty.create("level",1,8);
- public FlowingElementBase(ElementType type) {
- super(GetProperties());
- this.registerDefaultState(this.getStateDefinition().any().setValue(Level,1));
- }
- public static Block.Properties GetProperties() {
- return Block.Properties.of(Material.METAL).harvestTool(ToolType.PICKAXE).destroyTime(0.5f).sound(SoundType.METAL);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement