1
0
mirror of https://bitbucket.org/Infinatum/scaffolding.git synced 2025-07-20 17:00:27 +02:00

3 Commits

Author SHA1 Message Date
8ad6591315 Delete depends.txt, add mod.conf 2022-07-02 21:42:24 +02:00
5a785b4d00 Merge remote-tracking branch 'upstream/master' 2020-07-31 22:12:35 +02:00
2ff60245a9 Fix warnings on undeclared global variables 2020-07-20 02:20:06 +02:00
4 changed files with 13 additions and 18 deletions

View File

@ -1 +0,0 @@
default

View File

@ -1,7 +1,7 @@
local buildPlatform = function(node, pos, itemstack) local buildPlatform = function(node, pos, itemstack)
-- code for the building platforms -- code for the building platforms
posZ = {'1', '0', '-1', '-1', '0', '0', '1', '1' }; local posZ = {'1', '0', '-1', '-1', '0', '0', '1', '1' };
posX = {'0', '-1', '0', '0', '1', '1', '0', '0' }; local posX = {'0', '-1', '0', '0', '1', '1', '0', '0' };
for nameCount = 1, 8 do for nameCount = 1, 8 do
pos.z = pos.z + posZ[nameCount]; pos.z = pos.z + posZ[nameCount];
@ -20,8 +20,8 @@ local buildScaffolding = function(node, pos, itemstack, player)
-- many thanks to addi for improveing (rewriteing) my crappy code -- -- many thanks to addi for improveing (rewriteing) my crappy code --
-- code for the building scaffolding -- code for the building scaffolding
height = 0; local height = 0;
depth = 0; -- !!Note!! depth is not needed at the moment local depth = 0; -- !!Note!! depth is not needed at the moment
--[[ debug stuff ]] --[[ debug stuff ]]
@ -75,7 +75,6 @@ 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
@ -133,7 +132,6 @@ 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
@ -179,7 +177,6 @@ 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
@ -220,7 +217,6 @@ 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
@ -254,7 +250,6 @@ 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 = {
@ -313,7 +308,6 @@ 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
@ -359,7 +353,6 @@ 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
@ -400,7 +393,6 @@ 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
@ -429,18 +421,18 @@ minetest.register_node("scaffolding:reinforced_scaffolding", {
minetest.register_craft({ minetest.register_craft({
output = 'scaffolding:scaffolding 12', output = 'scaffolding:scaffolding 12',
recipe = { recipe = {
{'group:wood', 'group:wood', 'group:wood'}, {'default:wood', 'default:wood', 'default:wood'},
{'default:stick', '', 'default:stick'}, {'default:stick', '', 'default:stick'},
{'group:wood', 'group:wood', 'group:wood'}, {'default:wood', 'default:wood', 'default:wood'},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = 'scaffolding:scaffolding 4', output = 'scaffolding:scaffolding 4',
recipe = { recipe = {
{'group:wood'}, {'default:wood'},
{'default:stick'}, {'default:stick'},
{'group:wood'}, {'default:wood'},
} }
}) })
@ -549,3 +541,5 @@ minetest.register_craft({
{'default:steel_ingot', '', ''}, {'default:steel_ingot', '', ''},
} }
}) })
minetest.log("action", "[scaffolding] loaded.")

View File

@ -1,2 +1,4 @@
name = scaffolding name = scaffolding
description = Adds the ability quickly build and remove scaffolding title = Scaffolding
description = Say Goodbye To Dirt Scaffolding.
depends = default

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1015 KiB