Register travelnet nodes as MVPS stoppers (#93)
This commit is contained in:
parent
193773ba1d
commit
e6c9a283be
@ -152,6 +152,10 @@ minetest.register_node("travelnet:elevator", {
|
|||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if minetest.get_modpath("mesecons_mvps") then
|
||||||
|
mesecon.register_mvps_stopper("travelnet:elevator")
|
||||||
|
end
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "travelnet:elevator",
|
output = "travelnet:elevator",
|
||||||
recipe = travelnet.elevator_recipe,
|
recipe = travelnet.elevator_recipe,
|
||||||
|
3
init.lua
3
init.lua
@ -83,6 +83,9 @@ minetest.register_node("travelnet:hidden_top", {
|
|||||||
drop = "",
|
drop = "",
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if minetest.get_modpath("mesecons_mvps") then
|
||||||
|
mesecon.register_mvps_stopper("travelnet:hidden_top")
|
||||||
|
end
|
||||||
|
|
||||||
if travelnet.travelnet_effect_enabled then
|
if travelnet.travelnet_effect_enabled then
|
||||||
minetest.register_entity("travelnet:effect", {
|
minetest.register_entity("travelnet:effect", {
|
||||||
|
2
mod.conf
2
mod.conf
@ -1,4 +1,4 @@
|
|||||||
name = travelnet
|
name = travelnet
|
||||||
depends = xcompat
|
depends = xcompat
|
||||||
optional_depends = mesecons, mtt
|
optional_depends = mesecons, mesecons_mvps, mtt
|
||||||
description = Network of teleporter-boxes that allows easy travelling to other boxes on the same network.
|
description = Network of teleporter-boxes that allows easy travelling to other boxes on the same network.
|
||||||
|
@ -127,4 +127,8 @@ function travelnet.register_travelnet_box(cfg)
|
|||||||
recipe = { "group:travelnet", cfg.dye },
|
recipe = { "group:travelnet", cfg.dye },
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if minetest.get_modpath("mesecons_mvps") then
|
||||||
|
mesecon.register_mvps_stopper(cfg.nodename)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user