hi i tried to write a script for my server i wanted to give nbt to spawers but there is an error how can i solve it ?
Crash:
Crash:
Script:
break of mob spawner:
set {_p} to event-player
{_p} does not have permission "kır.spawner":
tool of {_p} is any pickaxe:
tool of {_p} is enchanted with silk touch:
set {_s} to "%nbt of targeted block%"
set {_s::*} to {_s} split at """"
drop mob spawner with nbt "{BlockEntityTag:{SpawnData:{id:""%{_s::2}%""},id:""minecraft:mob_spawner"",SpawnPotentials:[0:{Entity:{id:""%{_s::2}%""},Weight:1}]},display:{Name:""%{_s::2}%""}}"
set event-block to air
else:
cancel event
send "&dᴀɴᴋᴀғᴜɴ &cBu kazmada ipeksi dokunuş büyüsü yok!" to {_p}
else:
cancel event
send "&7&lHey! &7bunu &c&lspawneri &7kırmak için &c&lipeksi dokunuş &7kazmanız olması gerekir. &b" to {_p}
else:
cancel event
send "&dᴀɴᴋᴀғᴜɴ &cSpawnerları <#27E2FB>ʟ<#28D5FB>ᴏ<#29C8FC>ʀ<#2ABBFC>ᴅ &cve üstündeki rütbeler kırabilir" to {_p}