From 3de20363b59052dea776aa093b4069b0f76163a4 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Mon, 13 Feb 2017 18:25:11 +0100 Subject: [PATCH] Add dropper Missing feature: Top/bottom facing, "shoot" items, put into containers --- .../textures/crafting_inventory_9_slots.png | Bin 0 -> 4664 bytes mods/redstone/mcl_dropper/depends.txt | 1 + mods/redstone/mcl_dropper/init.lua | 79 ++++++++++++++++++ .../mcl_dropper_dropper_front_horizontal.png | Bin 0 -> 902 bytes .../mcl_dropper_dropper_front_vertical.png | Bin 0 -> 955 bytes .../textures/mcl_dropper_fnt_dropper.png | Bin 0 -> 491 bytes 6 files changed, 80 insertions(+) create mode 100644 mods/craftingpack/crafting/textures/crafting_inventory_9_slots.png create mode 100644 mods/redstone/mcl_dropper/depends.txt create mode 100644 mods/redstone/mcl_dropper/init.lua create mode 100644 mods/redstone/mcl_dropper/textures/mcl_dropper_dropper_front_horizontal.png create mode 100644 mods/redstone/mcl_dropper/textures/mcl_dropper_dropper_front_vertical.png create mode 100644 mods/redstone/mcl_dropper/textures/mcl_dropper_fnt_dropper.png diff --git a/mods/craftingpack/crafting/textures/crafting_inventory_9_slots.png b/mods/craftingpack/crafting/textures/crafting_inventory_9_slots.png new file mode 100644 index 0000000000000000000000000000000000000000..99c86b86984d77a89cf4351b009393cc8a8cd8bc GIT binary patch literal 4664 zcmeHKdrXs86hEctpy*(9PVlvd3lE*IH~}dYMK^_wq7_gR2r8S6P$pPG8IM*pD$}Uh z93m8|L%=Zwwn9Y|EzZZHSf(x@Efmm=0#fSKS+`1AzOQ;euhNegXSO9KP5Q_0o^yZa zcYgQW`(-ZV%^%Jh#R7ogfeYsG0hl}hrjy-J0C0MD2Jy!b@#hCXscK9Yz-zYy=gkS- zpw_q4#%UJ7mPOODb7S9bbLI~T*%YCFHQSkg`hHFjKcmP+R#^c@f-iO~-R)C!#t0jC zCwZ?m|9U&QF6@p;S9WQ;f4{lc3jl;$crn^pj%x~5AHB*0P*%?f7ClgZG$qp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(U=%6^XRZV zzsPe<9&z0T&R%?S(s`B+8^F(WTGC;dmd~iOl|x1{r^8UA$VI3ax{47dabQ(yJuEM= zXaPs#O8lZ6$lGAZrCZmAe>kN>I*AEzm><;DdCc-zgB3{`=4n^aVW^@3;t)n95WbuR z7Nu~DQ3B!WzbKEsh*>~Y^laXx;-0RS4nyWA7f}j|?A!q0nvfqPGh4pWhnU#KMXT?H zC^T{3R{%gm$9aS7RL= 1 then + local r = math.random(1, #stacks) + local stack = stacks[r].stack + local dropitem = ItemStack(stack:get_name()) + minetest.add_item(droppos, dropitem) + stack:take_item() + inv:set_stack("main", stacks[r].stackpos, stack) + end + end + }} +}) + +minetest.register_craft({ + output = 'mcl_dropper:dropper', + recipe = { + {"mcl_core:cobble", "mcl_core:cobble", "mcl_core:cobble",}, + {"mcl_core:cobble", "", "mcl_core:cobble",}, + {"mcl_core:cobble", "mesecons:redstone", "mcl_core:cobble",}, + } +}) diff --git a/mods/redstone/mcl_dropper/textures/mcl_dropper_dropper_front_horizontal.png b/mods/redstone/mcl_dropper/textures/mcl_dropper_dropper_front_horizontal.png new file mode 100644 index 0000000000000000000000000000000000000000..7fe7bf6f5c7056e1af11f35acd32955aa02f1bac GIT binary patch literal 902 zcmeAS@N?(olHy`uVBq!ia0y~yU{C;I4h9AWhA=@@4F(1VmUKs7M+SzC{oH>NSwWJ? z9znhg3{|QO3=Pc;3_t%fFf_bmU???UV0e|lz+g3lfk8ZfQv6Xj1_lPEByV>YhX3vT zXZABNFmM)lL>4nJa0`PlBg3pY5)2Fs>?NMQuIvw)cm>5QkITz0VqjpZ^mK6yu{iB} z@oZm+tHiO7_d~8{uByJ2^1z_0O~Njz>0+;xkdV-}V?Bl+nR=>t*O}aDdZ@*b9UjLj z-Si@biI1<7H(ibIuj|FybD84B4B21zRnGgh|Le8QA9sod`Wp8#E*H{?)))P|Z^y1Z zOJ1(sJ1L0YuU%1Wt9WzbUzMo3WxQ{D>h-?aKPyj9o_p>?{=MA^;cI4_nWX*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