Removed handy, axey, swordy, from nether vines & removed useless comments

This commit is contained in:
SmokeyDope 2023-02-02 21:37:23 +00:00
parent 32b5b435c5
commit 88a7a8afab

View file

@ -113,8 +113,7 @@ minetest.register_node("mcl_crimson:twisting_vines", {
walkable = false, walkable = false,
climbable = true, climbable = true,
buildable_to = true, buildable_to = true,
groups = {dig_immediate=3, handy=1, axey=1, shearsy=1, swordy=1, vines=1, groups = {dig_immediate=3, shearsy=1, vines=1, dig_by_water=1, destroy_by_lava_flow=1, dig_by_piston=1, deco_block=1},
dig_by_water=1, destroy_by_lava_flow=1, dig_by_piston=1, deco_block=1},
sounds = mcl_sounds.node_sound_leaves_defaults(), sounds = mcl_sounds.node_sound_leaves_defaults(),
selection_box = { selection_box = {
type = "fixed", type = "fixed",
@ -131,9 +130,8 @@ minetest.register_node("mcl_crimson:twisting_vines", {
if not minetest.is_creative_enabled(clicker:get_player_name()) then if not minetest.is_creative_enabled(clicker:get_player_name()) then
itemstack:take_item() itemstack:take_item()
end end
--placement checks sucess, put twisting vine
grow_vines(pos, 1, "mcl_crimson:twisting_vines") grow_vines(pos, 1, "mcl_crimson:twisting_vines")
--add sound to vine placement
local idef = itemstack:get_definition() local idef = itemstack:get_definition()
local itemstack, success = minetest.item_place_node(itemstack, placer, pointed_thing) local itemstack, success = minetest.item_place_node(itemstack, placer, pointed_thing)
if success then if success then
@ -150,7 +148,6 @@ minetest.register_node("mcl_crimson:twisting_vines", {
end end
return itemstack return itemstack
end, end,
--breaking twisting vines breaks the vines above logic
on_dig = function(pos, node, digger) on_dig = function(pos, node, digger)
local above = {x=pos.x, y=pos.y+1, z=pos.z} local above = {x=pos.x, y=pos.y+1, z=pos.z}
local abovenode = minetest.get_node(above) local abovenode = minetest.get_node(above)
@ -192,8 +189,7 @@ minetest.register_node("mcl_crimson:weeping_vines", {
walkable = false, walkable = false,
climbable = true, climbable = true,
buildable_to = true, buildable_to = true,
groups = {dig_immediate=3, handy=1, axey=1, shearsy=1, swordy=1, vines=1, dig_by_water=1, groups = {dig_immediate=3, shearsy=1, vines=1, dig_by_water=1, destroy_by_lava_flow=1, dig_by_piston=1, deco_block=1},
destroy_by_lava_flow=1, dig_by_piston=1, deco_block=1},
sounds = mcl_sounds.node_sound_leaves_defaults(), sounds = mcl_sounds.node_sound_leaves_defaults(),
selection_box = { selection_box = {
type = "fixed", type = "fixed",
@ -210,9 +206,7 @@ minetest.register_node("mcl_crimson:weeping_vines", {
if not minetest.is_creative_enabled(clicker:get_player_name()) then if not minetest.is_creative_enabled(clicker:get_player_name()) then
itemstack:take_item() itemstack:take_item()
end end
--placement check sucess, grow weeping vine
grow_vines(pos, 1, "mcl_crimson:weeping_vines", -1) grow_vines(pos, 1, "mcl_crimson:weeping_vines", -1)
--add sound to placement
local idef = itemstack:get_definition() local idef = itemstack:get_definition()
local itemstack, success = minetest.item_place_node(itemstack, placer, pointed_thing) local itemstack, success = minetest.item_place_node(itemstack, placer, pointed_thing)
if success then if success then
@ -229,7 +223,7 @@ minetest.register_node("mcl_crimson:weeping_vines", {
end end
return itemstack return itemstack
end, end,
--breaking weeping vines breaks the vines below logic
on_dig = function(pos, node, digger) on_dig = function(pos, node, digger)
local below = {x=pos.x, y=pos.y-1, z=pos.z} local below = {x=pos.x, y=pos.y-1, z=pos.z}
local belownode = minetest.get_node(below) local belownode = minetest.get_node(below)