forked from nalc/homedecor_modpack
37 lines
999 B
Lua
37 lines
999 B
Lua
-- This file provides a semi-animated television.
|
|
|
|
-- Boilerplate to support localized strings if intllib mod is installed.
|
|
local S
|
|
if (minetest.get_modpath("intllib")) then
|
|
dofile(minetest.get_modpath("intllib").."/intllib.lua")
|
|
S = intllib.Getter(minetest.get_current_modname())
|
|
else
|
|
S = function ( s ) return s end
|
|
end
|
|
|
|
minetest.register_node('homedecor:television', {
|
|
description = S("Small CRT Television"),
|
|
tiles = { 'homedecor_television_top.png',
|
|
'homedecor_television_bottom.png',
|
|
'homedecor_television_right.png',
|
|
'homedecor_television_left.png',
|
|
'homedecor_television_back.png',
|
|
{ name="homedecor_television_front_animated.png",
|
|
animation={
|
|
type="vertical_frames",
|
|
aspect_w=16,
|
|
aspect_h=16,
|
|
length=80.0
|
|
}
|
|
}
|
|
},
|
|
sunlight_propagates = false,
|
|
paramtype = "light",
|
|
paramtype2 = "facedir",
|
|
walkable = true,
|
|
light_source = LIGHT_MAX - 1,
|
|
groups = { snappy = 3 },
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
})
|
|
|