Jump to content

Can we add custom actions?


Recommended Posts

Can we add custom right-click actions in our mods? Like when you mouse over a rabbit, bird, or moleworm in your inventory it tells you that you can "Murder" it but clicking your right mouse button. If you pick it up and mouse over a fire, you can left click it to "Cook". If you pick up a rock, carrot, or seeds (depending on the animal) you can right click to "Feed", or left click to "Swap".

 

For my mod I would want to create my own "action" (i don't know if there's another name that these things already go by) so I would need to be able to set my own text for it and be able to handle that event to run some function. Can we do that in a mod?

Link to comment
Share on other sites

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
 Share

×
  • Create New...