add mesecons mods
|
@ -0,0 +1,2 @@
|
|||
Ghoststones disappear when powered, just like Removestones. But in contrast to Removestones, they reappear again when not powered anymore and they are also conductive.
|
||||
They work in inactive blocks.
|
BIN
mods/mesecons/mesecons_random/doc/ghoststone/preview.png
Normal file
After Width: | Height: | Size: 32 KiB |
BIN
mods/mesecons/mesecons_random/doc/ghoststone/recipe.png
Normal file
After Width: | Height: | Size: 14 KiB |
|
@ -0,0 +1,2 @@
|
|||
Removestones are probably the simplest effectors possible. They simply disappear when powered.
|
||||
They work in inactive blocks.
|
BIN
mods/mesecons/mesecons_random/doc/removestone/preview.png
Normal file
After Width: | Height: | Size: 77 KiB |
BIN
mods/mesecons/mesecons_random/doc/removestone/recipe.png
Normal file
After Width: | Height: | Size: 14 KiB |
80
mods/mesecons/mesecons_random/init.lua
Normal file
|
@ -0,0 +1,80 @@
|
|||
local S = minetest.get_translator(minetest.get_current_modname())
|
||||
|
||||
-- REMOVESTONE
|
||||
|
||||
minetest.register_node("mesecons_random:removestone", {
|
||||
tiles = {"jeija_removestone.png"},
|
||||
is_ground_content = false,
|
||||
inventory_image = minetest.inventorycube("jeija_removestone_inv.png"),
|
||||
groups = {cracky=3},
|
||||
description = S("Removestone"),
|
||||
sounds = mesecon.node_sound.stone,
|
||||
mesecons = {effector = {
|
||||
action_on = function (pos, node)
|
||||
minetest.remove_node(pos)
|
||||
mesecon.on_dignode(pos, node)
|
||||
minetest.check_for_falling(vector.add(pos, vector.new(0, 1, 0)))
|
||||
end
|
||||
}},
|
||||
on_blast = mesecon.on_blastnode,
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'mesecons_random:removestone 4',
|
||||
recipe = {
|
||||
{"", "mesecons_gamecompat:cobble", ""},
|
||||
{"mesecons_gamecompat:cobble", "group:mesecon_conductor_craftable", "mesecons_gamecompat:cobble"},
|
||||
{"", "mesecons_gamecompat:cobble", ""},
|
||||
}
|
||||
})
|
||||
|
||||
-- GHOSTSTONE
|
||||
|
||||
minetest.register_node("mesecons_random:ghoststone", {
|
||||
description = S("Ghoststone"),
|
||||
tiles = {"jeija_ghoststone.png"},
|
||||
is_ground_content = false,
|
||||
inventory_image = minetest.inventorycube("jeija_ghoststone_inv.png"),
|
||||
groups = {cracky=3},
|
||||
sounds = mesecon.node_sound.stone,
|
||||
mesecons = {conductor = {
|
||||
state = mesecon.state.off,
|
||||
rules = mesecon.rules.alldirs,
|
||||
onstate = "mesecons_random:ghoststone_active"
|
||||
}},
|
||||
on_blast = mesecon.on_blastnode,
|
||||
})
|
||||
|
||||
minetest.register_node("mesecons_random:ghoststone_active", {
|
||||
drawtype = "airlike",
|
||||
pointable = false,
|
||||
walkable = false,
|
||||
diggable = false,
|
||||
is_ground_content = false,
|
||||
sunlight_propagates = true,
|
||||
paramtype = "light",
|
||||
drop = "mesecons_random:ghoststone",
|
||||
mesecons = {conductor = {
|
||||
state = mesecon.state.on,
|
||||
rules = mesecon.rules.alldirs,
|
||||
offstate = "mesecons_random:ghoststone"
|
||||
}},
|
||||
on_construct = function(pos)
|
||||
-- remove shadow
|
||||
local shadowpos = vector.add(pos, vector.new(0, 1, 0))
|
||||
if (minetest.get_node(shadowpos).name == "air") then
|
||||
minetest.dig_node(shadowpos)
|
||||
end
|
||||
end,
|
||||
on_blast = mesecon.on_blastnode,
|
||||
})
|
||||
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'mesecons_random:ghoststone 4',
|
||||
recipe = {
|
||||
{"mesecons_gamecompat:steel_ingot", "mesecons_gamecompat:cobble", "mesecons_gamecompat:steel_ingot"},
|
||||
{"mesecons_gamecompat:cobble", "group:mesecon_conductor_craftable", "mesecons_gamecompat:cobble"},
|
||||
{"mesecons_gamecompat:steel_ingot", "mesecons_gamecompat:cobble", "mesecons_gamecompat:steel_ingot"},
|
||||
}
|
||||
})
|
|
@ -0,0 +1,3 @@
|
|||
# textdomain: mesecons_random
|
||||
Removestone=Verschwindestein
|
||||
Ghoststone=Geisterstein
|
|
@ -0,0 +1,5 @@
|
|||
# textdomain: mesecons_random
|
||||
|
||||
### init.lua ###
|
||||
Removestone=Forigŝtono
|
||||
Ghoststone=Fantomŝtono
|
|
@ -0,0 +1,5 @@
|
|||
# textdomain: mesecons_random
|
||||
|
||||
### init.lua ###
|
||||
Removestone=Pierre de suppression
|
||||
Ghoststone=Pierre fantôme
|
|
@ -0,0 +1,5 @@
|
|||
# textdomain: mesecons_random
|
||||
|
||||
### init.lua ###
|
||||
Removestone=Исчезающий камень
|
||||
Ghoststone=Призрачный камень
|
|
@ -0,0 +1,5 @@
|
|||
# textdomain: mesecons_random
|
||||
|
||||
### init.lua ###
|
||||
Removestone=Зникаючий камінь
|
||||
Ghoststone=Примарний камінь
|
5
mods/mesecons/mesecons_random/locale/template.txt
Normal file
|
@ -0,0 +1,5 @@
|
|||
# textdomain: mesecons_random
|
||||
|
||||
### init.lua ###
|
||||
Removestone=
|
||||
Ghoststone=
|
2
mods/mesecons/mesecons_random/mod.conf
Normal file
|
@ -0,0 +1,2 @@
|
|||
name = mesecons_random
|
||||
depends = mesecons, mesecons_gamecompat
|
BIN
mods/mesecons/mesecons_random/textures/jeija_ghoststone.png
Normal file
After Width: | Height: | Size: 690 B |
BIN
mods/mesecons/mesecons_random/textures/jeija_ghoststone_inv.png
Normal file
After Width: | Height: | Size: 709 B |
BIN
mods/mesecons/mesecons_random/textures/jeija_removestone.png
Normal file
After Width: | Height: | Size: 690 B |
BIN
mods/mesecons/mesecons_random/textures/jeija_removestone_inv.png
Normal file
After Width: | Height: | Size: 709 B |