Posted October 29, 20177 yr Code: https://github.com/Leowbattle/Refactorization/blob/master/src/main/java/refactorization/blocks/BlockCompactor.java Blockstate: https://github.com/Leowbattle/Refactorization/blob/master/src/main/resources/assets/refactorization/blockstates/compactor.json Model Off: https://github.com/Leowbattle/Refactorization/blob/master/src/main/resources/assets/refactorization/models/block/compactor_off.json Model On: https://github.com/Leowbattle/Refactorization/blob/master/src/main/resources/assets/refactorization/models/block/compactor_on.json In setDefaultState() I set is_on to false, but when it appears in-game it is set to true (checked with F3).
October 29, 20177 yr this.setDefaultState(this.blockState.getBaseState().withProperty(is_on, false)); should be: this.setDefaultState(this.blockState.getBaseState().withProperty(is_on, false)); this.setDefaultState(this.blockState.getBaseState().withProperty(is_on, Boolean.valueOf(false)));
October 30, 20177 yr Author On 29/10/2017 at 5:12 PM, quadraxis said: Your getStateFromMeta and getMetaFromState methods don't match. What do you mean by that? Edit: Never mind, I figured it out Edited October 30, 20177 yr by meee39
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.