Help with mob spawning (Skript)

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

SearchingT

New Member
Jan 18, 2024
5
0
1
15
I want to use this in my rpg server but it wouldn't work.
skript code:

every 7 seconds:
execute console command '/summon zombie 2 23 -5 {Health:24,active_effects:[{id:absorption,show_particles:0b}],Attributes:[{Name:"generic.attack_damage",Base:3f},{Name:"generic.max_health",Base:24f}],display:{Name:'[{"text":"zombie spawner","italic":false}]'}}'
 

Attachments

  • 2024-01-18_17.53.29.jpg
    2024-01-18_17.53.29.jpg
    448.5 KB · Views: 58
So the error is telling you to go through the nbt and add double quotes or double this symbol (“) anywhere that they exist in the nbt
 
So the error is telling you to go through the nbt and add double quotes or double this symbol (“) anywhere that they exist in the nbt
still get the same error and heres my updated skript:

every 7 seconds:
execute console command ""/minecraft:summon zombie 2 23 -7 {Health:25,HandItems [{id:wooden_sword,Count:1}],HandDropChances:[0f],Attributes:[{Name:""generic.max_health"",Base:25f}]}""
 
Idk if you still need this or not, but try this:
Code:
every 7 seconds:
    execute console command "summon zombie 2 23 -5 {Health:24,active_effects:[{id:absorption,show_particles:0b}],Attributes:[{Name:""generic.attack_damage"",Base:3f},{Name:""generic.max_health"",Base:24f}],display:{Name:''[{""text"":""zombie spawner"",""italic"":false}]''}}"
 
Idk if you still need this or not, but try this:
Code:
every 7 seconds:
    execute console command "summon zombie 2 23 -5 {Health:24,active_effects:[{id:absorption,show_particles:0b}],Attributes:[{Name:""generic.attack_damage"",Base:3f},{Name:""generic.max_health"",Base:24f}],display:{Name:''[{""text"":""zombie spawner"",""italic"":false}]''}}"
it doesnt show an error but there isnt any zombies spawning in that location