In 1.18 i wrote some code that would replace a player wall-mounted head with a normal player head if it had a certain name, but keep the nbt data such as SkullOwner and so on.
It looks like this:
With the new 1.19 updates to skript and skbee this doesn't work anymore. I have tried endless combinations of nbt, nbt-compound and such but nothing works. What should I do? I almost always get the error
"an nbt compound cant be set to anything".
Help
It looks like this:
Code:
on place:
if player's held item is player head:
if {_item_name} is "Copper Wire":
set blockstate tag "rotation" of event-block to 0
set {_nbt} to nbt of event-block
if event-block is a player wall-mounted head:
set event-block to player head
set nbt of event-block to {_nbt}
With the new 1.19 updates to skript and skbee this doesn't work anymore. I have tried endless combinations of nbt, nbt-compound and such but nothing works. What should I do? I almost always get the error
"an nbt compound cant be set to anything".
Help