From 2b558e0b5446fd2d14dd1f56bf0d2e7d8eb585c4 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Fri, 26 May 2017 20:58:13 +0200 Subject: [PATCH] Update vines placement rules and help --- mods/ITEMS/mcl_core/nodes.lua | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/mods/ITEMS/mcl_core/nodes.lua b/mods/ITEMS/mcl_core/nodes.lua index c74a1d679..4434e21c5 100644 --- a/mods/ITEMS/mcl_core/nodes.lua +++ b/mods/ITEMS/mcl_core/nodes.lua @@ -1449,7 +1449,7 @@ minetest.register_node("mcl_core:ladder", { minetest.register_node("mcl_core:vine", { description = "Vines", - _doc_items_longdesc = "Vines are climbable blocks which can be placed on the sides and the top of solid blocks.", + _doc_items_longdesc = "Vines are climbable blocks which can be placed on the sides solid full-cube blocks. Vines very slowly grow upwards and downwards.", drawtype = "signlike", tiles = {"mcl_core_vine.png"}, inventory_image = "mcl_core_vine.png", @@ -1499,10 +1499,15 @@ minetest.register_node("mcl_core:vine", { return itemstack end + -- Only place on full cubes + if not mcl_core.supports_vines(node.name) then + return + end + local above = pointed_thing.above - -- Vines may not be placed on the ceiling - if under.y > above.y then + -- Vines may not be placed on top or below another block + if under.y ~= above.y then return itemstack end local idef = itemstack:get_definition()