Skip to content

Wrong claim about shaped recipe empty slots?

Chapter 3.

Shaped recipes are when the ingredients need to be in the right shape or pattern to work. In the example below, the fragments need to be in a chair-like pattern for the craft to work.

minetest.register_craft({ type = "shaped", output = "mymod:diamond_chair 99", recipe = { {"mymod:diamond_fragments", "", > ""}, {"mymod:diamond_fragments", "mymod:diamond_fragments", > ""}, {"mymod:diamond_fragments", "mymod:diamond_fragments", > ""} } })

One thing to note is the blank column on the right-hand side. This means that there must be an empty column to the right of the shape, otherwise this won’t work.

This is false. I've just tested a dummy recipe with empty slots on the right-hand side and the empty slots don't change anything. The recipe works no matter where I put the items. Minetest seems to ignore empty slots. And I think this behavior makes complete sense; it would be annoying otherwise. Tested in Minetest 5.7.0.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information