Posted October 14, 201410 yr I'm having this return true, and it does stop the block from being harvested, but it still disappears clientside. Does anyone know how to fix this?
October 14, 201410 yr Author Clarification: It still disappears clientside if I'm in creative when I break it. Survival seems to work fine.
October 14, 201410 yr Author it IS in the item. I'm trying to make an item not be able to break a certain block in creative mode. The block still disappears clientside when broken with the item in question.
October 14, 201410 yr Author Well, it works. At least it works in that the block isn't really destroyed. Right-clicking where it was makes it snap back into existence. I suppose causing a block update on that block might make it show that it's still there, but I don't know how to do that.
October 14, 201410 yr Edit: Oops, wrong method. I think this is the right one: player.worldObj.scheduleBlockUpdate(x, y, z, block, ticksUntillUpdate); I think you should use player.worldObj.getBlock(X, Y, Z).notify(); to cause it to update.
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.