aboutsummaryrefslogtreecommitdiff
path: root/assets/interlocking.html.LyXconv/interlocking.dvi
diff options
context:
space:
mode:
author1F616EMO <root@1f616emo.xyz>2024-09-14 07:36:45 +0800
committerorwell <orwell@bleipb.de>2024-11-09 22:06:38 +0100
commit86e80e4cfb0d7017ff962e40ab99a4ab6addf8f2 (patch)
treec35078278efef987873fba25dc585cf4de6a6c72 /assets/interlocking.html.LyXconv/interlocking.dvi
parent671cb16e9599f9989cf5b12f76f1eb0a21252172 (diff)
Fix crashing when train hitting objects without armor group
Diffstat (limited to 'assets/interlocking.html.LyXconv/interlocking.dvi')
0 files changed, 0 insertions, 0 deletions
f='#n120'>120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145
-- Meshes

local S = minetest.get_translator("testnodes")

local ocorner_cbox = {
	type = "fixed",
	fixed = {
		{-0.5,  -0.5,  -0.5,   0.5, -0.25, 0.5},
		{-0.5, -0.25, -0.25,  0.25,     0, 0.5},
		{-0.5,     0,     0,     0,  0.25, 0.5},
		{-0.5,  0.25,  0.25, -0.25,   0.5, 0.5}
	}
}

local tall_pyr_cbox = {
	type = "fixed",
	fixed = {
		{ -0.5,   -0.5,  -0.5,   0.5,  -0.25, 0.5 },
		{ -0.375, -0.25, -0.375, 0.375, 0,    0.375},
		{ -0.25,   0,    -0.25,  0.25,  0.25, 0.25},
		{ -0.125,  0.25, -0.125, 0.125, 0.5,  0.125}
	}
}

-- Normal mesh
minetest.register_node("testnodes:mesh", {
	description = S("Mesh Test Node"),
	drawtype = "mesh",
	mesh = "testnodes_pyramid.obj",
	tiles = {"testnodes_mesh_stripes2.png"},
	paramtype = "light",
	collision_box = tall_pyr_cbox,

	groups = {dig_immediate=3},
})

-- Facedir mesh: outer corner slope
minetest.register_node("testnodes:mesh_facedir", {
	description = S("Facedir Mesh Test Node"),
	drawtype = "mesh",
	mesh = "testnodes_ocorner.obj",
	tiles = {"testnodes_mesh_stripes.png"},
	paramtype = "light",
	paramtype2 = "facedir",
	collision_box = ocorner_cbox,

	groups = {dig_immediate=3},
})

minetest.register_node("testnodes:mesh_colorfacedir", {
	description = S("Color Facedir Mesh Test Node"),
	drawtype = "mesh",
	mesh = "testnodes_ocorner.obj",
	tiles = {"testnodes_mesh_stripes3.png"},
	paramtype = "light",
	paramtype2 = "colorfacedir",
	palette = "testnodes_palette_facedir.png",
	collision_box = ocorner_cbox,

	groups = {dig_immediate=3},
})

-- Wallmounted mesh: pyramid
minetest.register_node("testnodes:mesh_wallmounted", {
	description = S("Wallmounted Mesh Test Node"),
	drawtype = "mesh",
	mesh = "testnodes_pyramid.obj",
	tiles = {"testnodes_mesh_stripes2.png"},
	paramtype = "light",
	paramtype2 = "wallmounted",
	collision_box = tall_pyr_cbox,

	groups = {dig_immediate=3},
})

minetest.register_node("testnodes:mesh_colorwallmounted", {
	description = S("Color Wallmounted Mesh Test Node"),
	drawtype = "mesh",
	mesh = "testnodes_pyramid.obj",
	tiles = {"testnodes_mesh_stripes3.png"},
	paramtype = "light",
	paramtype2 = "colorwallmounted",
	palette = "testnodes_palette_wallmounted.png",
	collision_box = tall_pyr_cbox,