summaryrefslogtreecommitdiff
path: root/bobblocks
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-02-19 12:01:09 -0500
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-02-19 12:01:09 -0500
commita7bebc671920fd58992de4ff5a5f2716c891565c (patch)
tree33fdcbfefeffe292e1c20c156d84cfafb89b8b80 /bobblocks
parent2aae75d105c39af6fa2b5a84672726ee5c19fec1 (diff)
downloaddreambuilder_modpack-a7bebc671920fd58992de4ff5a5f2716c891565c.tar
dreambuilder_modpack-a7bebc671920fd58992de4ff5a5f2716c891565c.tar.gz
dreambuilder_modpack-a7bebc671920fd58992de4ff5a5f2716c891565c.tar.bz2
dreambuilder_modpack-a7bebc671920fd58992de4ff5a5f2716c891565c.tar.xz
dreambuilder_modpack-a7bebc671920fd58992de4ff5a5f2716c891565c.zip
updated bobblocks, gloopblocks, maptools, mesecons, moreblocks,
moreores, plantlife, and xban2, and switched to TenPlus1's "farming redo" mod in lieu of Pilzadam's farming_plus since the latter breaks default farming.
Diffstat (limited to 'bobblocks')
-rw-r--r--bobblocks/blocks.lua40
-rw-r--r--bobblocks/health.lua4
2 files changed, 25 insertions, 19 deletions
diff --git a/bobblocks/blocks.lua b/bobblocks/blocks.lua
index 85c5782..f0a516e 100644
--- a/bobblocks/blocks.lua
+++ b/bobblocks/blocks.lua
@@ -16,6 +16,8 @@ bobblocks.colorlist = {
"grey"
}
+bobblocks.opacity = 150 -- Opacity: 0-255; 0 Full transparent, 255 Full opaque
+
bobblocks.update_bobblock = function (pos, node)
local newnode = node
if string.find(newnode.name, "_off") then
@@ -39,7 +41,7 @@ minetest.register_node("bobblocks:block", {
paramtype2 = "color",
palette = "unifieddyes_palette.png",
sunlight_propagates = true,
- is_ground_content = true,
+ is_ground_content = false,
sounds = default.node_sound_glass_defaults(),
light_source = LIGHT_MAX-0,
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3, ud_param2_colorable = 1},
@@ -48,19 +50,20 @@ minetest.register_node("bobblocks:block", {
offstate = "bobblocks:block_off"
}
},
- on_punch = bobblocks.update_bobblock,
+ on_rightclick = bobblocks.update_bobblock,
after_dig_node = unifieddyes.after_dig_node
})
minetest.register_node("bobblocks:block_off", {
description = "Bobblocks Plain Block (off)",
- tiles = {"bobblocks_block.png"},
+ drawtype = "glasslike",
+ tiles = {"bobblocks_block.png^[opacity:"..bobblocks.opacity},
paramtype2 = "color",
palette = "unifieddyes_palette.png",
- is_ground_content = true,
- alpha = WATER_ALPHA,
+ is_ground_content = false,
+ use_texture_alpha = true,
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1, ud_param2_colorable = 1},
- drop = 'bobblocks:redblock',
+ drop = "bobblocks:block",
foo = {conductor={
state = mesecon.state.off,
onstate = "bobblocks:block"
@@ -80,7 +83,7 @@ minetest.register_node("bobblocks:pole", {
paramtype2 = "color",
palette = "unifieddyes_palette.png",
sunlight_propagates = true,
- is_ground_content = true,
+ is_ground_content = false,
sounds = default.node_sound_glass_defaults(),
light_source = LIGHT_MAX-0,
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3, ud_param2_colorable = 1},
@@ -96,16 +99,17 @@ minetest.register_node("bobblocks:pole", {
minetest.register_node("bobblocks:pole_off", {
description = "Bobblocks Pole (off)",
drawtype = "fencelike",
- tiles = {"bobblocks_block.png"},
+ tiles = {"bobblocks_block.png^[opacity:"..bobblocks.opacity},
paramtype = "light",
paramtype2 = "color",
palette = "unifieddyes_palette.png",
sunlight_propagates = true,
- is_ground_content = true,
+ is_ground_content = false,
+ use_texture_alpha = true,
sounds = default.node_sound_glass_defaults(),
light_source = LIGHT_MAX-10,
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1, ud_param2_colorable = 1},
- drop = 'bobblocks:redpole',
+ drop = 'bobblocks:pole',
foo = {conductor={
state = mesecon.state.off,
onstate = "bobblocks:pole"
@@ -123,7 +127,6 @@ minetest.register_node("bobblocks:btm", {
"bobblocks_btm_sides.png", "bobblocks_btm_sides.png", "bobblocks_btm.png"},
inventory_image = "bobblocks_btm.png",
paramtype2 = "facedir",
- material = minetest.digprop_dirtlike(1.0),
legacy_facedir_simple = true,
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1},
})
@@ -136,7 +139,7 @@ minetest.register_node("bobblocks:wavyblock", {
paramtype2 = "color",
palette = "unifieddyes_palette.png",
sunlight_propagates = true,
- is_ground_content = true,
+ is_ground_content = false,
sounds = default.node_sound_glass_defaults(),
light_source = LIGHT_MAX-0,
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3, ud_param2_colorable = 1},
@@ -146,24 +149,27 @@ minetest.register_node("bobblocks:wavyblock", {
offstate = "bobblocks:wavyblock_off"
}
},
+ on_rightclick = bobblocks.update_bobblock,
after_dig_node = unifieddyes.after_dig_node
})
minetest.register_node("bobblocks:wavyblock_off", {
description = "Bobblocks Wavy-textured Block (off)",
- tiles = {"bobblocks_wavyblock.png"},
+ drawtype = "glasslike",
+ tiles = {"bobblocks_wavyblock.png^[opacity:"..bobblocks.opacity},
paramtype2 = "color",
palette = "unifieddyes_palette.png",
- is_ground_content = true,
- alpha = WATER_ALPHA,
+ is_ground_content = false,
+ use_texture_alpha = true,
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3,not_in_creative_inventory=1, ud_param2_colorable = 1},
- drop = 'bobblocks:wavyblock',
+ drop = "bobblocks:wavyblock",
foo = {conductor=
{
state = mesecon.state.off,
onstate = "bobblocks:wavyblock"
}
},
+ on_rightclick = bobblocks.update_bobblock,
after_dig_node = unifieddyes.after_dig_node
})
@@ -176,7 +182,7 @@ minetest.register_node("bobblocks:wavypole", {
paramtype2 = "color",
palette = "unifieddyes_palette.png",
sunlight_propagates = true,
- is_ground_content = true,
+ is_ground_content = false,
sounds = default.node_sound_glass_defaults(),
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3, ud_param2_colorable = 1},
after_dig_node = unifieddyes.after_dig_node,
diff --git a/bobblocks/health.lua b/bobblocks/health.lua
index a26e552..9588f87 100644
--- a/bobblocks/health.lua
+++ b/bobblocks/health.lua
@@ -37,7 +37,7 @@ minetest.register_node("bobblocks:health_off", {
paramtype2 = "facedir",
legacy_facedir_simple = true,
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
- is_ground_content = true,
+ is_ground_content = false,
walkable = false,
climbable = false,
mesecons = {conductor={
@@ -53,7 +53,7 @@ minetest.register_node("bobblocks:health_on", {
legacy_facedir_simple = true,
light_source = LIGHT_MAX-0,
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
- is_ground_content = true,
+ is_ground_content = false,
walkable = false,
climbable = false,
drop = "bobblocks:health_off",