I'm getting into command block programming and I need some assistance.
I am trying to set it where a player who steps on a pressure plate is put on a specific team, except it doesn't seem to work. It doesn't say anything in the Previous Output either.
Command I am using: /scoreboard teams join PvP @s
Version: Vanilla 1.12 on a server
Does anybody know what I can do? Thanks!
Extra attachments posted below.
Note: I'm just trying to make PvP zones and Safe zones so if anybody could just help me on that end that'd be very appreciated as well.
@s selector is executing entity. It will work only after /execute command. For example
/execute @e[type=creeper] ~ ~ ~ detect ~ ~-0.5 ~ minecraft:grass -1 kill @s
It will kill all the creepers standing on the grass.
But if you want to do something like that, try to use
/execute @p[r=2] ~ ~ ~ detect ~ ~ ~ minecraft:wooden_pressure_plate -1 scoreboard teams join PvP @s
(Actually, you need to put command block under the wooden pressure plate to this work properly. I mean)
Basically, your command block is running the command as itself, and nothing happens. To fix this, simply change the '@s' to '@a[c=1]' or '@p'
Link Shortener: https://shortr.github.io
Also, in order to get output, make sure you select that X button to the next of it. It would either be blank, or have an error if it was activated. Since there is a dash there, the output has been disabled. Selecting that button fixes that.