Posted October 23, 20169 yr I was wondering how could I make, so a block is not allowed to be pushed with a piston or any other method. I know TileEntities can't be pushed, but not sure where that is defined, and if it can or not be applied to blocks. Thanks.
October 23, 20169 yr Block#getMobilityFlag controls the reaction of the block to being pushed by pistons. By default, it returns Material#getMobilityFlag for the Block 's Material . Either use a Material with the appropriate EnumPushReaction or override the method to return the appropriate EnumPushReaction . Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
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.