#server crash

1 messages · Page 1 of 1 (latest)

mint quarry
#
    spawn 1 zombies at location of event-entity with nbt from"{PersistenceRequired:true,isBaby:0b}"
    cancel event

I am trying to replace every mob that spawns by a non-baby zombie that doesn't despawn. What is wrong with this piece of code? It crashes my server for some reason, without the nbt it works fine. (srry, can't get the code block to work, am new to it)

jagged anchor
#

Code blocks are 3 backticks and the very start and very end: ```code ```

#

It looks like you forgot a space before the quote in the nbt line

mint quarry
jagged anchor
#

You can also use event-location instead of event-entity’s location

mint quarry
winter drum
#

Don't use on spawn event

mint quarry
#

Which one can I use best instead?

winter drum
#

Make function

#

Or
On death of mob

#

Idk what are you trying to achieve

jagged anchor
#

Its in the original message

mint quarry
#

its below the code

jagged anchor
#

They want every mob to be a baby zombie

mint quarry
#

I want every mob to by a non-baby (normal) zombie

jagged anchor
#

Oh non baby mb

#

Honestly you could check if its not a baby zombie before you cancel and spawn

winter drum
#

Ye

jagged anchor
#

I think adult zombie is also a thing

mint quarry
#

So I should just cancel all other spawns?

jagged anchor
mint quarry
#

ok

winter drum
#

On spawn of adult zombie:

#

Try this

jagged anchor
#

They want not adult zombie

winter drum
jagged anchor
#

Yes, if the spawned entity is anything other than an adult zombie

mint quarry
#

I came up with something, I could give the spawned entity a custom tag and check for it before spawning a new one.

winter drum
#

Send code

fathom zealot
jagged anchor
#

On spawn, if its not an adult zombie cancel and spawn and adult

#

Because you are spawning an adult, the condition stops the infinite loop

mint quarry
mint quarry
jagged anchor
#

Could just add the nbt to the spawned zombie then