furnacemonitor mod changed to slmodules.
furnacemonitor renamed to slmodules, this mod is intented to include more smartline devices in the future so it is more reasonable to keep them together. Migration lbm action included to automatically convert all old furnacemonitor nodes to new module name. Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
This commit is contained in:
parent
2792a98455
commit
99a5c35fef
@ -1,2 +0,0 @@
|
||||
Read-only device that monitors Minetest standard furnace and report its
|
||||
status in Tubelib-compatible way.
|
@ -1 +0,0 @@
|
||||
name = furnacemonitor
|
2
slmodules/description.txt
Normal file
2
slmodules/description.txt
Normal file
@ -0,0 +1,2 @@
|
||||
Smartline modules including FurnaceMonitor (read-only device that monitors
|
||||
Minetest standard furnace and report its status in Tubelib-compatible way).
|
@ -1,12 +1,14 @@
|
||||
--[[
|
||||
|
||||
=================================================
|
||||
Furnace Monitor
|
||||
SmartLine Modules
|
||||
by Micu (c) 2018, 2019
|
||||
|
||||
This file contains:
|
||||
* Furnace Monitor
|
||||
|
||||
Furnace Monitor:
|
||||
|
||||
Monitor Minetest Game standard furnace with
|
||||
Tubelib/Smartline devices like Controllers.
|
||||
It is a one-way (read-only) gateway that converts
|
||||
@ -36,7 +38,7 @@
|
||||
]]--
|
||||
|
||||
|
||||
furnacemonitor = {}
|
||||
slmodules = {}
|
||||
|
||||
--[[
|
||||
-------
|
||||
@ -74,7 +76,7 @@ end
|
||||
-----------------
|
||||
]]--
|
||||
|
||||
minetest.register_node("furnacemonitor:furnacemonitor", {
|
||||
minetest.register_node("slmodules:furnacemonitor", {
|
||||
description = "SmartLine Furnace Monitor",
|
||||
inventory_image = "furnacemonitor_inventory.png",
|
||||
tiles = {
|
||||
@ -97,7 +99,7 @@ minetest.register_node("furnacemonitor:furnacemonitor", {
|
||||
|
||||
after_place_node = function(pos, placer, itemstack, pointed_thing)
|
||||
local meta = minetest.get_meta(pos)
|
||||
local number = tubelib.add_node(pos, "furnacemonitor:furnacemonitor")
|
||||
local number = tubelib.add_node(pos, "slmodules:furnacemonitor")
|
||||
meta:set_string("number", number)
|
||||
meta:set_string("infotext", "Smartline Furnace Monitor " .. number)
|
||||
meta:set_string("owner", placer:get_player_name())
|
||||
@ -134,7 +136,7 @@ minetest.register_node("furnacemonitor:furnacemonitor", {
|
||||
sounds = default.node_sound_metal_defaults(),
|
||||
})
|
||||
|
||||
tubelib.register_node("furnacemonitor:furnacemonitor", {}, {
|
||||
tubelib.register_node("slmodules:furnacemonitor", {}, {
|
||||
on_recv_message = function(pos, topic, payload)
|
||||
if topic == "state" then
|
||||
return get_tubelib_furnace_state(pos)
|
||||
@ -151,7 +153,7 @@ tubelib.register_node("furnacemonitor:furnacemonitor", {}, {
|
||||
]]--
|
||||
|
||||
minetest.register_craft({
|
||||
output = "furnacemonitor:furnacemonitor",
|
||||
output = "slmodules:furnacemonitor",
|
||||
type = "shaped",
|
||||
recipe = {
|
||||
{"", "default:tin_ingot", ""},
|
||||
@ -159,3 +161,21 @@ minetest.register_craft({
|
||||
{"", "dye:black", ""},
|
||||
},
|
||||
})
|
||||
|
||||
--[[
|
||||
---------------------
|
||||
FurnaceMonitor update
|
||||
---------------------
|
||||
]]--
|
||||
|
||||
minetest.register_lbm({
|
||||
label = "FurnaceMonitor update",
|
||||
name = "slmodules:furnacemonitor_update",
|
||||
nodenames = {
|
||||
"furnacemonitor:furnacemonitor",
|
||||
},
|
||||
run_at_every_load = true,
|
||||
action = function(pos, node)
|
||||
minetest.swap_node(pos, "slmodules:furnacemonitor")
|
||||
end
|
||||
})
|
1
slmodules/mod.conf
Normal file
1
slmodules/mod.conf
Normal file
@ -0,0 +1 @@
|
||||
name = slmodules
|
Before Width: | Height: | Size: 207 KiB After Width: | Height: | Size: 207 KiB |
Before Width: | Height: | Size: 169 B After Width: | Height: | Size: 169 B |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |
Loading…
x
Reference in New Issue
Block a user