No mob spawn in specific biome.

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

Status
Not open for further replies.

Nolex

Member
Jul 9, 2021
3
0
1
21
on spawn of a sheep:
if biome is plains:
cancel event

No errors, just not working.
Sheeps are still spawning in plains biome and I can spawn them with egg too.

I totally want to disable sheep spawning in plains not just with eggs.
 
the "on spawn" event should work for natural spawning and for manual spawning, are you sure that the spawning isn't caused by smth else?
I asked for help on discord but nobody knows. Im using a world generator plugin but I dont think that can cause problem with mob spawn. In F3 biome is same
[doublepost=1625914740,1625914686][/doublepost]
As far as I know, Skript doesn't work in unrendered regions.
Any idea?
 
You can use on chunk enter event to kill all the sheep in event chunk. New ones won't spawn.

Or you can loop all ships and teleport the ship to the void if the ship's location is inside the biome.

Both might cause lags tho. Try and see if they do.
 
Status
Not open for further replies.