forked from mtcontrib/scaffolding
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
294276a7d1
16
init.lua
16
init.lua
|
@ -75,6 +75,7 @@ minetest.register_node("scaffolding:scaffolding", {
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
|
use_texture_alpha = "blend",
|
||||||
on_punch = function(pos, node, puncher)
|
on_punch = function(pos, node, puncher)
|
||||||
local tool = puncher:get_wielded_item():get_name()
|
local tool = puncher:get_wielded_item():get_name()
|
||||||
if tool and tool == "scaffolding:scaffolding_wrench" then
|
if tool and tool == "scaffolding:scaffolding_wrench" then
|
||||||
|
@ -132,6 +133,7 @@ minetest.register_node("scaffolding:reinforced_scaffolding", {
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
|
use_texture_alpha = "blend",
|
||||||
on_punch = function(pos, node, puncher)
|
on_punch = function(pos, node, puncher)
|
||||||
local tool = puncher:get_wielded_item():get_name()
|
local tool = puncher:get_wielded_item():get_name()
|
||||||
if tool and tool == "scaffolding:scaffolding_wrench" then
|
if tool and tool == "scaffolding:scaffolding_wrench" then
|
||||||
|
@ -177,6 +179,7 @@ minetest.register_node("scaffolding:reinforced_scaffolding", {
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
|
use_texture_alpha = "blend",
|
||||||
on_punch = function(pos, node, puncher)
|
on_punch = function(pos, node, puncher)
|
||||||
local tool = puncher:get_wielded_item():get_name()
|
local tool = puncher:get_wielded_item():get_name()
|
||||||
if tool and tool == "scaffolding:scaffolding_wrench" then
|
if tool and tool == "scaffolding:scaffolding_wrench" then
|
||||||
|
@ -217,6 +220,7 @@ minetest.register_node("scaffolding:reinforced_scaffolding", {
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
|
use_texture_alpha = "blend",
|
||||||
on_punch = function(pos, node, puncher)
|
on_punch = function(pos, node, puncher)
|
||||||
local tool = puncher:get_wielded_item():get_name()
|
local tool = puncher:get_wielded_item():get_name()
|
||||||
if tool and tool == "scaffolding:scaffolding_wrench" then
|
if tool and tool == "scaffolding:scaffolding_wrench" then
|
||||||
|
@ -250,6 +254,7 @@ minetest.register_node("scaffolding:reinforced_scaffolding", {
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
groups = {snappy=2,cracky=3},
|
groups = {snappy=2,cracky=3},
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
|
use_texture_alpha = "blend",
|
||||||
node_box = {
|
node_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {
|
fixed = {
|
||||||
|
@ -308,6 +313,7 @@ minetest.register_node("scaffolding:reinforced_scaffolding", {
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
groups = {snappy=2,cracky=3},
|
groups = {snappy=2,cracky=3},
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
|
use_texture_alpha = "blend",
|
||||||
on_punch = function(pos, node, puncher)
|
on_punch = function(pos, node, puncher)
|
||||||
local tool = puncher:get_wielded_item():get_name()
|
local tool = puncher:get_wielded_item():get_name()
|
||||||
if tool and tool == "scaffolding:scaffolding_wrench" then
|
if tool and tool == "scaffolding:scaffolding_wrench" then
|
||||||
|
@ -353,6 +359,7 @@ minetest.register_node("scaffolding:reinforced_scaffolding", {
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
groups = {snappy=2,cracky=3},
|
groups = {snappy=2,cracky=3},
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
|
use_texture_alpha = "blend",
|
||||||
on_punch = function(pos, node, puncher)
|
on_punch = function(pos, node, puncher)
|
||||||
local tool = puncher:get_wielded_item():get_name()
|
local tool = puncher:get_wielded_item():get_name()
|
||||||
if tool and tool == "scaffolding:scaffolding_wrench" then
|
if tool and tool == "scaffolding:scaffolding_wrench" then
|
||||||
|
@ -393,6 +400,7 @@ minetest.register_node("scaffolding:reinforced_scaffolding", {
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
groups = {snappy=2,cracky=3},
|
groups = {snappy=2,cracky=3},
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
|
use_texture_alpha = "blend",
|
||||||
on_punch = function(pos, node, puncher)
|
on_punch = function(pos, node, puncher)
|
||||||
local tool = puncher:get_wielded_item():get_name()
|
local tool = puncher:get_wielded_item():get_name()
|
||||||
if tool and tool == "scaffolding:scaffolding_wrench" then
|
if tool and tool == "scaffolding:scaffolding_wrench" then
|
||||||
|
@ -421,18 +429,18 @@ minetest.register_node("scaffolding:reinforced_scaffolding", {
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = 'scaffolding:scaffolding 12',
|
output = 'scaffolding:scaffolding 12',
|
||||||
recipe = {
|
recipe = {
|
||||||
{'default:wood', 'default:wood', 'default:wood'},
|
{'group:wood', 'group:wood', 'group:wood'},
|
||||||
{'default:stick', '', 'default:stick'},
|
{'default:stick', '', 'default:stick'},
|
||||||
{'default:wood', 'default:wood', 'default:wood'},
|
{'group:wood', 'group:wood', 'group:wood'},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = 'scaffolding:scaffolding 4',
|
output = 'scaffolding:scaffolding 4',
|
||||||
recipe = {
|
recipe = {
|
||||||
{'default:wood'},
|
{'group:wood'},
|
||||||
{'default:stick'},
|
{'default:stick'},
|
||||||
{'default:wood'},
|
{'group:wood'},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
2
mod.conf
2
mod.conf
|
@ -1,4 +1,4 @@
|
||||||
name = scaffolding
|
name = scaffolding
|
||||||
title = Scaffolding
|
title = Scaffolding
|
||||||
description = Say Goodbye To Dirt Scaffolding.
|
description = Adds the ability quickly build and remove scaffolding
|
||||||
depends = default
|
depends = default
|
||||||
|
|
BIN
screenshot.png
Normal file
BIN
screenshot.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1015 KiB |
Loading…
Reference in New Issue
Block a user