Add basic chorus flower node

This commit is contained in:
Wuzzy 2017-02-10 02:04:01 +01:00
parent a8429bde8e
commit 3195ba738e
3 changed files with 45 additions and 0 deletions

View File

@ -107,6 +107,51 @@ minetest.register_node("mcl_end:dragon_egg", {
-- TODO: Make dragon egg teleport on punching -- TODO: Make dragon egg teleport on punching
}) })
local chorus_flower_box = {
type = "fixed",
fixed = {
{-0.5, -0.375, -0.375, 0.5, 0.375, 0.375},
{-0.375, -0.375, 0.375, 0.375, 0.375, 0.5},
{-0.375, -0.375, -0.5, 0.375, 0.375, -0.375},
{-0.375, 0.375, -0.375, 0.375, 0.5, 0.375},
{-0.375, -0.5, -0.375, 0.375, -0.375, 0.375},
}
}
minetest.register_node("mcl_end:chorus_flower", {
description = "Chorus Flower",
tiles = {
"mcl_end_chorus_flower.png",
"mcl_end_chorus_flower.png",
"mcl_end_chorus_flower.png",
"mcl_end_chorus_flower.png",
"mcl_end_chorus_flower.png",
"mcl_end_chorus_flower.png",
},
drawtype = "nodebox",
paramtype = "light",
node_box = chorus_flower_box,
sounds = mcl_core.node_sound_wood_defaults(),
groups = { oddly_breakable_by_hand = 3, choppy = 3, deco_block = 1 },
})
minetest.register_node("mcl_end:chorus_flower_dead", {
description = "Dead Chorus Flower",
tiles = {
"mcl_end_chorus_flower_dead.png",
"mcl_end_chorus_flower_dead.png",
"mcl_end_chorus_flower_dead.png",
"mcl_end_chorus_flower_dead.png",
"mcl_end_chorus_flower_dead.png",
"mcl_end_chorus_flower_dead.png",
},
drawtype = "nodebox",
paramtype = "light",
node_box = chorus_flower_box,
sounds = mcl_core.node_sound_wood_defaults(),
groups = { oddly_breakable_by_hand = 3, choppy = 3, deco_block = 1},
})
-- Craftitems -- Craftitems
minetest.register_craftitem("mcl_end:chorus_fruit", { minetest.register_craftitem("mcl_end:chorus_fruit", {
description = "Chorus Fruit", description = "Chorus Fruit",

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB