If you put a repeating command block 2 blocks under the spawn that has the command /testfor @a[r=3]
, then a redstone comparator next to it pointing outwards to an impulse command block that has the command /give @a[x=X coordinate of spawn,y=Y coordinate of spawn,Z coordinate of spawn,r=1] wooden_sword
, then it should give all players at spawn a wooden sword.
user196045
- 1
- 3