please read my reply first, as it will save your time a lot.
Hi, so I was using a looping command block to run my main function, but decided to instead use the minecraft:tick tag.
it seemed to work, until I found out
some of the lines in the function ran by the tick tag, were not being executed, only when I was in survival mode.
An example of the commands not being executed in survival is:
execute as @s[scores={ASClick=2}] at @s run kill @e[type=minecraft:item,distance=..3,sort=nearest,nbt={Item:{id:"minecraft:carrot"}},tag=CostItem]
while the command on the line above:
execute as @s[scores={ASClick=2}] at @s run playsound minecraft:entity.player.breath player @a ~ ~ ~ 1 0.6
is being executed even in survival.
Both commands are called through "execute as @a" as a function every tick.
Is there anything I'm missing about tick tags? Please help.
Edit:
sorry I forgot to clarify, but my version is minecraft 1.13.2, and both lines are executed in creative mode.
Edit2:
I am very sorry, for some reason I had believed this system I am talking of, worked when ran by looping command blocks, but when I tested this again, the "kill-carrot" command was not executed.
But it still works in creative mode.
so the real question is:
What is the difference between Creative and Survival mode in means of commands in functions being executed?
Hi, this was solved, and I must apologize to those who had tried to figure out what was happening, but it was something totally different from what I thought, and was a simple coding miss.
To put it in a nutshell, infact the lines were executed, but the kill-carrot command used a tag based on player holding an item.
which, in creative mode, stays in players hand when used. but in survival, it doesn't stay, causeing the carrot to be un-tagged and not get killed.
please read my reply first, as it will save your time a lot.
Hi,
so I was using a looping command block to run my main function, but decided to instead use the minecraft:tick tag.it seemed to work, until I found outsome of the lines in the function ran by the tick tag, were not being executed, only when I was in survival mode.
An example of the commands not being executed in survival is:
while the command on the line above:
is being executed even in survival.
Both commands are called through "execute as @a" as a function every tick.
Is there anything I'm missing about tick tags? Please help.Edit:
sorry I forgot to clarify, but my version is minecraft 1.13.2, and both lines are executed in creative mode.
Edit2:
I am very sorry, for some reason I had believed this system I am talking of, worked when ran by looping command blocks, but when I tested this again, the "kill-carrot" command was not executed.
But it still works in creative mode.
so the real question is:
What is the difference between Creative and Survival mode in means of commands in functions being executed?
Please help me.
Hi, this was solved, and I must apologize to those who had tried to figure out what was happening, but it was something totally different from what I thought, and was a simple coding miss.
To put it in a nutshell, infact the lines were executed, but the kill-carrot command used a tag based on player holding an item.
which, in creative mode, stays in players hand when used. but in survival, it doesn't stay, causeing the carrot to be un-tagged and not get killed.