diff --git a/mods/bones/init.lua b/mods/bones/init.lua index 9542cab..0574119 100644 --- a/mods/bones/init.lua +++ b/mods/bones/init.lua @@ -26,15 +26,25 @@ local share_bones_time_early = tonumber(minetest.setting_get("share_bones_time_e minetest.register_node("bones:bones", { description = "Bones", + drawtype = "mesh", + mesh = "tombstone.obj", tiles = { - "bones_top.png^[transform2", - "bones_bottom.png", - "bones_side.png", - "bones_side.png", - "bones_rear.png", - "bones_front.png" + "tombstone.png", }, + visual_scale = 0.5, + wield_image = "tombstone_item.png", + wield_scale = {x=1.0, y=1.0, z=1.0}, paramtype2 = "facedir", + paramtype = "light", + selection_box = { + type = "fixed", + fixed = {-0.4, -0.5, -0.0, 0.4, 0.5, 0.3} + }, + collision_box = { + type = "fixed", + fixed = {-0.3, -0.5, -0.3, 0.3, 1, 0.3} + }, + inventory_image = "tombstone_item.png", groups = {dig_immediate = 2}, sounds = default.node_sound_gravel_defaults(), diff --git a/mods/bones/models/tombstone.obj b/mods/bones/models/tombstone.obj new file mode 100644 index 0000000..65239b3 --- /dev/null +++ b/mods/bones/models/tombstone.obj @@ -0,0 +1,42 @@ +# Blender v2.78 (sub 0) OBJ File: '' +# www.blender.org +mtllib tombstone.mtl +o Cube_Cube.001 +v -0.853184 -1.046431 0.507511 +v -0.853184 0.945959 0.681823 +v -0.853184 0.991776 0.158128 +v -0.853184 -1.000613 -0.016184 +v 0.853184 0.991776 0.158128 +v 0.853184 -1.000613 -0.016184 +v 0.853184 0.945959 0.681823 +v 0.853184 -1.046431 0.507511 +vt 0.4583 0.3750 +vt 0.4583 0.8750 +vt 0.3750 0.8750 +vt 0.3750 0.3750 +vt 0.0833 0.8750 +vt 0.0833 0.3750 +vt -0.0000 0.8750 +vt 0.0000 0.3750 +vt 0.7500 0.3750 +vt 0.7500 0.8750 +vt 0.3750 0.8750 +vt 0.6667 0.8750 +vt 0.6667 1.0000 +vt 0.3750 1.0000 +vt 0.3750 1.0000 +vt 0.0833 1.0000 +vn -1.0000 -0.0000 0.0000 +vn 0.0000 0.0872 -0.9962 +vn 1.0000 -0.0000 0.0000 +vn 0.0000 -0.0872 0.9962 +vn 0.0000 -0.9962 -0.0872 +vn 0.0000 0.9962 0.0872 +usemtl None +s 1 +f 1/1/1 2/2/1 3/3/1 4/4/1 +f 4/4/2 3/3/2 5/5/2 6/6/2 +f 6/6/3 5/5/3 7/7/3 8/8/3 +f 8/9/4 7/10/4 2/2/4 1/1/4 +f 4/11/5 6/12/5 8/13/5 1/14/5 +f 5/5/6 3/3/6 2/15/6 7/16/6 diff --git a/mods/bones/textures/bones_bottom.png b/mods/bones/textures/bones_bottom.png deleted file mode 100644 index 859c6bb..0000000 Binary files a/mods/bones/textures/bones_bottom.png and /dev/null differ diff --git a/mods/bones/textures/bones_front.png b/mods/bones/textures/bones_front.png deleted file mode 100644 index 1e52437..0000000 Binary files a/mods/bones/textures/bones_front.png and /dev/null differ diff --git a/mods/bones/textures/bones_rear.png b/mods/bones/textures/bones_rear.png deleted file mode 100644 index 4cfe236..0000000 Binary files a/mods/bones/textures/bones_rear.png and /dev/null differ diff --git a/mods/bones/textures/bones_side.png b/mods/bones/textures/bones_side.png deleted file mode 100644 index a07595f..0000000 Binary files a/mods/bones/textures/bones_side.png and /dev/null differ diff --git a/mods/bones/textures/bones_top.png b/mods/bones/textures/bones_top.png deleted file mode 100644 index 198a8a2..0000000 Binary files a/mods/bones/textures/bones_top.png and /dev/null differ diff --git a/mods/bones/textures/tombstone.png b/mods/bones/textures/tombstone.png new file mode 100644 index 0000000..15c8406 Binary files /dev/null and b/mods/bones/textures/tombstone.png differ diff --git a/mods/bones/textures/tombstone_item.png b/mods/bones/textures/tombstone_item.png new file mode 100644 index 0000000..fb664e3 Binary files /dev/null and b/mods/bones/textures/tombstone_item.png differ