Posted December 7, 20213 yr Hi, I tried to add a use() method to my custom block, that should change a BlockState value; I tried to do it using BlockState.setValue(), however that didn't do anything. I thought this was due to setValue() only returning a changed BlockState, not changing it directly, so I tried sth. like state = state.setValue(); however that still didn't accomplish anything. I'm wondering, whether I'm doing sth. obvious wrong or do I need to use a different method? Class in question: https://github.com/Kiwilis/simple-automation/blob/main/src/main/java/kiwilis/simpleautomation/common/block/CaoutchoucDrain.java
December 7, 20213 yr it's the place flage of the Block, you can look at Constants.BlockFlags for more infos about possible values and what they does
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.