mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2025-07-21 14:50:23 +02:00
Version MFF.
This commit is contained in:
13
plasmascreen/init.lua
Normal file → Executable file
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"
|
||||
|
Reference in New Issue
Block a user