0
0
Fork 0

Clean-up mcl_bamboo code

make it less dramatic ('Bamboo Door.') and fix inventory_image inconsistency with trapdoors
This commit is contained in:
Mikita Wiśniewski 2023-04-24 11:35:56 +07:00
parent 3b64ceb5b2
commit 21694879be
2 changed files with 6 additions and 6 deletions

View File

@ -62,7 +62,7 @@ if minetest.get_modpath("mcl_doors") then
local name = "mcl_bamboo:bamboo_door" local name = "mcl_bamboo:bamboo_door"
local def = { local def = {
description = S("Bamboo Door."), description = S("Bamboo Door"),
inventory_image = "mcl_bamboo_door_wield.png", inventory_image = "mcl_bamboo_door_wield.png",
wield_image = "mcl_bamboo_door_wield.png", wield_image = "mcl_bamboo_door_wield.png",
groups = { handy = 1, axey = 1, material_wood = 1, flammable = -1 }, groups = { handy = 1, axey = 1, material_wood = 1, flammable = -1 },
@ -77,15 +77,15 @@ if minetest.get_modpath("mcl_doors") then
name = "mcl_bamboo:bamboo_trapdoor" name = "mcl_bamboo:bamboo_trapdoor"
local trap_def = { local trap_def = {
description = S("Bamboo Trapdoor."), description = S("Bamboo Trapdoor"),
inventory_image = "mcl_bamboo_door_complete.png", --inventory_image = "mcl_bamboo_door_complete.png",
groups = {}, groups = {},
tile_front = "mcl_bamboo_trapdoor_side.png", tile_front = "mcl_bamboo_trapdoor_side.png",
tile_side = "mcl_bamboo_trapdoor_side.png", tile_side = "mcl_bamboo_trapdoor_side.png",
_doc_items_longdesc = S("Wooden trapdoors are horizontal barriers which can be opened and closed by hand or a redstone signal. They occupy the upper or lower part of a block, depending on how they have been placed. When open, they can be climbed like a ladder."), _doc_items_longdesc = S("Wooden trapdoors are horizontal barriers which can be opened and closed by hand or a redstone signal. They occupy the upper or lower part of a block, depending on how they have been placed. When open, they can be climbed like a ladder."),
_doc_items_usagehelp = S("To open or close the trapdoor, rightclick it or send a redstone signal to it."), _doc_items_usagehelp = S("To open or close the trapdoor, rightclick it or send a redstone signal to it."),
wield_image = "mcl_bamboo_trapdoor_side.png", wield_image = "mcl_bamboo_trapdoor_side.png",
inventory_image = "mcl_bamboo_trapdoor_side.png", --inventory_image = "mcl_bamboo_trapdoor_side.png",
groups = { handy = 1, axey = 1, mesecon_effector_on = 1, material_wood = 1, flammable = -1 }, groups = { handy = 1, axey = 1, mesecon_effector_on = 1, material_wood = 1, flammable = -1 },
_mcl_hardness = 3, _mcl_hardness = 3,
_mcl_blast_resistance = 3, _mcl_blast_resistance = 3,

View File

@ -14,7 +14,7 @@ A wooden pressure plate is a redstone component which supplies its surrounding b
Bamboo= Bamboo=
Bamboo Button= Bamboo Button=
Bamboo Door.= Bamboo Door=
Bamboo Fence= Bamboo Fence=
Bamboo Fence Gate= Bamboo Fence Gate=
Bamboo Mosaic Slab= Bamboo Mosaic Slab=
@ -24,7 +24,7 @@ Bamboo Plank Stair=
Bamboo Pressure Plate= Bamboo Pressure Plate=
Bamboo Slab= Bamboo Slab=
Bamboo Stair= Bamboo Stair=
Bamboo Trapdoor.= Bamboo Trapdoor=
Double Bamboo Mosaic Slab= Double Bamboo Mosaic Slab=
Double Bamboo Plank Slab= Double Bamboo Plank Slab=
Double Bamboo Slab= Double Bamboo Slab=