/usr/share/games/minetest/mods/maidroid/maidroid_core/cores/empty.lua is in minetest-mod-maidroid 0.1.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | ------------------------------------------------------------
-- 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,
})
-- 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"},
},
}
|