Jump to content

Need help with bird spawning


Recommended Posts

Hey guys, I'm tryin' to find the solution for what I think is a simple problem, but I couldn't.
I'm using the mod Island Adventures, but I'm on a Forest World, I activeted the mod after the world was generated. Everything seems to be workin', for example, I can spawn mobs from shipwrecked or build sw structures just fine. But when I place some Shipwrecked turf, like Meadow or Jungle, it just spawn crows, is there any way to make it spawns the correct bird from sw? 
It is barely a inconvenience, but I would like to "solve" this if possible.
Thanks!

Link to comment
Share on other sites

Hey, just in case someone need this in the future. I put this in the postinit.lua 

AddClassPostConstruct("components/birdspawner", function(self) 
    local BIRD_TYPES = UpvalueHacker.GetUpvalue(self.SpawnBird, "PickBird", "BIRD_TYPES")
    
    BIRD_TYPES[WORLD_TILES.MONKEY_GROUND]      = {"toucan"}
    
end)

And that worked! I copied that from another mod.
 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
  • Create New...