Jump to content

Recommended Posts

Posted

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.

Posted

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.

Posted

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.