From 50eaaa15fa6e7e2fea3334e871acc6c11b18004d Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Wed, 9 May 2018 15:56:52 +0200 Subject: [PATCH] Rework arrow box appearance --- mods/ITEMS/mcl_bows/arrow.lua | 16 ++++++++++++---- mods/ITEMS/mcl_bows/textures/mcl_bows_arrow.png | Bin 178 -> 173 bytes .../mcl_bows/textures/mcl_bows_arrow_back.png | Bin 121 -> 132 bytes .../mcl_bows/textures/mcl_bows_arrow_front.png | Bin 111 -> 110 bytes 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/mods/ITEMS/mcl_bows/arrow.lua b/mods/ITEMS/mcl_bows/arrow.lua index 0360dc003..6f9e2fdcc 100644 --- a/mods/ITEMS/mcl_bows/arrow.lua +++ b/mods/ITEMS/mcl_bows/arrow.lua @@ -26,6 +26,9 @@ An arrow fired from a bow has a regular damage of 1-9. At full charge, there's a end, }) +-- This is a fake node, used as model for the arrow entity. +-- It's not supposed to be usable as item or real node. +-- TODO: Use a proper mesh for the arrow entity minetest.register_node("mcl_bows:arrow_box", { drawtype = "nodebox", is_ground_content = false, @@ -33,11 +36,13 @@ minetest.register_node("mcl_bows:arrow_box", { type = "fixed", fixed = { -- Shaft - {-6.5/17, -1.5/17, -1.5/17, 6.5/17, 1.5/17, 1.5/17}, - --Spitze + {-6.5/17, -1.5/17, -1.5/17, -4.5/17, 1.5/17, 1.5/17}, + {-4.5/17, -0.5/17, -0.5/17, 5.5/17, 0.5/17, 0.5/17}, + {5.5/17, -1.5/17, -1.5/17, 6.5/17, 1.5/17, 1.5/17}, + -- Tip {-4.5/17, 2.5/17, 2.5/17, -3.5/17, -2.5/17, -2.5/17}, {-8.5/17, 0.5/17, 0.5/17, -6.5/17, -0.5/17, -0.5/17}, - --Federn + -- Fletching {6.5/17, 1.5/17, 1.5/17, 7.5/17, 2.5/17, 2.5/17}, {7.5/17, -2.5/17, 2.5/17, 6.5/17, -1.5/17, 1.5/17}, {7.5/17, 2.5/17, -2.5/17, 6.5/17, 1.5/17, -1.5/17}, @@ -50,7 +55,10 @@ minetest.register_node("mcl_bows:arrow_box", { } }, tiles = {"mcl_bows_arrow.png^[transformFX", "mcl_bows_arrow.png^[transformFX", "mcl_bows_arrow_back.png", "mcl_bows_arrow_front.png", "mcl_bows_arrow.png", "mcl_bows_arrow.png^[transformFX"}, - groups = {not_in_creative_inventory=1}, + paramtype = "light", + paramtype2 = "facedir", + sunlight_propagates = true, + groups = {not_in_creative_inventory=1, dig_immediate=3}, }) -- FIXME: Arrow velocity is a bit strange. If the arrow flies VERY long, the acceleration can cause the velocity to become negative diff --git a/mods/ITEMS/mcl_bows/textures/mcl_bows_arrow.png b/mods/ITEMS/mcl_bows/textures/mcl_bows_arrow.png index ba70cfbf4fa2214362b5ee8894e6f23ba17277ba..278d910f204466a5e187feaa98cf198c25a7b4ef 100644 GIT binary patch literal 173 zcmeAS@N?(olHy`uVBq!ia0vp^N+8U_3?xrvihTr9q5(c3u0Z<5ix*FyJUDs$U}2Pd zdXUTHzK)8C>sA0I7)yfuf*Bm1-ADs++&oh literal 178 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnF3?v&v(vJfv=>VS)S0MfR;l2O=|37{5;N~E71i4MmHXhKrF@t7G%_>z%kVT#@=iJjRLJ1z>gTe~ HDWM4fhJ+$= literal 111 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61SBU+%rFB|Y$ZW{!9W@a@|Lkr1X3!VE{-7; zjL8yt51xE%c4*Obn#tz#;mb*8i>3}9E#4CDrHO0|-@p4WoMv(KEl8iItDnm{r-UW| DAkrP`