1
0
Fork 0
MineClone2/mods/redstone/mesecons/oldwires.lua

39 lines
1.2 KiB
Lua
Raw Normal View History

2015-06-29 19:55:56 +02:00
minetest.register_node("mesecons:mesecon_off", {
drawtype = "raillike",
tiles = {"jeija_mesecon_off.png", "jeija_mesecon_curved_off.png", "jeija_mesecon_t_junction_off.png", "jeija_mesecon_crossing_off.png"},
inventory_image = "jeija_mesecon_off.png",
wield_image = "jeija_mesecon_off.png",
paramtype = "light",
is_ground_content = false,
2015-06-29 19:55:56 +02:00
walkable = false,
selection_box = {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, -0.45, 0.5},
},
2017-01-17 17:36:49 +01:00
groups = {dig_immediate=3, mesecon=1, dig_by_water=1, mesecon_conductor_craftable=1},
2017-01-17 17:29:14 +01:00
description="Redstone",
2015-06-29 19:55:56 +02:00
mesecons = {conductor={
state = mesecon.state.off,
onstate = "mesecons:mesecon_on"
}}
})
minetest.register_node("mesecons:mesecon_on", {
drawtype = "raillike",
tiles = {"jeija_mesecon_on.png", "jeija_mesecon_curved_on.png", "jeija_mesecon_t_junction_on.png", "jeija_mesecon_crossing_on.png"},
paramtype = "light",
is_ground_content = false,
2015-06-29 19:55:56 +02:00
walkable = false,
selection_box = {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, -0.45, 0.5},
},
2017-01-17 17:36:49 +01:00
groups = {dig_immediate=3, dig_by_water = 1, not_in_creaive_inventory=1, mesecon=1},
2015-06-29 19:55:56 +02:00
drop = '"mesecons:mesecon_off" 1',
light_source = LIGHT_MAX-11,
mesecons = {conductor={
state = mesecon.state.on,
offstate = "mesecons:mesecon_off"
}}
})