Jump to content

Recommended Posts

 

@SquareRoot

inst:ListenForEvent("oneat", function(inst, data) -- When you eat something	if data.food.components.edible.foodtype == "VEGGIE" then -- If it's a veggie		inst.components.sanity:DoDelta(-10) -- Decrease sanity	endend)

Sorry to bother, but where do I place this? I tried adding it to modmain.lua and it didn't work- Apologies for the stupid questions ahh...

 

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...