BooleanProperty does work so I thought IntegerProperty works the same way. Is there something I am missing? This is how I tried using it:
public static final IntegerProperty P_COUNT = IntegerProperty.create("pCo",0,5);
public CCCBlock(Properties properties) { super(properties); this.registerDefaultState(this.defaultBlockState().setValue(P_COUNT, 0)); }
protected void createBlockStateDefinition(StateDefinition.Builder<Block, BlockState> pBuilder) { pBuilder.add(P_COUNT); }
Recommended Posts