Fuffles Posted November 7, 2016 Share Posted November 7, 2016 Hello Dear Survivors I'd like to implement a feature to grow Mushroom trees with an item, althought Im unsure how to do so, becuase Im still kinda new to modding, could somebody help? I used the acorn.lua (aka the Birchnut File from prefabs) as the thing for my item. Link to comment https://forums.kleientertainment.com/forums/topic/71506-sapling-to-tree-transformation/ Share on other sites More sharing options...
PanAzej Posted November 7, 2016 Share Posted November 7, 2016 local function plant(inst, growtime) local sapling = SpawnPrefab("mushtree_small") sapling.Transform:SetPosition(inst.Transform:GetWorldPosition()) sapling.SoundEmitter:PlaySound("dontstarve/wilson/plant_tree") inst:Remove() end Replacing 'plant' function with this one above should work I think. Link to comment https://forums.kleientertainment.com/forums/topic/71506-sapling-to-tree-transformation/#findComment-834775 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