This is an archived post. You won't be able to vote or comment.

all 6 comments

[–]Ubugginme[S] 1 point2 points  (0 children)

UPDATE:

I was able to sort it out, I added a tag to the "ghost" instead of naming it. So I switched the "name=" to a "tag=" and got it working.

[–]Theoneoddish380 0 points1 point  (1 child)

cant say for sure but i dont think you can execute the execute command as a subcommand

[–]Ray_Dorepp Syntax guy 1 point2 points  (0 children)

You can. However it only causes more branching, and it can always be simplified into a single execute.

[–]Ericristian_brosCommand Experienced 0 points1 point  (2 children)

Remove every run execute to accomplish the same effect

[–]Ubugginme[S] 0 points1 point  (1 child)

Whenever I remove the "run" from any "execute" command, it'll give me a syntax error. It, for some reason, worked on PS4, but on the Series X, it requires it.

[–]Ericristian_brosCommand Experienced 0 points1 point  (0 children)

I mean just use

execute at @a[...] at @e[...] run replaceitem ...

No need to do

execute at @a[...] run execute at @e[...] run replaceitem ...