1
0
Fork 0

Update vines placement rules and help

This commit is contained in:
Wuzzy 2017-05-26 20:58:13 +02:00
parent 73cd5498fb
commit 2b558e0b54
1 changed files with 8 additions and 3 deletions

View File

@ -1449,7 +1449,7 @@ minetest.register_node("mcl_core:ladder", {
minetest.register_node("mcl_core:vine", { minetest.register_node("mcl_core:vine", {
description = "Vines", 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", drawtype = "signlike",
tiles = {"mcl_core_vine.png"}, tiles = {"mcl_core_vine.png"},
inventory_image = "mcl_core_vine.png", inventory_image = "mcl_core_vine.png",
@ -1499,10 +1499,15 @@ minetest.register_node("mcl_core:vine", {
return itemstack return itemstack
end end
-- Only place on full cubes
if not mcl_core.supports_vines(node.name) then
return
end
local above = pointed_thing.above local above = pointed_thing.above
-- Vines may not be placed on the ceiling -- Vines may not be placed on top or below another block
if under.y > above.y then if under.y ~= above.y then
return itemstack return itemstack
end end
local idef = itemstack:get_definition() local idef = itemstack:get_definition()