Skript Version: Bensku's latest fork (dev30d)
Skript Author:
Minecraft Version: 1.12
---
Full Code:
Errors on Reload: Can't understand this condition/effect: add "{Item:{tag:{display:{Name:""&e&lCoin""}}}}" to nbt of entity (MarioMode.sk, line 12: add "{Item:{tag:{display:{Name:""&e&lCoin""}}}}" to nbt of entity')
Other Useful Info: Dunno, I was looking through old scripts because I needed something like this, found this in a couple of other scripts (not just 1 or 2 lines, around 60 lines of it being used) so I assumed it worked but I guess an update or something broke it?
Addons using (including versions):
Addons I am using are AdvancementAddon, SkEvents, MundoSk, QuarSk, SharpSk, Skellett, SkMorkaz, SkQuery, SkRayfall, SkStuff, SkUtilities, Tuske, Umbaska, Vixio and WildSkript. They've all been updated to the latest version (latest version available) around 4-5 days ago.
Troubleshooting:
Have you tried searching the docs? Yes I have.
Have you tried searching the forums? Yes.
What other methods have you tried to fix it? I tried "set name of event-entity" and "set the name of the spawned entity(or item) to "&e&lCoin"" but neither of them worked, sadly.
So, I need help. How do I set the name of an item during an "on item spawn" event? Did I do it wrong? I assume I did since I didn't quite test the skripts (skripts I was using quite some time ago), I just copied that part since I needed it and pasted it since thats all I neede.
Skript Author:
Minecraft Version: 1.12
---
Full Code:
code_language.skript:
on item spawn of sunflower:
if name of event-item is "&e&lCoin":
stop
else:
add "{Item:{tag:{display:{Name:""&e&lCoin""}}}}" to nbt of entity
Errors on Reload: Can't understand this condition/effect: add "{Item:{tag:{display:{Name:""&e&lCoin""}}}}" to nbt of entity (MarioMode.sk, line 12: add "{Item:{tag:{display:{Name:""&e&lCoin""}}}}" to nbt of entity')
Other Useful Info: Dunno, I was looking through old scripts because I needed something like this, found this in a couple of other scripts (not just 1 or 2 lines, around 60 lines of it being used) so I assumed it worked but I guess an update or something broke it?
Addons using (including versions):
Addons I am using are AdvancementAddon, SkEvents, MundoSk, QuarSk, SharpSk, Skellett, SkMorkaz, SkQuery, SkRayfall, SkStuff, SkUtilities, Tuske, Umbaska, Vixio and WildSkript. They've all been updated to the latest version (latest version available) around 4-5 days ago.
Troubleshooting:
Have you tried searching the docs? Yes I have.
Have you tried searching the forums? Yes.
What other methods have you tried to fix it? I tried "set name of event-entity" and "set the name of the spawned entity(or item) to "&e&lCoin"" but neither of them worked, sadly.
So, I need help. How do I set the name of an item during an "on item spawn" event? Did I do it wrong? I assume I did since I didn't quite test the skripts (skripts I was using quite some time ago), I just copied that part since I needed it and pasted it since thats all I neede.