Posted July 17, 201411 yr Basically What I ask is it possible to detect whether a block is moved by pistons, because currently I'm using breakBlock to make it drop and place a block when destroyed, and it sadly keeps activating the this with the piston movement. Member of Aerotech Networks, a Multi-Gaming server. Also Currently porting the "Rise of the Automatons" minecraft mod
July 17, 201411 yr Hi The piston will break your block if it's made of the wrong material - perhaps that is the problem. Look at Block.getMobilityFlag() for clues. If no joy with that, try looking in BlockPistonBase.tryExtend() to get a better idea of what is happening; perhaps this line block.dropBlockAsItemWithChance(p_150079_1_, i1, j1, k1, p_150079_1_.getBlockMetadata(i1, j1, k1), chance, 0); -TGG
July 18, 201411 yr I just put a PullRequest[1] into Forge adding a new PushEvent after I seen this topic as I thought it was interesting one did not already exist. It has not been merge, if it is I will let you know. [1] https://github.com/MinecraftForge/MinecraftForge/pull/1238
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.