Compare commits
5 Commits
d7f7b087c9
...
59b206eabb
Author | SHA1 | Date |
---|---|---|
Juraj Vajda | 59b206eabb | |
Juraj Vajda | 775d8287d8 | |
Juraj Vajda | 2c703a6413 | |
Juraj Vajda | ff3420c9d9 | |
Juraj Vajda | 66121a1189 |
|
@ -1,22 +1 @@
|
|||
## Files related to minetest development cycle
|
||||
/*.patch
|
||||
# GNU Patch reject file
|
||||
*.rej
|
||||
|
||||
## Editors and Development environments
|
||||
*~
|
||||
*.swp
|
||||
*.bak*
|
||||
*.orig
|
||||
# Vim
|
||||
*.vim
|
||||
# Kate
|
||||
.*.kate-swp
|
||||
.swp.*
|
||||
# Eclipse (LDT)
|
||||
.project
|
||||
.settings/
|
||||
.buildpath
|
||||
.metadata
|
||||
# Idea IDE
|
||||
.idea/*
|
||||
.DS_Store
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -299,7 +299,7 @@ function enchanting:register_tools(mod, def)
|
|||
for enchant in def.tools[tool].enchants:gmatch("[%w_]+") do
|
||||
local original_tool = minetest.registered_tools[mod..":"..tool]
|
||||
local register_tool = ":"..mod..":enchanted_"..tool.."_"..enchant
|
||||
|
||||
|
||||
if material ~= "obsidianmese" then
|
||||
original_tool = minetest.registered_tools[mod..":"..tool.."_"..material]
|
||||
register_tool = ":"..mod..":enchanted_"..tool.."_"..material.."_"..enchant
|
||||
|
@ -347,6 +347,22 @@ function enchanting:register_tools(mod, def)
|
|||
},
|
||||
on_secondary_use = sec_use
|
||||
}
|
||||
elseif tool == "pick" then
|
||||
local on_place = original_tool.on_place
|
||||
-- pick def
|
||||
tool_def = {
|
||||
description = "Enchanted "..cap(material).." "..cap(tool)..
|
||||
self:get_tooltip(enchant, original_groupcaps[group], fleshy),
|
||||
inventory_image = original_tool.inventory_image.."^[colorize:violet:50",
|
||||
wield_image = original_tool.wield_image,
|
||||
groups = {not_in_creative_inventory=1},
|
||||
tool_capabilities = {
|
||||
groupcaps = groupcaps, damage_groups = {fleshy = fleshy},
|
||||
full_punch_interval = full_punch_interval,
|
||||
max_drop_level = max_drop_level
|
||||
},
|
||||
on_place = on_place
|
||||
}
|
||||
else
|
||||
-- default def
|
||||
tool_def = {
|
||||
|
|
100
src/nodes.lua
100
src/nodes.lua
|
@ -486,3 +486,103 @@ xdecor.register("woodframed_glass", {
|
|||
groups = {cracky=2, oddly_breakable_by_hand=1},
|
||||
sounds = default.node_sound_glass_defaults()
|
||||
})
|
||||
|
||||
stairs.register_stair_and_slab(
|
||||
"cactusbrick",
|
||||
"xdecor:cactusbrick",
|
||||
{cracky = 2, stone = 1},
|
||||
{"xdecor_cactusbrick.png"},
|
||||
"Cactus Brick Stair",
|
||||
"Cactus Brick Slab",
|
||||
default.node_sound_stone_defaults(),
|
||||
false
|
||||
)
|
||||
|
||||
stairs.register_stair_and_slab(
|
||||
"moonbrick",
|
||||
"xdecor:moonbrick",
|
||||
{cracky = 2, stone = 1},
|
||||
{"xdecor_moonbrick.png"},
|
||||
"Moon Brick Stair",
|
||||
"Moon Brick Slab",
|
||||
default.node_sound_stone_defaults(),
|
||||
false
|
||||
)
|
||||
|
||||
stairs.register_stair_and_slab(
|
||||
"desertstone_tile",
|
||||
"xdecor:desertstone_tile",
|
||||
{cracky = 2, stone = 1},
|
||||
{"xdecor_desertstone_tile.png"},
|
||||
"Desert Stone Tile Stair",
|
||||
"Desert Stone Tile Slab",
|
||||
default.node_sound_stone_defaults(),
|
||||
false
|
||||
)
|
||||
|
||||
stairs.register_stair_and_slab(
|
||||
"stone_tile",
|
||||
"xdecor:stone_tile",
|
||||
{cracky = 2, stone = 1},
|
||||
{"xdecor_stone_tile.png"},
|
||||
"Stone Tile Stair",
|
||||
"Stone Tile Slab",
|
||||
default.node_sound_stone_defaults(),
|
||||
false
|
||||
)
|
||||
|
||||
stairs.register_stair_and_slab(
|
||||
"stone_rune",
|
||||
"xdecor:stone_rune",
|
||||
{cracky = 2, stone = 1},
|
||||
{"xdecor_stone_rune.png"},
|
||||
"Runestone Stair",
|
||||
"Runestone Slab",
|
||||
default.node_sound_stone_defaults(),
|
||||
false
|
||||
)
|
||||
|
||||
stairs.register_stair_and_slab(
|
||||
"hard_clay",
|
||||
"xdecor:hard_clay",
|
||||
{cracky = 2, stone = 1},
|
||||
{"xdecor_hard_clay.png"},
|
||||
"Hardened Clay Stair",
|
||||
"Hardened Clay Slab",
|
||||
default.node_sound_stone_defaults(),
|
||||
false
|
||||
)
|
||||
|
||||
stairs.register_stair_and_slab(
|
||||
"coalstone_tile",
|
||||
"xdecor:coalstone_tile",
|
||||
{cracky = 2, stone = 1},
|
||||
{"xdecor_coalstone_tile.png"},
|
||||
"Coal Stone Tile Stair",
|
||||
"Coal Stone Tile Slab",
|
||||
default.node_sound_stone_defaults(),
|
||||
false
|
||||
)
|
||||
|
||||
stairs.register_stair_and_slab(
|
||||
"packed_ice",
|
||||
"xdecor:packed_ice",
|
||||
{cracky = 2, stone = 1},
|
||||
{"xdecor_packed_ice.png"},
|
||||
"Packed Ice Stair",
|
||||
"Packed Ice Slab",
|
||||
default.node_sound_stone_defaults(),
|
||||
false
|
||||
)
|
||||
|
||||
stairs.register_stair_and_slab(
|
||||
"wood_tile",
|
||||
"xdecor:wood_tile",
|
||||
{choppy=1, wood=1, flammable=2},
|
||||
{"xdecor_wood_tile.png"},
|
||||
"Wooden Tile Stair",
|
||||
"Wooden Tile Slab",
|
||||
default.node_sound_stone_defaults(),
|
||||
false
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue