Skip to content

How am I meant to test empty ItemStacks from crafting recipes? #80

@Montandalar

Description

@Montandalar

Hi,

So I am implementing a privileged-protected recipe system using register_craft_predict and register_on_craft. In these callbacks you get a table with 9 ItemStacks, and in my test for the empty slots in the grid I thought I would insert ItemStack(""), but the source of Mineunit says it's meant to cause an error with an empty string. I don't think my function will work without "" as the argument though. Do you know how I should proceed?

Code is here:

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingin-latest-dockerIncluded with latest docker images, might not yet be available elsewhere

Projects

Status

In progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions