Make some manual formatting to make the code more readable
Some checks failed
build / build (pull_request) Waiting to run
build / build (push) Has been cancelled

This commit was merged in pull request #2.
This commit is contained in:
2025-12-05 11:59:55 +01:00
parent 2eddcca11c
commit e1cdc26a75
6 changed files with 40 additions and 27 deletions

View File

@@ -3,12 +3,12 @@ minetest.register_craftitem(
":default:tree_bark",
{description = "Tree bark", inventory_image = "tree_bark.png", groups = {not_in_creative_inventory = 1}}
)
-- register bark as fuel
-- Register bark as fuel
minetest.register_craft({type = "fuel", recipe = "default:tree_bark", burntime = 15})
-- Register craft for string
if minetest.get_modpath("farming") then
minetest.register_craft(
{
output = "farming:string 4",
@@ -35,7 +35,6 @@ minetest.register_craft(
-- Register craft for mulch
if minetest.get_modpath("bonemeal") then
minetest.register_craft(
{
output = "bonemeal:mulch 4",
@@ -47,6 +46,7 @@ if minetest.get_modpath("bonemeal") then
}
)
end
-- Register stripped trees
local mod_name = "default"
local trunk_names = {"tree", "jungletree", "aspen_tree", "acacia_tree", "pine_tree"}
@@ -56,4 +56,3 @@ stripped_tree.register_trunk(mod_name, trunk_names)
-- Register axes
local axe_types = {"axe_wood", "axe_stone", "axe_bronze", "axe_steel", "axe_mese", "axe_diamond"}
if not stripped_tree.ENABLE_CHISEL then stripped_tree.register_axes(mod_name, axe_types) end