maidroid/maidroid_core/cores/empty.lua

26 lines
966 B
Lua
Raw Normal View History

2016-09-14 01:46:51 +02:00
------------------------------------------------------------
-- Copyright (c) 2016 tacigar. All rights reserved.
-- https://github.com/tacigar/maidroid
------------------------------------------------------------
maidroid.register_core("maidroid_core:empty", {
description = "maidroid core : empty",
inventory_image = "maidroid_core_empty.png",
on_start = function(self) end,
on_stop = function(self) end,
on_resume = function(self) end,
on_pause = function(self) end,
on_step = function(self, dtime) end,
})
2016-09-14 02:21:45 +02:00
-- only a recipe of the empty core is registered.
-- other cores is created by writing on the empty core.
minetest.register_craft{
output = "maidroid_core:empty",
recipe = {
{"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"},
{"default:steel_ingot", "default:obsidian", "default:steel_ingot"},
{"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"},
},
}