Posted April 3Apr 3 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); }
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.