Compare commits

..

No commits in common. "master" and "auto-build" have entirely different histories.

11 changed files with 9 additions and 22 deletions

1
depends.txt Normal file
View File

@ -0,0 +1 @@
default

View File

@ -1,7 +1,7 @@
local buildPlatform = function(node, pos, itemstack)
-- code for the building platforms
local posZ = {'1', '0', '-1', '-1', '0', '0', '1', '1' };
local posX = {'0', '-1', '0', '0', '1', '1', '0', '0' };
posZ = {'1', '0', '-1', '-1', '0', '0', '1', '1' };
posX = {'0', '-1', '0', '0', '1', '1', '0', '0' };
for nameCount = 1, 8 do
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 --
-- code for the building scaffolding
local height = 0;
local depth = 0; -- !!Note!! depth is not needed at the moment
height = 0;
depth = 0; -- !!Note!! depth is not needed at the moment
--[[ debug stuff ]]
@ -75,7 +75,6 @@ minetest.register_node("scaffolding:scaffolding", {
is_ground_content = true,
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
sounds = default.node_sound_wood_defaults(),
use_texture_alpha = "blend",
on_punch = function(pos, node, puncher)
local tool = puncher:get_wielded_item():get_name()
if tool and tool == "scaffolding:scaffolding_wrench" then
@ -133,7 +132,6 @@ minetest.register_node("scaffolding:reinforced_scaffolding", {
is_ground_content = true,
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
sounds = default.node_sound_wood_defaults(),
use_texture_alpha = "blend",
on_punch = function(pos, node, puncher)
local tool = puncher:get_wielded_item():get_name()
if tool and tool == "scaffolding:scaffolding_wrench" then
@ -179,7 +177,6 @@ minetest.register_node("scaffolding:reinforced_scaffolding", {
is_ground_content = true,
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
sounds = default.node_sound_wood_defaults(),
use_texture_alpha = "blend",
on_punch = function(pos, node, puncher)
local tool = puncher:get_wielded_item():get_name()
if tool and tool == "scaffolding:scaffolding_wrench" then
@ -220,7 +217,6 @@ minetest.register_node("scaffolding:reinforced_scaffolding", {
is_ground_content = true,
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
sounds = default.node_sound_wood_defaults(),
use_texture_alpha = "blend",
on_punch = function(pos, node, puncher)
local tool = puncher:get_wielded_item():get_name()
if tool and tool == "scaffolding:scaffolding_wrench" then
@ -254,7 +250,6 @@ minetest.register_node("scaffolding:reinforced_scaffolding", {
is_ground_content = true,
groups = {snappy=2,cracky=3},
sounds = default.node_sound_wood_defaults(),
use_texture_alpha = "blend",
node_box = {
type = "fixed",
fixed = {
@ -313,7 +308,6 @@ minetest.register_node("scaffolding:reinforced_scaffolding", {
is_ground_content = true,
groups = {snappy=2,cracky=3},
sounds = default.node_sound_wood_defaults(),
use_texture_alpha = "blend",
on_punch = function(pos, node, puncher)
local tool = puncher:get_wielded_item():get_name()
if tool and tool == "scaffolding:scaffolding_wrench" then
@ -359,7 +353,6 @@ minetest.register_node("scaffolding:reinforced_scaffolding", {
is_ground_content = true,
groups = {snappy=2,cracky=3},
sounds = default.node_sound_wood_defaults(),
use_texture_alpha = "blend",
on_punch = function(pos, node, puncher)
local tool = puncher:get_wielded_item():get_name()
if tool and tool == "scaffolding:scaffolding_wrench" then
@ -400,7 +393,6 @@ minetest.register_node("scaffolding:reinforced_scaffolding", {
is_ground_content = true,
groups = {snappy=2,cracky=3},
sounds = default.node_sound_wood_defaults(),
use_texture_alpha = "blend",
on_punch = function(pos, node, puncher)
local tool = puncher:get_wielded_item():get_name()
if tool and tool == "scaffolding:scaffolding_wrench" then
@ -429,18 +421,18 @@ minetest.register_node("scaffolding:reinforced_scaffolding", {
minetest.register_craft({
output = 'scaffolding:scaffolding 12',
recipe = {
{'group:wood', 'group:wood', 'group:wood'},
{'default:wood', 'default:wood', 'default:wood'},
{'default:stick', '', 'default:stick'},
{'group:wood', 'group:wood', 'group:wood'},
{'default:wood', 'default:wood', 'default:wood'},
}
})
minetest.register_craft({
output = 'scaffolding:scaffolding 4',
recipe = {
{'group:wood'},
{'default:wood'},
{'default:stick'},
{'group:wood'},
{'default:wood'},
}
})
@ -549,5 +541,3 @@ minetest.register_craft({
{'default:steel_ingot', '', ''},
}
})
minetest.log("action", "[scaffolding] loaded.")

View File

@ -1,4 +0,0 @@
name = scaffolding
title = Scaffolding
description = Adds the ability quickly build and remove scaffolding
depends = default

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1015 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 701 B

After

Width:  |  Height:  |  Size: 484 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 554 B

After

Width:  |  Height:  |  Size: 392 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 407 B

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 441 B

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 714 B

After

Width:  |  Height:  |  Size: 492 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 555 B

After

Width:  |  Height:  |  Size: 404 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 481 B

After

Width:  |  Height:  |  Size: 3.0 KiB