Jump to content

Does not appear in the custom weapon category

Recommended Posts

It might be weird because I'm using a translator Sorry in advance!

I'm looking for a way to put a dedicated weapon in a sample character.

I've read and created other forum posts, but strangely, they don't appear in the war category :concern:...

I changed the tag and category separately.



modmain.lua custom_handitem.lua

Link to comment
Share on other sites

You're using AddRecipe and RECIPETABS, which are both deprecated. If you want to use the new system, you could write something like this:

AddRecipe2("custom_handitem", {Ingredient("cutgrass", 2)}, TECH.SCIENCE_ONE, {builder_tag = "test_DST", atlas = "images/inventoryimages/custom_handitem.xml"}, {"WEAPONS"})

The last table is the one for filters, in this case I put "WEAPONS", but you can put as many as you'd like.

  • Like 1
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

  • Create New...