spawner skript error

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

H4sanTV

Member
Aug 12, 2024
1
0
1
23
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:
1723498895835.png

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}