1.) I am attempting to make a mod, and supposedly I should be capable of setting the type of a craft to shapeless. However, I try to run minetest with the mod and it fails to load (because the recipe is an invalid recipe).
Here's some code:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
minetest.register_craft({
output = '"stone:halite_stone_tool" 1',
type = "shapeless",
recipe = {{'stone:halite_stone','stone:halite_stone'},}
})
I have also changed recipe = {{'"stone:halite_stone" 2'},} but that doesn't work either, nor does it work for other combinations of stones, nor for switching the line position, nor for different outputs.
I have not found a mod so far that uses type = "shapeless". Has anyone had any luck using this? Is it simply unsupported?
2.) Also, I'd like to have one of the stones remain. It seems like I could say
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
replacements = stone_that_I_want_to_keep, stone_that_I_want_to_keep