Skip to content

Commit

Permalink
Add mcl groups, _mcl_hardness, _mcl_blast_resistance params (#15)
Browse files Browse the repository at this point in the history
* MineClonia/MineClone2 _mcl_hardness and _mcl_blast_resistance params

* _mcl_hardness and _mcl_blast_resistance to signs mod

* _mcl_hardness and _mcl_blast_resistance to clocks mod
  • Loading branch information
nonfreegithub authored Mar 21, 2024
1 parent c315900 commit 4dc2bb6
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 6 deletions.
24 changes: 18 additions & 6 deletions ontime_clocks/nodes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ minetest.register_node("ontime_clocks:green_digital", {
wall_top = {-7/16, 0.5, -7/32, 7/16, 13/32, 3/16}
},
tiles = {"ontime_clocks_digital.png"},
groups = {oddly_breakable_by_hand=1, not_blocking_trains=1, display_api=1},
groups = {oddly_breakable_by_hand=1, not_blocking_trains=1, display_api=1, handy = 1},
_mcl_hardness = 0.8,
_mcl_blast_resistance = 1,
is_ground_content = false,
display_entities = {
["ontime_clocks:display"] = {
Expand Down Expand Up @@ -81,7 +83,9 @@ minetest.register_node("ontime_clocks:red_digital", {
wall_top = {-7/16, 0.5, -7/32, 7/16, 13/32, 3/16}
},
tiles = {"ontime_clocks_digital.png"},
groups = {oddly_breakable_by_hand=1, not_blocking_trains=1, display_api=1},
groups = {oddly_breakable_by_hand=1, not_blocking_trains=1, display_api=1, handy = 1},
_mcl_hardness = 0.8,
_mcl_blast_resistance = 1,
is_ground_content = false,
display_entities = {
["ontime_clocks:display"] = {
Expand Down Expand Up @@ -115,7 +119,9 @@ minetest.register_node("ontime_clocks:white", {
wall_top = { -7/16, 0.5, -7/16, 7/16, 7/16, 7/16},
},
tiles = {"ontime_clocks_white.png"},
groups = {oddly_breakable_by_hand=1, not_blocking_trains=1, display_api=1},
groups = {oddly_breakable_by_hand=1, not_blocking_trains=1, display_api=1, handy = 1},
_mcl_hardness = 0.8,
_mcl_blast_resistance = 1,
is_ground_content = false,
display_entities = {
["ontime_clocks:display"] = {
Expand Down Expand Up @@ -150,7 +156,9 @@ minetest.register_node("ontime_clocks:frameless_black", {
wall_top = { -0.5, -0.5, -0.5, 0.5, 0.5, 0.5 }
},
tiles = {"ontime_clocks_frameless.png"},
groups = {oddly_breakable_by_hand=1, not_blocking_trains=1, display_api=1},
groups = {oddly_breakable_by_hand=1, not_blocking_trains=1, display_api=1, handy = 1},
_mcl_hardness = 0.8,
_mcl_blast_resistance = 1,
is_ground_content = false,
display_entities = {
["ontime_clocks:display"] = {
Expand Down Expand Up @@ -185,7 +193,9 @@ minetest.register_node("ontime_clocks:frameless_gold", {
wall_top = { -0.5, -0.5, -0.5, 0.5, 0.5, 0.5 }
},
tiles = {"ontime_clocks_frameless.png^[colorize:#FF0"},
groups = {oddly_breakable_by_hand=1, not_blocking_trains=1, display_api=1},
groups = {oddly_breakable_by_hand=1, not_blocking_trains=1, display_api=1, handy = 1},
_mcl_hardness = 0.8,
_mcl_blast_resistance = 1,
is_ground_content = false,
display_entities = {
["ontime_clocks:display"] = {
Expand Down Expand Up @@ -220,7 +230,9 @@ minetest.register_node("ontime_clocks:frameless_white", {
wall_top = { -0.5, -0.5, -0.5, 0.5, 0.5, 0.5 }
},
tiles = {"ontime_clocks_frameless.png^[colorize:#FFF"},
groups = {oddly_breakable_by_hand=1, not_blocking_trains=1, display_api=1},
groups = {oddly_breakable_by_hand=1, not_blocking_trains=1, display_api=1, handy = 1},
_mcl_hardness = 0.8,
_mcl_blast_resistance = 1,
is_ground_content = false,
display_entities = {
["ontime_clocks:display"] = {
Expand Down
14 changes: 14 additions & 0 deletions signs/nodes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ local models = {
tiles = { "signs_wooden.png" },
inventory_image = "signs_wooden_inventory.png",
groups= { dig_immediate = 2 },
_mcl_hardness = 0.8,
_mcl_blast_resistance = 1,
},
},
wooden_long_sign = {
Expand All @@ -149,6 +151,8 @@ local models = {
},
inventory_image = "signs_wooden_long_inventory.png",
groups= { dig_immediate = 2 },
_mcl_hardness = 0.8,
_mcl_blast_resistance = 1,
},
},
wooden_right_sign = {
Expand All @@ -170,6 +174,8 @@ local models = {
selection_box = { type="fixed", fixed = {-0.5, -7/32, 0.5, 7/16, 7/32, 7/16}},
collision_box = { type="fixed", fixed = {-7/16, -7/32, 0.5, 0.5, 7/32, 7/16}},
groups= { dig_immediate = 2 },
_mcl_hardness = 0.8,
_mcl_blast_resistance = 1,
},
},
wooden_left_sign = {
Expand All @@ -190,6 +196,8 @@ local models = {
selection_box = { type="fixed", fixed = {-7/16, -7/32, 0.5, 0.5, 7/32, 7/16}},
collision_box = { type="fixed", fixed = {-7/16, -7/32, 0.5, 0.5, 7/32, 7/16}},
groups = { not_in_creative_inventory = 1, dig_immediate = 2 },
_mcl_hardness = 0.8,
_mcl_blast_resistance = 1,
drop = "signs:wooden_right_sign",
},
},
Expand All @@ -209,6 +217,8 @@ local models = {
inventory_image = "signs_poster_inventory.png",
use_texture_alpha = "clip",
groups= { dig_immediate = 3 },
_mcl_hardness = 0.8,
_mcl_blast_resistance = 1,
on_construct = display_api.on_construct,
on_rightclick = display_poster,
on_receive_fields = on_receive_fields_poster,
Expand All @@ -229,6 +239,8 @@ local models = {
tiles = { "signs_label.png" },
inventory_image = "signs_label_small_inventory.png",
groups= { dig_immediate = 3 },
_mcl_hardness = 0.8,
_mcl_blast_resistance = 1,
},
},
label_medium = {
Expand All @@ -243,6 +255,8 @@ local models = {
tiles = { "signs_label.png" },
inventory_image = "signs_label_medium_inventory.png",
groups= { dig_immediate = 3 },
_mcl_hardness = 0.8,
_mcl_blast_resistance = 1,
},
},
}
Expand Down
2 changes: 2 additions & 0 deletions steles/nodes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ for i, material in ipairs(steles.materials) do
},
},
groups = groups,
_mcl_hardness = 1,
_mcl_blast_resistance = 2,
is_ground_content = false,
display_entities = {
["steles:text"] = {
Expand Down

0 comments on commit 4dc2bb6

Please sign in to comment.