1
0
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:
sys4-fr
2018-09-07 22:32:38 +02:00
parent 2d0363f3ac
commit a11527ed63
1027 changed files with 8090 additions and 37753 deletions

13
plasmascreen/init.lua Normal file → Executable file
View 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"