From e83068d1233883ce586a2929e0f8eceb8aa58672 Mon Sep 17 00:00:00 2001 From: Milan2018 Date: Thu, 30 Jul 2020 17:23:12 +0200 Subject: [PATCH] =?UTF-8?q?Aktualizovat=20=E2=80=9Ebasic=5Fmachines/init.l?= =?UTF-8?q?ua=E2=80=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- basic_machines/init.lua | 91 +---------------------------------------- 1 file changed, 1 insertion(+), 90 deletions(-) diff --git a/basic_machines/init.lua b/basic_machines/init.lua index edad2dd..7489acc 100644 --- a/basic_machines/init.lua +++ b/basic_machines/init.lua @@ -1,90 +1 @@ --- BASIC_MACHINES: lightweight automation mod for minetest --- minetest 0.4.14 --- (c) 2015-2016 rnd - --- This program is free software: you can redistribute it and/or modify --- it under the terms of the GNU General Public License as published by --- the Free Software Foundation, either version 3 of the License, or --- (at your option) any later version. - --- This program is distributed in the hope that it will be useful, --- but WITHOUT ANY WARRANTY; without even the implied warranty of --- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the --- GNU General Public License for more details. - --- You should have received a copy of the GNU General Public License --- along with this program. If not, see . - - -basic_machines = {}; - - -dofile(minetest.get_modpath("basic_machines").."/mark.lua") -- used for markings, borrowed and adapted from worldedit mod -dofile(minetest.get_modpath("basic_machines").."/mover.lua") -- mover, detector, keypad, distributor -dofile(minetest.get_modpath("basic_machines").."/technic_power.lua") -- technic power for mover -dofile(minetest.get_modpath("basic_machines").."/recycler.lua") -- recycle old used tools -dofile(minetest.get_modpath("basic_machines").."/grinder.lua") -- grind materials into dusts -dofile(minetest.get_modpath("basic_machines").."/autocrafter.lua") -- borrowed and adapted from pipeworks mod -dofile(minetest.get_modpath("basic_machines").."/constructor.lua") -- enable crafting of all machines - -dofile(minetest.get_modpath("basic_machines").."/protect.lua") -- enable interaction with players, adds local on protect/chat event handling - --- OPTIONAL ADDITIONAL STUFF ( comment to disable ) - -dofile(minetest.get_modpath("basic_machines").."/ball.lua") -- interactive flying ball, can activate blocks or be used as a weapon -dofile(minetest.get_modpath("basic_machines").."/enviro.lua") -- enviro blocks that can change surrounding enviroment physics, uncomment spawn/join code to change global physics, disabled by default -minetest.after(0, function() - dofile(minetest.get_modpath("basic_machines").."/mesecon_doors.lua") -- if you want open/close doors with signal, also steel doors are made impervious to dig through, removal by repeat punch - dofile(minetest.get_modpath("basic_machines").."/mesecon_lights.lua") -- adds ability for other light blocks to toggle light -end) - - --- MACHINE PRIVILEGE -minetest.register_privilege("machines", { - description = "Player is expert basic_machine user: his machines work while not present on server, can spawn more than 2 balls at once", -}) - --- machines fuel related recipes --- CHARCOAL - -minetest.register_craftitem("basic_machines:charcoal", { - description = "Wood charcoal", - inventory_image = "charcoal.png", -}) - - -minetest.register_craft({ - type = 'cooking', - recipe = "default:tree", - cooktime = 30, - output = "basic_machines:charcoal", -}) - -minetest.register_craft({ - output = "default:coal_lump", - recipe = { - {"basic_machines:charcoal"}, - {"basic_machines:charcoal"}, - } -}) - -minetest.register_craft({ - type = "fuel", - recipe = "basic_machines:charcoal", - -- note: to make it you need to use 1 tree block for fuel + 1 tree block, thats 2, caloric value 2*30=60 - burntime = 40, -- coal lump has 40, tree block 30, coal block 370 (9*40=360!) -}) - --- add since minetest doesnt have moreores tin ingot recipe -minetest.register_craft({ - output = "default:tin_ingot", - recipe = { - {"moreores:tin_ingot"}, - } -}) - --- COMPATIBILITY -minetest.register_alias("basic_machines:battery", "basic_machines:battery_0") - - -print("[MOD] basic_machines " .. basic_machines.version .. " loaded.") \ No newline at end of file +-- \ No newline at end of file