Cylindrical trunk
This commit is contained in:
parent
e45e71d2e0
commit
bd9dfcedd1
@ -326,14 +326,6 @@ minetest.register_craftitem("farming:soy", {
|
||||
--Cake
|
||||
--
|
||||
|
||||
local cakebox = {}
|
||||
local detail = 16
|
||||
local sehne
|
||||
for i = 1, detail-1 do
|
||||
sehne = math.sqrt(0.25 - (((i/detail)-0.5)^2))
|
||||
cakebox[i]={(i/detail)-0.5, -0.5, -sehne, (i/detail)+(1/detail)-0.5, 0.0, sehne}
|
||||
end
|
||||
|
||||
minetest.register_node("farming:cake", {
|
||||
drawtype = "nodebox",
|
||||
description = "CAKE!!!",
|
||||
@ -344,7 +336,12 @@ minetest.register_node("farming:cake", {
|
||||
on_use=minetest.item_eat(16),
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = cakebox,
|
||||
fixed = {
|
||||
{-8/16,-8/16,-4/16,8/16,8/16,4/16},
|
||||
{-4/16,-8/16,-8/16,4/16,8/16,8/16},
|
||||
{-7/16,-8/16,-6/16,7/16,8/16,6/16},
|
||||
{-6/16,-8/16,-7/16,6/16,8/16,7/16},
|
||||
},
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
|
@ -152,8 +152,17 @@ function realtest.register_tree(name, TreeDef)
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
drop = tree.name.."_plank 4",
|
||||
drop_on_dropping = tree.name.."_log",
|
||||
drawtype = "normal",
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-8/16,-8/16,-4/16,8/16,8/16,4/16},
|
||||
{-4/16,-8/16,-8/16,4/16,8/16,8/16},
|
||||
{-7/16,-8/16,-6/16,7/16,8/16,6/16},
|
||||
{-6/16,-8/16,-7/16,6/16,8/16,7/16},
|
||||
},
|
||||
},
|
||||
on_dig = function(pos, node, digger)
|
||||
minetest.debug("node_dig")
|
||||
|
||||
@ -309,8 +318,17 @@ function realtest.register_tree(name, TreeDef)
|
||||
groups = {tree=1,snappy=1,choppy=2,flammable=2,dropping_node=1,drop_on_dig=1},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
drop = tree.name.."_log",
|
||||
drawtype = "normal",
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-8/16,-8/16,-4/16,8/16,8/16,4/16},
|
||||
{-4/16,-8/16,-8/16,4/16,8/16,8/16},
|
||||
{-7/16,-8/16,-6/16,7/16,8/16,6/16},
|
||||
{-6/16,-8/16,-7/16,6/16,8/16,7/16},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_node(tree.name.."_trunk_top", {
|
||||
@ -318,7 +336,7 @@ function realtest.register_tree(name, TreeDef)
|
||||
groups = {tree=1,snappy=1,choppy=2,flammable=2,dropping_node=1,drop_on_dig=1},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
drop = tree.name.."_log",
|
||||
drawtype = "normal",
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
after_dig_node = function(pos, oldnode, oldmetadata, digger)
|
||||
for i = 1,#tree.leaves do
|
||||
@ -328,6 +346,15 @@ function realtest.register_tree(name, TreeDef)
|
||||
end
|
||||
end
|
||||
end,
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-8/16,-8/16,-4/16,8/16,8/16,4/16},
|
||||
{-4/16,-8/16,-8/16,4/16,8/16,8/16},
|
||||
{-7/16,-8/16,-6/16,7/16,8/16,6/16},
|
||||
{-6/16,-8/16,-7/16,6/16,8/16,7/16},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_node(tree.name.."_ladder", {
|
||||
|
Loading…
x
Reference in New Issue
Block a user