From aa9f63cb3f1f403aa659211e24b30d08cf91fe44 Mon Sep 17 00:00:00 2001 From: mckaygerhard Date: Wed, 7 Jun 2023 17:21:20 -0400 Subject: [PATCH] farming - make apples 3d backporting the 3d_apples mod --- mods/farming/compatibility.lua | 25 ++++++++++++++++++++ mods/farming/textures/apple_bottom.png | Bin 0 -> 695 bytes mods/farming/textures/apple_side.png | Bin 0 -> 4153 bytes mods/farming/textures/apple_top_overlay.png | Bin 0 -> 531 bytes 4 files changed, 25 insertions(+) create mode 100644 mods/farming/textures/apple_bottom.png create mode 100644 mods/farming/textures/apple_side.png create mode 100644 mods/farming/textures/apple_top_overlay.png diff --git a/mods/farming/compatibility.lua b/mods/farming/compatibility.lua index 425132e..59a8355 100644 --- a/mods/farming/compatibility.lua +++ b/mods/farming/compatibility.lua @@ -10,7 +10,32 @@ end --= Overrides (add food_* group to apple and brown mushroom) +local box = { + type = "fixed", + fixed = { + {-0.1875, -0.4375, -0.1875, 0.1875, 0.0625, 0.1875}, -- Bottom + {-0.25, -0.375, -0.25, 0.25, 0, 0.25}, -- Middle + -- {-0.1875, 0.0625, -0.1875, 0.1875, 0, 0.1875}, -- Top + {-0.0625, 0.0625, -0.0625, 0, 0.125, 0}, -- NodeBox4 + {0.0625, 0.0625, 0.0625, 0, 0.125, 0}, -- NodeBox5 + {0.0625, 0.125, -0.0625, 0, 0.1875, 0}, -- NodeBox4 + {-0.0625, 0.125, 0.0625, 0, 0.1875, 0}, -- NodeBox5 + } + } + minetest.override_item("default:apple", { + drawtype = "nodebox", + paramtype = "light", + node_box = box, + selection_box = box, + tiles = { -- +Y, -Y, +X, -X, +Z, -Z + "apple_bottom.png^apple_top_overlay.png", + "apple_bottom.png", + "apple_side.png", + "apple_side.png", + "apple_side.png", + "apple_side.png", + }, groups = {food_apple = 1, fleshy = 3, dig_immediate = 3, flammable = 2, leafdecay = 3, leafdecay_drop = 1} }) diff --git a/mods/farming/textures/apple_bottom.png b/mods/farming/textures/apple_bottom.png new file mode 100644 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u=Uo2 z(@*a>m{zx!kwUtiLty&gN*#=;0qfx4ZJlFCD_=*ew|D%ubiwASrjIVSpG+*+aj*5vl-&>gJ4c`1KFs#uzPocx@%2~Ie~+y_*LHcC zI&FXUytWVLUjrjHw3n_u{Eg?@)r;3IACI&>cmS$em9`C0t`iq3B?W7>+CUjE$WaRv z0Nis^aVRt(%^X4zDdr(Mjvgn>lIS58+XHkUUWDqU($xy8UR@p(RyPQo zNX(s+=}z$&Ac{0-PDLAIDxdNY1}=}+`Y}bA4Hd1yL(~Q;%tf+-%r=Y7LX*Cf)XWld zGRC z;0W1lVY`)daxR9nL7Rhwb~Z%XT~=DOgRystwXorJjp%sdv=y2NX&VCRJ6$y7GZ0sME4kcnJCw9t+wlE2uVUDzMkS0Sc zVNm;L7h#;;b5IEhO;@HjNR&T^(oaLMa7+{V=}bG${G^AEIdvI6ASe|#Q?@R z&V?^h5Y%KPD9eo=LJ!HTTlR_r_&SMDgI=g13`(;sPjfs&2N{O9vpj2`MZ0*qpS~6JrfRN!JE)&T>7S}H%FeE3sASpU%IxL3mC@h2qqN{RPOF{(|L@XDe+{qIbgZ6ZAFb(WZ13QL; zO~b(#WZqLDaD4>OOdxCm&;)7#m=C~Q0KO}9@3&j8TJnzP=e3W`+L@Czz8qKq_!T|; z2}7H-s`6?u@Ajpzz6mWT@q&%%Q%dn>WW02V3c#o*^v49+c1^^GHGXeFaN<|*f60w) zHRpIMS3b6FQFF4RC2*vGte)LPtvt2nitE^o)H=t^CCQ&Jp6z<;=tSzpv{z^6hhA=7 z-=4lL=e@_h>7bq~*qV9%>oM)x&O0oz{?!JpjM2-1~0figkYh6Y{9h literal 0 HcmV?d00001 diff --git a/mods/farming/textures/apple_top_overlay.png b/mods/farming/textures/apple_top_overlay.png new file mode 100644 index 0000000000000000000000000000000000000000..db9734440bc857493e2575ec06819dc31b878ffd GIT binary patch literal 531 zcmV+u0_^>XP)EX>4Tx04R}tkv&MmKpe$iTcuhm4t5ZA$WR@`f~bh2R-p(LLaorMgUO{|(4-+r zad8w}3l4rPRvlcNb#-tR1i=pwM<*vm7b)?7NufoI2gm(*ckglc4)E8@Of@^k0ade% zR3a{9va3Sy72OCSfKd!e%+%*ZF$vG{bq^n3?_xa5``n+SN6DEC@Cn4TOgAjz4dUrd zOXs{#9AQOCAwDM_Gw6cEk6f2se&bwl*v~T~MmjZ593d78Z7jDjD;g^C6me8hHOlvA zTvj-5aaPM!*1RWwVK}F)EOVXa5E59#5=01)QAG)5ScuW8kzyi6`*9Edfa4d*C6lWJ zMvetkph9x|;D7MDTQfg7;Uz1zUWbxV`?fXf}A|4Ek&$&msy{rNoben#Jv1^RA*(3;y@b04Py{D4^000SaNLh0L z01FcU01FcV0GgZ_0000YNkl