mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-24 17:09:32 +01:00
cb4396d424
This fixes faulty fallthrough mechanisms attempting to register the same recipe more than once in some cases. This fixes the warning spam when entering a world, while keeping the warnings for mods that misuse the Stonecutter API. Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4315 Co-authored-by: the-real-herowl <wiktor_t-i@proton.me> Co-committed-by: the-real-herowl <wiktor_t-i@proton.me> |
||
---|---|---|
.. | ||
locale | ||
init.lua | ||
mod.conf | ||
README.md |
mcl_stonecutter
Adds the stonecutter block. Used to cut stone like materials into stairs, slabs, etc. Also used as the Stone Mason Villager's jobsite.
Adding recipes
- To add a new custom stonecutter recipe, use
mcl_stonecutter.register_recipe(input, output, count)
input
must be a name of a registered itemoutput
must also be a name of a registered itemcount
should be a number denoting output count, this defaults to 1 fornil
and invalid values- a number with a fraction passed as count will be rounded down
- Stairs, slabs and walls get their recipes registered automatically
- Recipe chains are followed automatically, so any recipes taking
output
of another recipe as input will also be takinginput
of that recipe as their input
Displaying the Stonecutter menu
- To display the stonecutter formspec to a player use
mcl_stonecutter.show_stonecutter_form(player)
License of code
See the main VoxeLibre README.md file. Author: PrairieWind, ChrisPHP, cora, Herowl, AFCMS
License of media
mcl_stonecutter_bottom.png mcl_stonecutter_side.png mcl_stonecutter_top.png mcl_stonecutter_saw.png License: CC0 1.0 Universal (CC0 1.0) Author: RandomLegoBrick