i wanted to ask a question , how to copy nbt tag of a custom painting i made , and make a procedure that detects if a painting is placed and replace it with the exact painting, right now in game when i do /summon minecraft:painting x y z {mod:mypainting} it just shows up the default painting
If you want to specify coords then you can run command: create text with then write part of command then you can insert the x y z coords and finish the command, just make sure to correctly write spaces
i just tested and found out this command doesn't work for 1.19 and 1.20 while it does work for 1.16 so i am lost because i cant find any information on the internet about this
Painting is an entity. I guess you could trigger and then place block in that x y z or use a kill command an then place blocks.
i wanted to ask a question , how to copy nbt tag of a custom painting i made , and make a procedure that detects if a painting is placed and replace it with the exact painting, right now in game when i do /summon minecraft:painting x y z {mod:mypainting} it just shows up the default painting
Maybe try placing it like this, replace the id with yours, i think mod id too:
/summon minecraft:painting ~ ~ ~ {Motive:"minecraft:skull_and_roses"}
Although I dont know if you need to write minecraft:painting or like something custom
If you want to specify coords then you can run command: create text with then write part of command then you can insert the x y z coords and finish the command, just make sure to correctly write spaces
Copy nbt tag I guess get entity nbt string tag
Even when i run this command "/summon minecraft:painting ~ ~ ~ {Motive:"minecraft:skull_and_roses"}" its still shows up the default painting kebab
something to note my game version is 1.20.1 maybe the command is different for 1.20.1
i just tested and found out this command doesn't work for 1.19 and 1.20 while it does work for 1.16 so i am lost because i cant find any information on the internet about this
ok i just figured it out, in 1.20 we have to replace motive with "varient"
but i have another problem now my procedure commands are looping
https://imgur.com/a/TdQ9rTD
these are the commands that are looping
So you want to replace any painting with yours? Because youre doing if entity spawns, and then youre summoning an entity. So yes, they are looping.
Why would you replace it the same?
can i do something so that when the default painting gets replaced by mine it should cancel all operations
I dont know how to do that but i would guess its the advanced tab, cancel global trigger or something like that