add 'bonemeal.disable_deathbones_recipe' setting

This commit is contained in:
tenplus1 2023-01-11 18:55:21 +00:00
parent 8ccf4a591a
commit 1935d348c1
2 changed files with 10 additions and 5 deletions

View File

@ -677,10 +677,13 @@ minetest.register_craft({
}) })
-- bonemeal (from player bones) -- bonemeal (from player bones)
minetest.register_craft({ if minetest.settings:get_bool("bonemeal.disable_deathbones_recipe") ~= true then
minetest.register_craft({
output = "bonemeal:bonemeal 4", output = "bonemeal:bonemeal 4",
recipe = {{"bones:bones"}} recipe = {{"bones:bones"}}
}) })
end
-- bonemeal (from coral skeleton) -- bonemeal (from coral skeleton)
minetest.register_craft({ minetest.register_craft({
@ -740,4 +743,4 @@ if minetest.get_modpath("lucky_block") then
end end
print ("[MOD] bonemeal loaded") print ("[MOD] Bonemeal loaded")

2
settingtypes.txt Normal file
View File

@ -0,0 +1,2 @@
# Disable recipe for bones:bones to craft into bonemeal
bonemeal.disable_deathbones_recipe (Disable recipe for death bones into bonemeal) bool false