mojira.dev
MC-92632

command blocks don't work.

When I try to make a repeating command block 'always active' it is 'never active'. Also, when I try to attatch a clock to any command block, It fails to do what is written inside it. There is literally no output.

Attachments

Comments 9

Hopefully you're not setting the command blocks to chain or conditional.

Please provide screenshots of your setup and a screenshot of the not-working command block GUI

the first two screenshots are from when I initially entered the command, the second two after leaving the GUI and coming back in.

The last is the setup. the not working one is the one in the center. The annoying thing is, the other one works perfectly.

The command in the other one is: /scoreboard players set aether_hawk Sneak 0.

Can you try to remove the score_name/_min tag and try it again? Also can you remove the scoreboard?

I just tried a different command in the same command block, and it works perfectly. /testfor @p is fine, so is /testfor @p[name=aether_hawk]

removing the scoreboard section also works, but when I try to put it back in, the command block forgets it even had output previously.

That means the condition score_Sneak_min=1 is not true.
http://minecraft.gamepedia.com/Commands#Target_selectors:

score_name_min=SCOREMIN — Selects only targets with a score in objective name of no less than SCOREMIN.

--> you're selected when your score Sneak is 1 or more.
Remember score names are case sensitive.

I realised where I was going wrong! the command block setting the score to zero was going to fast for the one detecting my score.
I have attached a screenshot of the new layout, so anyone else with the same problem can see what happened.

bottom one: /testfor @a[name=<insertname>,score_<insertobjectivename>_min=1]
the middle one: /effect <insertname> <mnemnemneeffect> 1 50 (it is conditional)
and the top one resets my scoreboard score.

James Cooper

(Unassigned)

Unconfirmed

Minecraft 15w45a, Minecraft 15w46a

Retrieved