Fuffles Posted November 9, 2016 Share Posted November 9, 2016 Dear Survivors, I'm having troubles with creating a pinecone like item that should grow an already existing vanilla prefab, how would I do that? I cant find any mods with saplings Link to comment https://forums.kleientertainment.com/forums/topic/71565-sapling-item-turning-into-a-vanilla-thing/ Share on other sites More sharing options...
blubuild Posted November 10, 2016 Share Posted November 10, 2016 You can also check out the code for the vanilla pinecone and see exactly how it works. \Don't Starve Together\data\scripts\prefabs\pinecone.lua would be the place to start. Then planted_tree.lua in the same folder. Basically it's just that the pinecone creates a planted tree after the planting action, and the planted tree uses a timer component to do the replacement with an actual tree after a certain amount of time has passed. You can check it all out in detail in the files. Link to comment https://forums.kleientertainment.com/forums/topic/71565-sapling-item-turning-into-a-vanilla-thing/#findComment-835851 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