1

[Commands Help] Player pick-up

Dudamesh •5/28/15 8:11 am
•
764
•
7/24/2015 9:45 am
How do I disable players from picking up certain items?

ex:
Players A and B.

Player A has a Sword and player B has a Bow.
Player A can't pickup Player B's bow neither B to pickup A's Sword.
how do I do that?
Posted by
Dudamesh
Level 62 : High Grandmaster Senpai
74

  Have something to say?

Join • Sign in

6

Dudamesh
• 07/24/2015 9:45 am
• Level 62 : High Grandmaster Senpai
Is there anyway Pepijn to decrease the radius. there might be some fighting-over-the-item-on-the-ground-with-a-race since whoever gets to it first will get it, but since the other person may go near it and nobody can grab it. decreasing the radius will help in some occasions
1
Skitto493
• 05/28/2015 10:53 am
• Level 55 : Grandmaster Dragon
What you can do, is make it so the certain player has a scoreboard objective. have a command setting the entity data of the certain item around him so it changes the impossibly high pickup ticks to a low value, so it can be picked up.
1
sanegaming
• 05/28/2015 9:44 am
• Level 27 : Expert Demolitionist
Worldguard flags, you can set a flag for disabling players from dropping and picking up stuff. I suggest looking at a list of the flags and going from there. If you need more help message me on skype: SaneGaming
1
Pepijn
• 05/28/2015 10:40 am
• Level 58 : Grandmaster Cyborg
I'm pretty sure he needs it for a vanilla minigame...
1
Pepijn
• 05/28/2015 9:44 am
• Level 58 : Grandmaster Cyborg
You can't really, picking up items can only be "turned off" for specific items by giving them a certain PickupDelay tag (this is not player specific).

If you really need something, try this:


Just run these commands once:
> /scoreboard objectives add Bow dummy
> /scoreboard objectives add Sword dummy

Run these commands on a fill clock in this specific order:
> scoreboard players set @e[type=Item] Bow 1 {Item:{id:minecraft:bow}}
> scoreboard players set @e[type=Item] Sword 1 {Item:{id:minecraft:iron_sword}}
> entitydata @e[type=Item] {PickupDelay:1}
> execute @a[team=A] ~ ~ ~ entitydata @e[type=Item,score_Bow_min=1,r=2] {PickupDelay:2}
> execute @a[team=B] ~ ~ ~ entitydata @e[type=item,score_Sword_min=1,r=2] {PickupDelay:2}


This will make anyone not able to pick up bows that are close to players in team A, and swords that are close to players in team B.
1
Dudamesh
• 05/28/2015 9:07 am
• Level 62 : High Grandmaster Senpai
BUMP
1

Welcome