add mesecons mods
This commit is contained in:
parent
71a53fbef8
commit
9861939223
721 changed files with 19937 additions and 1 deletions
1
mods/mesecons/mesecons_lamp/doc/lamp/description.html
Normal file
1
mods/mesecons/mesecons_lamp/doc/lamp/description.html
Normal file
|
@ -0,0 +1 @@
|
|||
Mesecon lamps are effectors that if powered emit light.
|
BIN
mods/mesecons/mesecons_lamp/doc/lamp/preview.png
Normal file
BIN
mods/mesecons/mesecons_lamp/doc/lamp/preview.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 28 KiB |
BIN
mods/mesecons/mesecons_lamp/doc/lamp/recipe.png
Normal file
BIN
mods/mesecons/mesecons_lamp/doc/lamp/recipe.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.3 KiB |
73
mods/mesecons/mesecons_lamp/init.lua
Normal file
73
mods/mesecons/mesecons_lamp/init.lua
Normal file
|
@ -0,0 +1,73 @@
|
|||
local S = minetest.get_translator(minetest.get_current_modname())
|
||||
|
||||
-- MESELAMPS
|
||||
-- A lamp is "is an electrical device used to create artificial light" (wikipedia)
|
||||
-- guess what?
|
||||
|
||||
local mesecon_lamp_box = {
|
||||
type = "wallmounted",
|
||||
wall_top = {-0.3125,0.375,-0.3125,0.3125,0.5,0.3125},
|
||||
wall_bottom = {-0.3125,-0.5,-0.3125,0.3125,-0.375,0.3125},
|
||||
wall_side = {-0.375,-0.3125,-0.3125,-0.5,0.3125,0.3125},
|
||||
}
|
||||
|
||||
local use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "opaque" or nil
|
||||
|
||||
minetest.register_node("mesecons_lamp:lamp_on", {
|
||||
drawtype = "nodebox",
|
||||
tiles = {"jeija_meselamp_on.png"},
|
||||
use_texture_alpha = use_texture_alpha,
|
||||
paramtype = "light",
|
||||
paramtype2 = "wallmounted",
|
||||
is_ground_content = false,
|
||||
legacy_wallmounted = true,
|
||||
sunlight_propagates = true,
|
||||
walkable = true,
|
||||
light_source = minetest.LIGHT_MAX,
|
||||
node_box = mesecon_lamp_box,
|
||||
selection_box = mesecon_lamp_box,
|
||||
groups = {dig_immediate = 3,not_in_creative_inventory = 1, mesecon_effector_on = 1},
|
||||
drop = "mesecons_lamp:lamp_off 1",
|
||||
sounds = mesecon.node_sound.glass,
|
||||
mesecons = {effector = {
|
||||
action_off = function (pos, node)
|
||||
minetest.swap_node(pos, {name = "mesecons_lamp:lamp_off", param2 = node.param2})
|
||||
end,
|
||||
rules = mesecon.rules.wallmounted_get,
|
||||
}},
|
||||
on_blast = mesecon.on_blastnode,
|
||||
})
|
||||
|
||||
minetest.register_node("mesecons_lamp:lamp_off", {
|
||||
drawtype = "nodebox",
|
||||
tiles = {"jeija_meselamp_off.png"},
|
||||
use_texture_alpha = use_texture_alpha,
|
||||
inventory_image = "jeija_meselamp.png",
|
||||
wield_image = "jeija_meselamp.png",
|
||||
paramtype = "light",
|
||||
paramtype2 = "wallmounted",
|
||||
is_ground_content = false,
|
||||
sunlight_propagates = true,
|
||||
walkable = true,
|
||||
node_box = mesecon_lamp_box,
|
||||
selection_box = mesecon_lamp_box,
|
||||
groups = {dig_immediate=3, mesecon_receptor_off = 1, mesecon_effector_off = 1},
|
||||
description = S("Mesecon Lamp"),
|
||||
sounds = mesecon.node_sound.glass,
|
||||
mesecons = {effector = {
|
||||
action_on = function (pos, node)
|
||||
minetest.swap_node(pos, {name = "mesecons_lamp:lamp_on", param2 = node.param2})
|
||||
end,
|
||||
rules = mesecon.rules.wallmounted_get,
|
||||
}},
|
||||
on_blast = mesecon.on_blastnode,
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "mesecons_lamp:lamp_off 1",
|
||||
recipe = {
|
||||
{"", "mesecons_gamecompat:glass", ""},
|
||||
{"group:mesecon_conductor_craftable", "mesecons_gamecompat:steel_ingot", "group:mesecon_conductor_craftable"},
|
||||
{"", "mesecons_gamecompat:glass", ""},
|
||||
}
|
||||
})
|
2
mods/mesecons/mesecons_lamp/locale/mesecons_lamp.de.tr
Normal file
2
mods/mesecons/mesecons_lamp/locale/mesecons_lamp.de.tr
Normal file
|
@ -0,0 +1,2 @@
|
|||
# textdomain: mesecons_lamp
|
||||
Mesecon Lamp=Meseconlampe
|
4
mods/mesecons/mesecons_lamp/locale/mesecons_lamp.eo.tr
Normal file
4
mods/mesecons/mesecons_lamp/locale/mesecons_lamp.eo.tr
Normal file
|
@ -0,0 +1,4 @@
|
|||
# textdomain: mesecons_lamp
|
||||
|
||||
### init.lua ###
|
||||
Mesecon Lamp=Mesekonduktila Lampo
|
4
mods/mesecons/mesecons_lamp/locale/mesecons_lamp.fr.tr
Normal file
4
mods/mesecons/mesecons_lamp/locale/mesecons_lamp.fr.tr
Normal file
|
@ -0,0 +1,4 @@
|
|||
# textdomain: mesecons_lamp
|
||||
|
||||
### init.lua ###
|
||||
Mesecon Lamp=Lampe de Mesecon
|
4
mods/mesecons/mesecons_lamp/locale/mesecons_lamp.ru.tr
Normal file
4
mods/mesecons/mesecons_lamp/locale/mesecons_lamp.ru.tr
Normal file
|
@ -0,0 +1,4 @@
|
|||
# textdomain: mesecons_lamp
|
||||
|
||||
### init.lua ###
|
||||
Mesecon Lamp=Мезеконовая лампа
|
4
mods/mesecons/mesecons_lamp/locale/mesecons_lamp.uk.tr
Normal file
4
mods/mesecons/mesecons_lamp/locale/mesecons_lamp.uk.tr
Normal file
|
@ -0,0 +1,4 @@
|
|||
# textdomain: mesecons_lamp
|
||||
|
||||
### init.lua ###
|
||||
Mesecon Lamp=Месеконова лампа
|
4
mods/mesecons/mesecons_lamp/locale/template.txt
Normal file
4
mods/mesecons/mesecons_lamp/locale/template.txt
Normal file
|
@ -0,0 +1,4 @@
|
|||
# textdomain: mesecons_lamp
|
||||
|
||||
### init.lua ###
|
||||
Mesecon Lamp=
|
2
mods/mesecons/mesecons_lamp/mod.conf
Normal file
2
mods/mesecons/mesecons_lamp/mod.conf
Normal file
|
@ -0,0 +1,2 @@
|
|||
name = mesecons_lamp
|
||||
depends = mesecons, mesecons_gamecompat
|
BIN
mods/mesecons/mesecons_lamp/textures/jeija_meselamp.png
Normal file
BIN
mods/mesecons/mesecons_lamp/textures/jeija_meselamp.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 149 B |
BIN
mods/mesecons/mesecons_lamp/textures/jeija_meselamp_off.png
Normal file
BIN
mods/mesecons/mesecons_lamp/textures/jeija_meselamp_off.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 131 B |
BIN
mods/mesecons/mesecons_lamp/textures/jeija_meselamp_on.png
Normal file
BIN
mods/mesecons/mesecons_lamp/textures/jeija_meselamp_on.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 162 B |
Loading…
Add table
Add a link
Reference in a new issue