Jump to content

How to make two new items from recipe in version 41 (Solved)


eva08maicy02

Recommended Posts

I'm making a recipe and I want the Result to be two new items, so I try this:
Result:id.itemA;id.itemB,
Turns out this doesn't work.

 

I found two posts on the forum, they are here:

 

 

Even though both of these articles are many years old, I still try to do it.

I test it in debug mode then I get the error:

 

2022-04-23_031511.jpg.22469220d4c6cfd6346ed3a14cc688d4.jpg20220423031258_1.thumb.jpg.dd0d84f5ff905f036008979139f7e9eb.jpg

 

I checked many times and I don't know what else needs to be modified for this Lua setup to make it work...

 

Edited by eva08maicy02
Solved
Link to comment
Share on other sites

  

11 hours ago, Planet Algol said:

It should be inv:AddItem(...

You're missing the colon in invAddItem(...

 

Thanks for checking this Lua, I didn't notice that I was missing a  " : ".

It's working now :lol:

Edited by eva08maicy02
Quote
Link to comment
Share on other sites

  • eva08maicy02 changed the title to How to make two new items from recipe in version 41 (Solved)

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