Andrew
- cowslayer6789
- cowslayer6789
- Europe/Stockholm
- Yes
- No
attempting to run a function with one results in "java.lang.NullPointerException"
this only happens once you reach the command. Commands previous work. This does not invalidate the function.
'say foo execute at @s run tp ~ ~5 ~ say barprints:
foo
java.lang.NullPointerExceptionand nothing else
attempting to run a function with one results in "java.lang.NullPointerException"
this only happens once you reach the command. Commands previous work. This does not invalidate the function.
say foo execute at @s run tp ~ ~5 ~ say barprints:
foo
java.lang.NullPointerExceptionand nothing else
attempting to run a function with one results in "java.lang.NullPointerException"
this only happens once you reach the command. Commands previous work. This does not invalidate the function.
say foo execute at @s run tp ~ ~5 ~ say barprints:
[name of player] foo
java.lang.NullPointerExceptionand nothing else
when typing
scoreboard players operation (selector) (objective) -= (selector) (objective) ex: scoreboard players operation @s energy -= @s ratethe game says the operation is invalid. all other operations function properly
Edit:
-+ is apparently a valid operation. There seems to be a typo in the code.

it occurs with other selectors.
MC-121627is unrelated. It would happen if you doI don’t
no, I am executing at and as the entity I want this to happen to. And when I execute it as and at the entity in game it works fine.
I am so confused by what you mean. can you be more specific? I am executing this as the armorstand itself. This command works perfectly fine when done in chat but not by command blocks.
also with command blocks storing data to skulls doesn't work at all.
I’ve put in the command that way and it achieves the same result. Also did you not the part a
Where I said it visually updates for just a second, and then it glitches back? I also should have mentioned this part, the data tag actually does update. If you data get it’s data, you’ll get what you expect. But it doesn’t actually look like that in game unless you ran the command yourself. Also I didn’t even have to use that selector because I was executing the function as and at the entity.
confirmed in 1.21.1, and 24w33a with and without the experimental minecart changes
confirmed in 1.21.3 and 1.21.4 pre-release 3 both with and without the minecart experiment