Version MFF.
0
plasmascreen/README.md
Normal file → Executable file
3
plasmascreen/depends.txt
Normal file → Executable file
@ -1,2 +1 @@
|
||||
default
|
||||
homedecor
|
||||
default
|
13
plasmascreen/init.lua
Normal file → Executable file
@ -1,10 +1,7 @@
|
||||
|
||||
local S = homedecor_i18n.gettext
|
||||
|
||||
screwdriver = screwdriver or {}
|
||||
|
||||
minetest.register_node("plasmascreen:stand", {
|
||||
description = S("Plasma Screen TV Stand"),
|
||||
description = "Plasma Screen TV Stand",
|
||||
tiles = {"plasmascreen_back.png"},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
@ -97,7 +94,7 @@ local function checkwall(pos)
|
||||
end
|
||||
|
||||
minetest.register_node("plasmascreen:tv", {
|
||||
description = S("Plasma TV"),
|
||||
description = "Plasma TV",
|
||||
drawtype = "mesh",
|
||||
mesh = "plasmascreen_tv.obj",
|
||||
tiles = {
|
||||
@ -127,13 +124,13 @@ minetest.register_node("plasmascreen:tv", {
|
||||
return true -- "API: If return true no item is taken from itemstack"
|
||||
end
|
||||
end,
|
||||
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
||||
on_punch = function(pos, node, puncher, pointed_thing)
|
||||
minetest.set_node(pos, {name = "plasmascreen:tv_off", param2 = node.param2})
|
||||
end
|
||||
})
|
||||
|
||||
minetest.register_node("plasmascreen:tv_off", {
|
||||
description = S("Plasma TV (off)"),
|
||||
description = "Plasma TV (off)",
|
||||
drawtype = "mesh",
|
||||
mesh = "plasmascreen_tv.obj",
|
||||
tiles = {
|
||||
@ -155,7 +152,7 @@ minetest.register_node("plasmascreen:tv_off", {
|
||||
return true -- "API: If return true no item is taken from itemstack"
|
||||
end
|
||||
end,
|
||||
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
||||
on_punch = function(pos, node, puncher, pointed_thing)
|
||||
minetest.set_node(pos, {name = "plasmascreen:tv", param2 = node.param2})
|
||||
end,
|
||||
drop = "plasmascreen:tv"
|
||||
|
0
plasmascreen/models/plasmascreen_tv.obj
Normal file → Executable file
BIN
plasmascreen/textures/plasmascreen_back.png
Normal file → Executable file
Before Width: | Height: | Size: 232 B After Width: | Height: | Size: 225 B |
0
plasmascreen/textures/plasmascreen_case.png
Normal file → Executable file
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
0
plasmascreen/textures/plasmascreen_case_off.png
Normal file → Executable file
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
0
plasmascreen/textures/plasmascreen_screen_off.png
Normal file → Executable file
Before Width: | Height: | Size: 324 B After Width: | Height: | Size: 324 B |
BIN
plasmascreen/textures/plasmascreen_tv_inv.png
Normal file → Executable file
Before Width: | Height: | Size: 192 B After Width: | Height: | Size: 121 B |
0
plasmascreen/textures/plasmascreen_video.png
Normal file → Executable file
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |