aboutsummaryrefslogtreecommitdiff
path: root/advtrains_luaautomation
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2019-03-09 11:29:22 +0100
committerorwell96 <orwell@bleipb.de>2019-03-09 11:29:22 +0100
commit7149137990dce85d856feb126df711c3c43087db (patch)
tree92cc201e1cc5c3be6eeb7b64a04644e39f71f80e /advtrains_luaautomation
parentbc31f205cd7433e2f364491d8c76ce0d6504d457 (diff)
downloadadvtrains-7149137990dce85d856feb126df711c3c43087db.tar.gz
advtrains-7149137990dce85d856feb126df711c3c43087db.tar.bz2
advtrains-7149137990dce85d856feb126df711c3c43087db.zip
Add setting for death behavior and implement damage checks better
Diffstat (limited to 'advtrains_luaautomation')
0 files changed, 0 insertions, 0 deletions
121 122
-- Node texture tests

local S = minetest.get_translator("testnodes")

minetest.register_node("testnodes:6sides", {
	description = S("Six Textures Test Node"),
	tiles = {
		"testnodes_normal1.png",
		"testnodes_normal2.png",
		"testnodes_normal3.png",
		"testnodes_normal4.png",
		"testnodes_normal5.png",
		"testnodes_normal6.png",
	},

	groups = { dig_immediate = 2 },
})

minetest.register_node("testnodes:anim", {
	description = S("Animated Test Node"),
	tiles = {
		{ name = "testnodes_anim.png",
		animation = {
			type = "vertical_frames",
			aspect_w = 16,
			aspect_h = 16,
			length = 4.0,
		}, },
	},

	groups = { dig_immediate = 2 },
})

-- Node texture transparency test

local alphas = { 64, 128, 191 }

for a=1,#alphas do
	local alpha = alphas[a]

	-- Transparency taken from texture
	minetest.register_node("testnodes:alpha_texture_"..alpha, {
		description = S("Texture Alpha Test Node (@1)", alpha),