Arkathorn Posted October 8, 2015 Share Posted October 8, 2015 As an experiment, I am trying to manually spawn boons, via this code:local function AddBoons(level) local Boons=require("map/boons").Sandbox local BoonsLayouts=require("map/boons").Layouts for i=1,10000 do AddSingleSetPeice(level, "map/boons") print("Added set piece #"..i) endendAddLevelPreInit("SURVIVAL_DEFAULT", AddBoons)Unfortunately, AddSingleSetPeice cannot be referenced from outside of worldgen_main.lua, so how would I do this? Can I? Link to comment https://forums.kleientertainment.com/forums/topic/58371-manually-spawning-boons/ Share on other sites More sharing options...
Mobbstar Posted October 8, 2015 Share Posted October 8, 2015 You could force-insert setpieces like I do in my mods. Link to comment https://forums.kleientertainment.com/forums/topic/58371-manually-spawning-boons/#findComment-678707 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