Maybe we can use it in the game the nodebox? And Minecraft don't have 3D Sugarcane so Minetest would have something Minecraft don't have yet.
So how about it? do you think it a great idea use it or not?
Here code:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
minetest.register_node("default:papyrus", {
description = "Papyrus",
tiles = {"default_papyrus_3d.png"},
inventory_image = "default_papyrus.png",
wield_image = "default_papyrus.png",
paramtype = "light",
walkable = false,
is_ground_content = true,
groups = {snappy=3,flammable=2,3d_nodeboxs=1},
drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = {
{-0.375, -0.5, 0.3125, -0.25, 0.5, 0.4375},
{-0.125, -0.5, -0.125, 0, 0.5, 0},
{0.125, -0.5, 0.1875, 0.25, 0.5, 0.3125},
{-0.3125, -0.5, -0.375, -0.1875, 0.5, -0.25},
{0.25, -0.5, -0.3125, 0.375, 0.5, -0.1875},
},
},
selection_box = {
type = "fixed",
fixed = {
{-0.375, -0.5, 0.3125, -0.25, 0.5, 0.4375},
{-0.125, -0.5, -0.125, 0, 0.5, 0},
{0.125, -0.5, 0.1875, 0.25, 0.5, 0.3125},
{-0.3125, -0.5, -0.375, -0.1875, 0.5, -0.25},
{0.25, -0.5, -0.3125, 0.375, 0.5, -0.1875},
}
},
sounds = default.node_sound_leaves_defaults(),
})
