Summon Mob with NBT tags and not triggering the variables

  • 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 community!

    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!

Status
Not open for further replies.

KasiaPRO

Member
May 2, 2020
25
0
1
Hi, I was skripting for my server and I am making a skript that if someone dies it spawns a custom mob by a command (/summon) and the custom NBT's interfere with the variables and it marks it all as a variable and the skript gives error of quotes(better explained in the photo attached) is there any way to summon the mob?

Command:
/summon minecraft:zombie 0 100 0 {PersistenceRequired:1b,CanPickUpLoot:0b,Silent:1,ArmorItems:[{Count:1,tag:{Enchantments:[{id:unbreaking,lvl:5},{id:soul_speed,lvl:4}],display:{color:0}},id:"minecraft:leather_boots"},{},{Count:1,tag:{Enchantments:[{id:emoji_stuck_out_tongue:rotection,lvl:7},{id:thorns,lvl:5}],display:{color:0}},id:"minecraft:leather_chestplate"},{id:"minecraft:leather_helmet",tag:{display:{color:0},Enchantments:[{id:emoji_stuck_out_tongue:rotection,lvl:4},{id:thorns,lvl:3}]},Count:1}],ArmorDropChances:[2F,0F,0.1F,2F]}

Skript
Code:
on death of player:
  execute console command "/summon minecraft:zombie 0 100 0 {PersistenceRequired:1b,CanPickUpLoot:0b,Silent:1,ArmorItems:[{Count:1,tag:{Enchantments:[{id:unbreaking,lvl:5},{id:soul_speed,lvl:4}],display:{color:0}},id:"minecraft:leather_boots"},{},{Count:1,tag:{Enchantments:[{id:protection,lvl:7},{id:thorns,lvl:5}],display:{color:0}},id:"minecraft:leather_chestplate"},{id:"minecraft:leather_helmet",tag:{display:{color:0},Enchantments:[{id:protection,lvl:4},{id:thorns,lvl:3}]},Count:1}],ArmorDropChances:[2F,0F,0.1F,2F]}"

Image:
upload_2021-5-20_19-35-36.png

Thanks
[doublepost=1621532216,1621532145][/doublepost]The command is
Code:
/summon minecraft:zombie 0 100 0 {PersistenceRequired:1b,CanPickUpLoot:0b,Silent:1,ArmorItems:[{Count:1,tag:{Enchantments:[{id:unbreaking,lvl:5},{id:soul_speed,lvl:4}],display:{color:0}},id:"minecraft:leather_boots"},{},{Count:1,tag:{Enchantments:[{id:protection,lvl:7},{id:thorns,lvl:5}],display:{color:0}},id:"minecraft:leather_chestplate"},{id:"minecraft:leather_helmet",tag:{display:{color:0},Enchantments:[{id:protection,lvl:4},{id:thorns,lvl:3}]},Count:1}],ArmorDropChances:[2F,0F,0.1F,2F]}

Idk why the text made happy faces lol
 
Status
Not open for further replies.