Jump to content

Recommended Posts

For my mod I would like to make a weapon with infinite durability that can also cut down trees. My first thought is to just make an axe that looks like a sword that has more damage. Although I don't know how to set the stats of an axe onto my item. I have been using this guide and I don't know if it is out dated.  Any help would be great thanks!

 

If you look at axe.lua from the game scripts, you will notice a component called "tool". That's what makes the axe capable of making Wilson capable of chopping trees.

Add the "tool" component and set the tool action to ACTIONS.CHOP (similiar to other tools).

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