Jump to content

[1.9] Few questions about world.destroyBlock


American2050

Recommended Posts

I have a few problems with using world.destroyBlock I'm using it to break blocks with a custom tool on the surroundings of the main block hit by the player, but what I have problems with is 2 things.

 

One is that I would need that the blocks destroyed, for example Redstone Ores drop also the XP and not just redstone.

 

And second, I would need a method that can also apply the Enchantments on the used tool for this blocks, for example Silk Touch or Fortune.

 

Is there a way to make this, or it would be something I will have to code?

 

Thanks a lot.

 

 

Link to comment
Share on other sites

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.