From 3ffb0db6ba30a0e35eb9c333ef31327d55ac0162 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Fri, 10 Feb 2017 02:40:01 +0100 Subject: [PATCH] Add chorus plant node --- mods/mcl_end/init.lua | 31 ++++++++++++++++++ .../mcl_end/textures/mcl_end_chorus_plant.png | Bin 0 -> 2374 bytes 2 files changed, 31 insertions(+) create mode 100644 mods/mcl_end/textures/mcl_end_chorus_plant.png diff --git a/mods/mcl_end/init.lua b/mods/mcl_end/init.lua index 1354e3125d..fb68ea828e 100644 --- a/mods/mcl_end/init.lua +++ b/mods/mcl_end/init.lua @@ -153,6 +153,37 @@ minetest.register_node("mcl_end:chorus_flower_dead", { groups = { oddly_breakable_by_hand = 3, choppy = 3, deco_block = 1}, }) +minetest.register_node("mcl_end:chorus_plant", { + description = "Chorus Plant", + tiles = { + "mcl_end_chorus_plant.png", + "mcl_end_chorus_plant.png", + "mcl_end_chorus_plant.png", + "mcl_end_chorus_plant.png", + "mcl_end_chorus_plant.png", + "mcl_end_chorus_plant.png", + }, + drawtype = "nodebox", + paramtype = "light", + -- TODO: Maybe improve nodebox a bit to look more “natural” + node_box = { + type = "connected", + fixed = { -0.25, -0.25, -0.25, 0.25, 0.25, 0.25 }, -- Core + connect_top = { -0.1875, 0.25, -0.1875, 0.1875, 0.5, 0.1875 }, + connect_left = { -0.5, -0.1875, -0.1875, -0.25, 0.1875, 0.1875 }, + connect_right = { 0.25, -0.1875, -0.1875, 0.5, 0.1875, 0.1875 }, + connect_bottom = { -0.1875, -0.5, -0.25, 0.1875, -0.25, 0.25 }, + connect_front = { -0.1875, -0.1875, -0.5, 0.1875, 0.1875, -0.25 }, + connect_back = { -0.1875, -0.1875, 0.25, 0.1875, 0.1875, 0.5 }, + }, + connect_sides = { "top", "bottom", "front", "back", "left", "right" }, + connects_to = {"mcl_end:chorus_plant", "mcl_end:chorus_flower", "mcl_end:chorus_flower_dead", "mcl_end:end_stone"}, + sounds = mcl_core.node_sound_wood_defaults(), + -- TODO: Check drop probability + drop = { items = { {items = { "mcl_end:chorus_fruit", rarity = 4 } } } }, + groups = { oddly_breakable_by_hand = 3, choppy = 3, not_in_creative_inventory = 1,}, +}) + -- Craftitems minetest.register_craftitem("mcl_end:chorus_fruit", { description = "Chorus Fruit", diff --git a/mods/mcl_end/textures/mcl_end_chorus_plant.png b/mods/mcl_end/textures/mcl_end_chorus_plant.png new file mode 100644 index 0000000000000000000000000000000000000000..78c81f06d381f799a62997228ad989e7d4e9eafb GIT binary patch literal 2374 zcmV-M3Ay%(P)$pP#Uk z*eO{`(W$6+#B058wLh?1?pnMLy`B+|XV?>(2)Q1({Gy zind~tv79<*yJrhL4*19Y{cQjJ-uv^j^A86fwvt;NsngALh5SmspX)b$&G>8_ch-AW z^Ify)j>&M#;2w7Cuj>isd+3v9q`W>~wNyXue>`p;w^m!yg4CD#SxvSjwh{}8geno6 zjb#nlnzP1}H|C2g#Wlm45Sk1n7n7OgOe4?;js;yqF2@6h?uKsh%A)DENqa?0DblPI zc@l{|jU88yznpz}xApF*bVNZlN9~#PtQ~7tToucJg@hb~4ywTkMN?d8EF?IGoU!@X zVdZemytX>E>KbRD1IhzE@54{gRKKqeWNV#Ax6f6bI zQ`(g8kIMeM#DD--h(Z+g7{R7&&ONgR@Gg_QFtmm z_0<#s7A`HA229qw*2rWeyPTy6@2Hmm;;gt6+W}RYq`#%d@6xp;^(8gmbvJd3R~IqF zeD1$<KnA*rO4E>(0CMV06q^KoeA>lsccbvQ?y zbw?da9F`7$+53es&?)jX5*!cO?%QNE?wVHatmtm(jCYJ!EnQ#I-;}EnXTxAN>t4F3DdU4?Xs;5 zujronj+r7jL$Y$WZ|eCDZ5VjGLk-6EyV7?bpMMmxi&=8PJAjftpJWZbyu=H0KxN{z z2*IKM`~LgbTr4;d^pE+Inxv$b+@tQ$R4A!UdPY4QD;NtHG9U1mx_Kk4K3OFfXfCHS z=z!Ef%+$zQG~yvC2pXM^O7qe|?%=F-R&`X{!8X-&liicelZvg<5j*{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