Jump to content

Recommended Posts

This is my first time doing anything with a mod. I have just been attempting to edit a pre-existing mod, however I can't seem to get the "level up" function to work, it use to be "MEAT" and I want to change it to "honey" but it's not working. I added some stats to the level up, not sure if that would effect anything. Attached is what the character.lua looks like, feel free to tell how stupid I am, I really am not sure what I'm doing. Thanks!

 

 

haruz.lua

Link to comment
https://forums.kleientertainment.com/forums/topic/61777-first-mod-help/
Share on other sites

@Gudalskaross, honey is FOODTYPE.GENERIC so it would be

if food and food.components.edible and food.components.edible.foodtype == "GENERIC" then

however this would include some crock pot recipes.

 

The check in oneat can be

if food and food.prefab == "honey" then

which would pass strictly for honey.

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