1

[Commands Help] Player pick-up

Dudamesh's Avatar Dudamesh5/28/15 8:11 am
1 emeralds 553 6
7/24/2015 9:45 am
Dudamesh's Avatar Dudamesh
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's Avatar
Dudamesh
Level 62 : High Grandmaster Senpai
72

Create an account or sign in to comment.

6

1
07/24/2015 9:45 am
Level 62 : High Grandmaster Senpai
Dudamesh
Dudamesh's Avatar
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
05/28/2015 10:53 am
Level 55 : Grandmaster Dragon
Skitto493
Skitto493's Avatar
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
05/28/2015 9:44 am
Level 27 : Expert Demolitionist
sanegaming
sanegaming's Avatar
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
05/28/2015 10:40 am
Level 57 : Grandmaster Cyborg
Pepijn
Pepijn's Avatar
I'm pretty sure he needs it for a vanilla minigame...
1
05/28/2015 9:44 am
Level 57 : Grandmaster Cyborg
Pepijn
Pepijn's Avatar
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
05/28/2015 9:07 am
Level 62 : High Grandmaster Senpai
Dudamesh
Dudamesh's Avatar
BUMP
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome