Jump to content

Custom item that works like blow dart


Recommended Posts

I'm trying to make a custom item that works like a blow dart and is craftable, how would I go about doing this?

 

I took a look through weapon.lua and that seems to be the only thing slightly useful, however, not sure how I'd go about it.

 

It has to have increased range and less damage than a blow dart.  I'd like the player to start with this item and it uses a custom image.  Keep in mind, I'd like it to be craftable as well, just in case the player has to respawn and so forth.

Link to comment
Share on other sites

To make it craftable add this to your modmain lua and change YOUR_ITEM_NAME

 

STRINGS.RECIPE_DESC.YOUR_ITEM_NAME = "Item crafting desc"local YOUR_ITEM_NAME = Recipe("YOUR_ITEM_NAME", { Ingredient("Ingredient", 2), Ingredient("Ingredient", 1) }, RECIPETABS.INSERT_TAB_HERE TECH.NONE)YOUR_ITEM_NAME.atlas = "images/inventoryimages/YOUR_ITEM_NAME.xml"

 Configure the Ingredients in "".

And change INSTERT_TAB_HERE to the tab you want the item to be in

 

Edited by DarkCrafter
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...