From 02a384a730fd6ed51da01e95a5e1b9cc9ce42ea5 Mon Sep 17 00:00:00 2001 From: cale Date: Fri, 2 Sep 2016 21:47:48 +0200 Subject: [PATCH] new fence nodebox + use a connected nodebox for the rope --- mods/default/functions.lua | 10 +++++----- mods/default/nodes.lua | 16 ++++++++++++---- mods/default/textures/default_wood.png | Bin 242 -> 242 bytes 3 files changed, 17 insertions(+), 9 deletions(-) diff --git a/mods/default/functions.lua b/mods/default/functions.lua index 907654a..84978c6 100644 --- a/mods/default/functions.lua +++ b/mods/default/functions.lua @@ -24,11 +24,11 @@ function default.register_fence(name,def) def.drawtype = "nodebox" def.node_box = { type = "connected", - fixed = {{-3/16, -0.5, -3/16, 3/16, 0.5, 3/16}}, - connect_front = {{-2/16,-0.5,-1/2,2/16,0.5,-2/16}}, - connect_left = {{-1/2,-0.5,-2/16,-2/16,0.5,2/16}}, - connect_back = {{-2/16,-0.5,2/16,2/16,0.5,1/2}}, - connect_right = {{2/16,-0.5,-2/16,1/2,0.5,2/16}}, + fixed = {{-2/16, -0.5, -2/16, 2/16, 0.5, 2/16}}, + connect_front = {{-1/16,3/16,-1/2,1/16,6/16,-2/16},{-1/16,-4/16,-1/2,1/16,-1/16,-1/16}}, + connect_left = {{-1/2,3/16,-1/16,-2/16,6/16,1/16},{-1/2,-4/16,-1/16,-2/16,-1/16,1/16}}, + connect_back = {{-1/16,3/16,2/16,1/16,6/16,1/2},{-1/16,-4/16,2/16,1/16,-1/16,1/2}}, + connect_right = {{2/16,3/16,-1/16,1/2,6/16,1/16},{2/16,-4/16,-1/16,1/2,-1/16,1/16}}, } def.paramtype = "light" def.connects_to = {name, "group:cracky", "group:choppy"} diff --git a/mods/default/nodes.lua b/mods/default/nodes.lua index a24facc..5e5226a 100644 --- a/mods/default/nodes.lua +++ b/mods/default/nodes.lua @@ -152,11 +152,19 @@ minetest.register_node("default:rope", { paramtype = "light", drawtype = "nodebox", node_box = { - type = "fixed", - fixed = { - {-0.1, -0.5, -0.1, 0.1, 0.5, 0.1}, - }, + type = "connected", + fixed = {{-2/16, -2/16, -2/16, 2/16, 2/16, 2/16},}, + + connect_front = {{-2/16, -2/16, -0.5, 2/16, 2/16, 2/16}}, + connect_back = {{-2/16, -2/16, -2/16, 2/16, 2/16, 0.5}}, + + connect_left = {{-0.5, -2/16, -2/16, 2/16, 2/16, 2/16}}, + connect_right = {{-2/16, -2/16, -2/16, 0.5, 2/16, 2/16}}, + + connect_top = {{-2/16, -2/16, -2/16, 2/16, 0.5, 2/16}}, + connect_bottom = {{-2/16, -0.5, -2/16, 2/16, 2/16, 2/16}}, }, + connects_to = {"default:rope", "group:cracky", "group:choppy"}, walkable = false, climbable = true, }) diff --git a/mods/default/textures/default_wood.png b/mods/default/textures/default_wood.png index 5b130b67d656c84040996ade993ee9cd170df289..02774c746ba60df0d80b63aa25add55563a4bf5b 100644 GIT binary patch delta 19 acmeyw_=$0X11BewFpt5@*2=(%o+|-C+6L7C delta 19 acmeyw_=$0X11A$77muE8bx_Jg&y@f?IR*s)