diff --git a/mods/mcl_core/depends.txt b/mods/mcl_core/depends.txt new file mode 100644 index 0000000000..a501f11db4 --- /dev/null +++ b/mods/mcl_core/depends.txt @@ -0,0 +1 @@ +mcl_util diff --git a/mods/mcl_core/nodes.lua b/mods/mcl_core/nodes.lua index f8899dee50..8e7cc7c51a 100644 --- a/mods/mcl_core/nodes.lua +++ b/mods/mcl_core/nodes.lua @@ -448,7 +448,7 @@ minetest.register_node("mcl_core:haybale", { stack_max = 64, paramtype2 = "facedir", is_ground_content = false, - on_place = minetest.rotate_node, + on_place = mcl_util.rotate_axis, groups = {oddly_breakable_by_hand=3,flammable=2, building_block=1}, sounds = mcl_core.node_sound_leaves_defaults(), }) @@ -458,7 +458,7 @@ minetest.register_node("mcl_core:bone_block", { tiles = {"mcl_core_bone_block_top.png", "mcl_core_bone_block_top.png", "mcl_core_bone_block_side.png"}, is_ground_content = false, paramtype2 = "facedir", - on_place = minetest.rotate_node, + on_place = mcl_util.rotate_axis, groups = {cracky=2, building_block=1}, sounds = mcl_core.node_sound_stone_defaults(), }) @@ -517,7 +517,7 @@ minetest.register_node("mcl_core:tree", { description = "Oak Wood", tiles = {"default_tree_top.png", "default_tree_top.png", "default_tree.png"}, paramtype2 = "facedir", - on_place = minetest.rotate_node, + on_place = mcl_util.rotate_axis, stack_max = 64, groups = {tree=1,choppy=2,oddly_breakable_by_hand=1,flammable=2, building_block=1}, sounds = mcl_core.node_sound_wood_defaults(), @@ -572,7 +572,7 @@ minetest.register_node("mcl_core:darktree", { description = "Dark Oak Wood", tiles = {"default_log_big_oak_top.png", "default_log_big_oak_top.png", "default_log_big_oak.png"}, paramtype2 = "facedir", - on_place = minetest.rotate_node, + on_place = mcl_util.rotate_axis, stack_max = 64, groups = {tree=1,choppy=2,oddly_breakable_by_hand=1,flammable=2,building_block=1}, sounds = mcl_core.node_sound_wood_defaults(), @@ -629,7 +629,7 @@ minetest.register_node("mcl_core:jungletree", { tiles = {"default_jungletree_top.png", "default_jungletree_top.png", "default_jungletree.png"}, stack_max = 64, paramtype2 = "facedir", - on_place = minetest.rotate_node, + on_place = mcl_util.rotate_axis, groups = {tree=1,choppy=2,oddly_breakable_by_hand=1,flammable=2,building_block=1}, sounds = mcl_core.node_sound_wood_defaults(), }) @@ -689,7 +689,7 @@ minetest.register_node("mcl_core:acaciatree", { tiles = {"default_acaciatree_top.png", "default_acaciatree_top.png", "default_acaciatree.png"}, stack_max = 64, paramtype2 = "facedir", - on_place = minetest.rotate_node, + on_place = mcl_util.rotate_axis, groups = {tree=1,choppy=2,oddly_breakable_by_hand=1,flammable=2,building_block=1}, sounds = mcl_core.node_sound_wood_defaults(), }) @@ -748,7 +748,7 @@ minetest.register_node("mcl_core:sprucetree", { tiles = {"default_sprucetree_top.png", "default_sprucetree_top.png", "default_sprucetree.png"}, stack_max = 64, paramtype2 = "facedir", - on_place = minetest.rotate_node, + on_place = mcl_util.rotate_axis, groups = {tree=1,choppy=2,oddly_breakable_by_hand=1,flammable=2,building_block=1}, sounds = mcl_core.node_sound_wood_defaults(), }) @@ -811,7 +811,7 @@ minetest.register_node("mcl_core:birchtree", { tiles = {"default_log_birch_top.png", "default_log_birch_top.png", "default_log_birch.png"}, stack_max = 64, paramtype2 = "facedir", - on_place = minetest.rotate_node, + on_place = mcl_util.rotate_axis, groups = {tree=1,choppy=2,oddly_breakable_by_hand=1,flammable=2,building_block=1}, sounds = mcl_core.node_sound_wood_defaults(), }) diff --git a/mods/mcl_nether/depends.txt b/mods/mcl_nether/depends.txt index 3561a34cf5..9c189b0725 100644 --- a/mods/mcl_nether/depends.txt +++ b/mods/mcl_nether/depends.txt @@ -1,2 +1,3 @@ mcl_core +mcl_util walkover diff --git a/mods/mcl_nether/init.lua b/mods/mcl_nether/init.lua index d8de2ee8d6..f405a61e67 100644 --- a/mods/mcl_nether/init.lua +++ b/mods/mcl_nether/init.lua @@ -124,7 +124,7 @@ minetest.register_node("mcl_nether:quartz_pillar", { stack_max = 64, paramtype2 = "facedir", is_ground_content = false, - on_place = minetest.rotate_node, + on_place = mcl_util.rotate_axis, tiles = {"mcl_nether_quartz_pillar_top.png", "mcl_nether_quartz_pillar_top.png", "mcl_nether_quartz_pillar_side.png"}, groups = {cracky=3,quartz_block=1,building_block=1}, sounds = mcl_core.node_sound_stone_defaults(),