I am trying to make a command that gives me a coin item.
The /give command works on its own when I paste it into console and use it in-game but as soon as I try to execute it in Skript it doesnt work. The closest I could get that does work is:
however as soon as I add formatting and other stuff it doesn't work.
Thanks in advance to anyone who might help.
------------------------
Server Version: 1.21.5
Skript Version: 2.12.0
SkBee Version: 3.11.3
Code:
command /coin:
trigger:
execute console command "minecraft:give %player% gold_nugget[custom_name=[{"text":"Coin","italic":false,"color":"gold"}],enchantments={flame:1},unbreakable={},tooltip_display={hidden_components:[enchantments]}]"
The /give command works on its own when I paste it into console and use it in-game but as soon as I try to execute it in Skript it doesnt work. The closest I could get that does work is:
Code:
execute console command "minecraft:give %player% gold_nugget[custom_name=test]"
however as soon as I add formatting and other stuff it doesn't work.
Thanks in advance to anyone who might help.
------------------------
Server Version: 1.21.5
Skript Version: 2.12.0
SkBee Version: 3.11.3