Hello, I'm currently trying to use the Command Block to some how provide a safety area around spawn for my PvP enabled server. I have the following ideas, but they don't seem to work. My idea was to connect a timer to the command block and do the following commands.
1. /heal everybody within 100 blocks from 0x and 0z.
2. /potion @a[x=0,y=80,z=0,r=100] health 1 1
3. Set gamerule to keepInventory to true only within spawn area.
I think the third one wouldn't be possible without a mod, but I do not understand why the /heal or /potion command is unable to target multiple players. I have tried replacing @a to @p, and that works.
If anyone has any better solutions, or that I'm doing it wrong, please tell me. Thanks!
Edit: P.S. I am also wondering if there is a way to disable or interfere with client sided mod "VoxelPlayer".
1. /heal everybody within 100 blocks from 0x and 0z.
2. /potion @a[x=0,y=80,z=0,r=100] health 1 1
3. Set gamerule to keepInventory to true only within spawn area.
I think the third one wouldn't be possible without a mod, but I do not understand why the /heal or /potion command is unable to target multiple players. I have tried replacing @a to @p, and that works.
If anyone has any better solutions, or that I'm doing it wrong, please tell me. Thanks!
Edit: P.S. I am also wondering if there is a way to disable or interfere with client sided mod "VoxelPlayer".