afetogbo Posted February 15, 2016 Share Posted February 15, 2016 I am working on adding a new cave only chester to the chester family mod. I would like this chester to spawn only in caves. Is there a cavegenmain.lua or something that works similar with a different name. I have spent some time searching and haven't found anything on this. Ideally I would like to spawn the cavster glowbone on the cave map like chester eyebone on the overworld. with no layout at all. I don't know how to do this in the overworld and haven't found any information on doing so. Link to comment Share on other sites More sharing options...
Kzisor Posted February 16, 2016 Share Posted February 16, 2016 The following code should work. "cave" and "forest" are tags on the worlds to look for to figure out the difference between them. if GLOBAL.TheWorld:HasTag("cave") then -- Insert spawn code here. end Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now