Jump to content

Recommended Posts

For starters, find the prefab file for stalagmites. It's not rock.lua, but somewhere in the data/scripts/prefabs directory (aka folder). Opening said file will reveal loot tables like this:

SetSharedLootTable( 'low_rock',
{
    {'rocks',         1.00},
    {'flint',       1.00},
    {'goldnugget',  0.25},
    {'flint',       0.30},
})

 

You should edit them in your modmain.lua using an AddSimPostInit() function:

 

AddSimPostInit(function()

--set the tables here

end)

 

You can find out prefab names (like "goldnugget" or "stalagmite_tall" by going to the very end of the prefab files)

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
×
  • Create New...