2

I have an adventure map in the making, being the reason for the many questions all of a sudden, and I ran into an issue. The player chooses a kit from a starting point, but I do not want the player to be able to drop any of the items they get, or use any items they receive until they are in the arena. Is there a way to disable certain actions in an area without using something like WorldGuard?

  • 1
    Can you please be more specific as in what actions you want to prevent. – ethanflips Jun 1 '16 at 1:41
  • @ethanflips as stated in question, dropping items. – David Jun 1 '16 at 2:03
  • Oh ok .........,, – ethanflips Jun 1 '16 at 2:04
2

Not sure if this will help, but check out this video..

The above link essentially tells you to detect a dropped item, kill it, and then replace it.

If that didn't work, I remember an old solution, but I'm not sure if it still works. Using the PickUpDelay tag, you can make it so players instantly get their items back. I think running this on a fast clock may work. WARNING I'm not sure if it works and it may lag you out.

/execute @e[type=Item,r=5] ~ ~ ~ /entitydata @e[type=Item,r=5] {PickupDelay:0s,Fire:-1s,Age:0s}

The second tags inside of the curly brackets seem to need to be included for the command to work successfully

If the above command does not work, try changing the "0" to something else.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.