37 lines
899 B
Lua
37 lines
899 B
Lua
model_detail = minetest.settings:get("assets_warehouse_model_quality") or 1
|
|
texture_detail = minetest.settings:get("assets_warehouse_texture_quality") or 1
|
|
|
|
minetest.register_node('assets_warehouse:krutchy', {
|
|
drawtype = 'mesh',
|
|
mesh = 'krutchyMD'..model_detail..'.obj',
|
|
tiles ={'krutchy.png'},
|
|
description= 'Krutchy is a little doll whit a dangerous content',
|
|
stack_max = 1,
|
|
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 3},
|
|
paramtype2 = "facedir",
|
|
is_ground_content=true,
|
|
climbable=false,
|
|
buildable_to=false,
|
|
damage_per_second=0,
|
|
diggable=true,
|
|
drowning=0,
|
|
floodable=false,
|
|
range=5.0,
|
|
selection_box = {
|
|
type = "fixed",
|
|
fixed = {
|
|
{-0.15,0.0,-0.1,0.15,-0.5,0.1},
|
|
},
|
|
},
|
|
collision_box = {
|
|
type = "fixed",
|
|
fixed = {
|
|
{-0.15,0.0,-0.1,0.15,-0.5,0.1},
|
|
},
|
|
},
|
|
sunlight_propagates=true,
|
|
use_texture_alpha=false,
|
|
walkable=true,
|
|
pointable=true,
|
|
})
|