1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-07-15 06:00:26 +02:00

Updated plantlife_modpack, using meshnodes for pebbles and bushes

This commit is contained in:
LeMagnesium
2015-01-26 22:56:18 +01:00
parent fe5dc3f0a7
commit 55972f1441
333 changed files with 2481 additions and 1594 deletions

View File

@ -1,41 +1,20 @@
--Rocks
local cbox = {
type = "fixed",
fixed = {-5/16, -8/16, -6/16, 5/16, -1/32, 5/16},
}
minetest.register_node("cavestuff:pebble_1",{
drawtype = "nodebox",
description = "Pebble",
drawtype = "mesh",
mesh = "cavestuff_pebble.obj",
tiles = {"undergrowth_pebble.png"},
paramtype = "light",
paramtype2 = "facedir",
groups = {cracky=3, stone=1},
node_box = {
type = "fixed",
fixed = {
-- { left, bottom, front, right, top , back}
{-5/16, -2/16, -3/16, 1/16, -1/16, -1/16},
{-4/16, -2/16, -4/16, 0 , -1/16, 0 },
-- { left, bottom, front, right, top , back}
{-7/16, -7/16, -3/16, -6/16, -3/16, 1/16},
{-6/16, -7/16, -4/16, -5/16, -3/16, 2/16},
{-5/16, -7/16, -5/16, 3/16, -3/16, 3/16},
{-4/16, -7/16, -6/16, 1/16, -3/16, -5/16},
{-3/16, -7/16, 3/16, 3/16, -3/16, 4/16},
{ 0 , -7/16, 4/16, 3/16, -3/16, 5/16},
{ 3/16, -7/16, -4/16, 4/16, -3/16, 5/16},
{ 4/16, -7/16, -3/16, 5/16, -3/16, 4/16},
{ 5/16, -7/16, -1/16, 6/16, -3/16, 2/16},
-- { left, bottom, front, right, top , back}
{-6/16, -8/16, -3/16, 3/16, -2/16, 0 },
{-5/16, -8/16, -4/16, 2/16, -2/16, 1/16},
{-4/16, -8/16, -5/16, 0 , -2/16, 2/16},
{-2/16, -8/16, -2/16, 4/16, -2/16, 3/16},
{ 0 , -8/16, 3/16, 3/16, -2/16, 4/16},
{ 4/16, -8/16, -1/16, 5/16, -2/16, 2/16},
},
},
selection_box = {
type = "fixed",
fixed = {-7/16, -1/2, -6/16, 6/16, -1/16, 5/16},
},
selection_box = cbox,
collision_box = cbox,
on_place = function(itemstack, placer, pointed_thing)
-- place a random pebble node
local stack = ItemStack("cavestuff:pebble_"..math.random(1,2))
@ -46,80 +25,29 @@ minetest.register_node("cavestuff:pebble_1",{
})
minetest.register_node("cavestuff:pebble_2",{
drawtype = "nodebox",
drawtype = "mesh",
mesh = "cavestuff_pebble.obj",
tiles = {"undergrowth_pebble.png"},
drop = "cavestuff:pebble_1",
tiles = {"undergrowth_pebble.png"},
paramtype = "light",
paramtype2 = "facedir",
groups = {cracky=3, stone=1, not_in_creative_inventory=1},
node_box = {
type = "fixed",
fixed = {
-- { left, bottom, front, right, top , back}
{-5/16, -1/16, -3/16, 1/16, 0 , -1/16},
{-4/16, -1/16, -4/16, 0 , 0 , 0 },
-- { left, bottom, front, right, top , back}
{-7/16, -7/16, -3/16, -6/16, -2/16, 1/16},
{-6/16, -7/16, -4/16, -5/16, -2/16, 2/16},
{-5/16, -7/16, -5/16, 3/16, -2/16, 3/16},
{-4/16, -7/16, -6/16, 1/16, -2/16, -5/16},
{-3/16, -7/16, 3/16, 3/16, -2/16, 4/16},
{ 0 , -7/16, 4/16, 3/16, -2/16, 5/16},
{ 3/16, -7/16, -4/16, 4/16, -2/16, 5/16},
{ 4/16, -7/16, -3/16, 5/16, -2/16, 4/16},
{ 5/16, -7/16, -1/16, 6/16, -2/16, 2/16},
-- { left, bottom, front, right, top , back}
{-6/16, -8/16, -3/16, 3/16, -1/16, 0 },
{-5/16, -8/16, -4/16, 2/16, -1/16, 1/16},
{-4/16, -8/16, -5/16, 0 , -1/16, 2/16},
{-2/16, -8/16, -2/16, 4/16, -1/16, 3/16},
{ 0 , -8/16, 3/16, 3/16, -1/16, 4/16},
{ 4/16, -8/16, -1/16, 5/16, -1/16, 2/16},
},
},
selection_box = {
type = "fixed",
fixed = {-7/16, -1/2, -6/16, 6/16, 0, 5/16},
},
selection_box = cbox,
collision_box = cbox,
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("cavestuff:desert_pebble_1",{
drawtype = "nodebox",
description = "Desert Pebble",
drawtype = "mesh",
mesh = "cavestuff_pebble.obj",
tiles = {"default_desert_stone.png"},
paramtype = "light",
paramtype2 = "facedir",
groups = {cracky=3, stone=1},
node_box = {
type = "fixed",
fixed = {
-- { left, bottom, front, right, top , back}
{-5/16, -2/16, -3/16, 1/16, -1/16, -1/16},
{-4/16, -2/16, -4/16, 0 , -1/16, 0 },
-- { left, bottom, front, right, top , back}
{-7/16, -7/16, -3/16, -6/16, -3/16, 1/16},
{-6/16, -7/16, -4/16, -5/16, -3/16, 2/16},
{-5/16, -7/16, -5/16, 3/16, -3/16, 3/16},
{-4/16, -7/16, -6/16, 1/16, -3/16, -5/16},
{-3/16, -7/16, 3/16, 3/16, -3/16, 4/16},
{ 0 , -7/16, 4/16, 3/16, -3/16, 5/16},
{ 3/16, -7/16, -4/16, 4/16, -3/16, 5/16},
{ 4/16, -7/16, -3/16, 5/16, -3/16, 4/16},
{ 5/16, -7/16, -1/16, 6/16, -3/16, 2/16},
-- { left, bottom, front, right, top , back}
{-6/16, -8/16, -3/16, 3/16, -2/16, 0 },
{-5/16, -8/16, -4/16, 2/16, -2/16, 1/16},
{-4/16, -8/16, -5/16, 0 , -2/16, 2/16},
{-2/16, -8/16, -2/16, 4/16, -2/16, 3/16},
{ 0 , -8/16, 3/16, 3/16, -2/16, 4/16},
{ 4/16, -8/16, -1/16, 5/16, -2/16, 2/16},
},
},
selection_box = {
type = "fixed",
fixed = {-7/16, -1/2, -6/16, 6/16, -1/16, 5/16},
},
selection_box = cbox,
collision_box = cbox,
on_place = function(itemstack, placer, pointed_thing)
-- place a random pebble node
local stack = ItemStack("cavestuff:desert_pebble_"..math.random(1,2))
@ -130,41 +58,15 @@ minetest.register_node("cavestuff:desert_pebble_1",{
})
minetest.register_node("cavestuff:desert_pebble_2",{
drawtype = "nodebox",
drawtype = "mesh",
mesh = "cavestuff_pebble.obj",
drop = "cavestuff:desert_pebble_1",
tiles = {"default_desert_stone.png"},
paramtype = "light",
paramtype2 = "facedir",
groups = {cracky=3, stone=1, not_in_creative__inventory=1},
node_box = {
type = "fixed",
fixed = {
-- { left, bottom, front, right, top , back}
{-5/16, -1/16, -3/16, 1/16, 0 , -1/16},
{-4/16, -1/16, -4/16, 0 , 0 , 0 },
-- { left, bottom, front, right, top , back}
{-7/16, -7/16, -3/16, -6/16, -2/16, 1/16},
{-6/16, -7/16, -4/16, -5/16, -2/16, 2/16},
{-5/16, -7/16, -5/16, 3/16, -2/16, 3/16},
{-4/16, -7/16, -6/16, 1/16, -2/16, -5/16},
{-3/16, -7/16, 3/16, 3/16, -2/16, 4/16},
{ 0 , -7/16, 4/16, 3/16, -2/16, 5/16},
{ 3/16, -7/16, -4/16, 4/16, -2/16, 5/16},
{ 4/16, -7/16, -3/16, 5/16, -2/16, 4/16},
{ 5/16, -7/16, -1/16, 6/16, -2/16, 2/16},
-- { left, bottom, front, right, top , back}
{-6/16, -8/16, -3/16, 3/16, -1/16, 0 },
{-5/16, -8/16, -4/16, 2/16, -1/16, 1/16},
{-4/16, -8/16, -5/16, 0 , -1/16, 2/16},
{-2/16, -8/16, -2/16, 4/16, -1/16, 3/16},
{ 0 , -8/16, 3/16, 3/16, -1/16, 4/16},
{ 4/16, -8/16, -1/16, 5/16, -1/16, 2/16},
},
},
selection_box = {
type = "fixed",
fixed = {-7/16, -1/2, -6/16, 6/16, 0, 5/16},
},
selection_box = cbox,
collision_box = cbox,
sounds = default.node_sound_stone_defaults(),
})