1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

No mob spawn in specific biome.

Discussion in 'Skript' started by Nolex, Jul 9, 2021.

Thread Status:
Not open for further replies.
  1. Nolex

    Nolex Member

    Joined:
    Jul 9, 2021
    Messages:
    3
    Likes Received:
    0
    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.
     
  2. rustedst

    rustedst Active Member

    Joined:
    Apr 24, 2020
    Messages:
    97
    Likes Received:
    4
    Code (Text):
    1. on spawn of a ship:
    2.     if biome at event-location is plains:
    3.         cancel event
    that must work
     
  3. Nolex

    Nolex Member

    Joined:
    Jul 9, 2021
    Messages:
    3
    Likes Received:
    0
    Thank you, sheeps now cant spawn with eggs but they still spawning on world generation.
     
  4. Minecoll_YT

    Supporter Forums Helper

    Joined:
    Dec 2, 2018
    Messages:
    650
    Likes Received:
    39
    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?
     
  5. rustedst

    rustedst Active Member

    Joined:
    Apr 24, 2020
    Messages:
    97
    Likes Received:
    4
    As far as I know, Skript doesn't work in unrendered regions.
     
  6. Nolex

    Nolex Member

    Joined:
    Jul 9, 2021
    Messages:
    3
    Likes Received:
    0
    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
    --- Double Post Merged, Jul 10, 2021, Original Post Date: Jul 10, 2021 ---
    Any idea?
     
  7. rustedst

    rustedst Active Member

    Joined:
    Apr 24, 2020
    Messages:
    97
    Likes Received:
    4
    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.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...