1
0
mirror of https://bitbucket.org/Infinatum/scaffolding.git synced 2024-11-14 14:20:30 +01:00

added fix to alpha bug

This commit is contained in:
xenurine 2024-08-10 16:53:46 +01:00
parent 930edb43d2
commit 4a4196d8a3
3 changed files with 10 additions and 0 deletions

View File

@ -75,6 +75,7 @@ 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
@ -132,6 +133,7 @@ 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
@ -177,6 +179,7 @@ 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
@ -217,6 +220,7 @@ 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
@ -250,6 +254,7 @@ 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 = {
@ -308,6 +313,7 @@ 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
@ -353,6 +359,7 @@ 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
@ -393,6 +400,7 @@ 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

2
mod.conf Normal file
View File

@ -0,0 +1,2 @@
name = scaffolding
description = Adds the ability quickly build and remove scaffolding

BIN
screenshot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1015 KiB