mirror of
https://github.com/mt-mods/plantlife_modpack.git
synced 2025-07-16 23:01:07 +02:00
use mesh node for anthills
This commit is contained in:
@ -13,55 +13,23 @@ dofile(minetest.get_modpath("molehills").."/molehills_settings.txt")
|
||||
-----------------------------------------------------------------------------------------------
|
||||
-- NoDe
|
||||
-----------------------------------------------------------------------------------------------
|
||||
|
||||
local mh_cbox = {
|
||||
type = "fixed",
|
||||
fixed = { -0.5, -0.5, -0.5, 0.5, -0.125, 0.5}
|
||||
}
|
||||
|
||||
minetest.register_node("molehills:molehill",{
|
||||
drawtype = "nodebox",
|
||||
drawtype = "mesh",
|
||||
mesh = "molehill_molehill.obj",
|
||||
description = "Mole Hill",
|
||||
inventory_image = "molehills_side.png",
|
||||
tiles = {
|
||||
"molehills_dirt.png",--"molehill_top.png",
|
||||
"molehills_dirt.png",--"molehill_top.png",
|
||||
"molehills_dirt.png"--"molehill_side.png"
|
||||
},
|
||||
paramtype = "light",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
-- { left, bottom, front, right, top, back}
|
||||
{-2/16, -3/16, -1/16, 2/16, -2/16, 1/16},
|
||||
{-1/16, -3/16, -2/16, 1/16, -2/16, 2/16},
|
||||
-- { left, bottom, front, right, top, back}
|
||||
{-4/16, -4/16, -2/16, 4/16, -3/16, 2/16},
|
||||
{-2/16, -4/16, -4/16, 2/16, -3/16, 4/16},
|
||||
{-3/16, -4/16, -3/16, 3/16, -3/16, 3/16},
|
||||
-- { left, bottom, front, right, top, back}
|
||||
{-5/16, -5/16, -2/16, 5/16, -4/16, 2/16},
|
||||
{-2/16, -5/16, -5/16, 2/16, -4/16, 5/16},
|
||||
{-4/16, -5/16, -4/16, 4/16, -4/16, 4/16},
|
||||
-- { left, bottom, front, right, top, back}
|
||||
{-6/16, -6/16, -2/16, 6/16, -5/16, 2/16},
|
||||
{-2/16, -6/16, -6/16, 2/16, -5/16, 6/16},
|
||||
{-5/16, -6/16, -4/16, 5/16, -5/16, 4/16},
|
||||
{-4/16, -6/16, -5/16, 4/16, -5/16, 5/16},
|
||||
-- { left, bottom, front, right, top, back}
|
||||
{-7/16, -7/16, -3/16, 7/16, -6/16, 3/16},
|
||||
{-3/16, -7/16, -7/16, 3/16, -6/16, 7/16},
|
||||
{-6/16, -7/16, -4/16, 6/16, -6/16, 4/16},
|
||||
{-4/16, -7/16, -6/16, 4/16, -6/16, 6/16},
|
||||
{-5/16, -7/16, -5/16, 5/16, -6/16, 5/16},
|
||||
-- { left, bottom, front, right, top, back}
|
||||
--[[b]] {-1/2 , -1/2 , -3/16, 1/2 , -7/16, 3/16}, -- left to right
|
||||
--[[o]] {-3/16, -1/2 , -1/2 , 3/16, -7/16, 1/2 }, -- front to back
|
||||
--[[t]] {-7/16, -1/2 , -5/16, 7/16, -7/16, 5/16},
|
||||
--[[t]] {-5/16, -1/2 , -7/16, 5/16, -7/16, 7/16},
|
||||
--[[m]] {-6/16, -1/2 , -6/16, 6/16, -7/16, 6/16}, -- mid
|
||||
},
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-1/2, -1/2, -1/2, 1/2, 2/16, 1/2},
|
||||
},
|
||||
tiles = { "molehills_dirt.png" },
|
||||
paramtype = "light",
|
||||
selection_box = mh_cbox,
|
||||
collision_box = mh_cbox,
|
||||
groups = {crumbly=3},
|
||||
sounds = default.node_sound_dirt_defaults(),
|
||||
sounds = default.node_sound_dirt_defaults(),
|
||||
})
|
||||
|
||||
-----------------------------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user