diff --git a/files/bluestone/bluestone_materials/README.txt b/files/bluestone/bluestone_materials/README.txt new file mode 100644 index 0000000..04a2f82 --- /dev/null +++ b/files/bluestone/bluestone_materials/README.txt @@ -0,0 +1,20 @@ +MultiCraft Game mod: bluestone materials +======================================== + +License of source code +---------------------- +Copyright (C) 2019 MultiCraft Development Team + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU Lesser General Public License as published by +the Free Software Foundation; either version 3.0 of the License, or +(at your option) any later version. + +http://www.gnu.org/licenses/lgpl-3.0.html + +License of textures +------------------- +Copyright (C) 2016-2020 MultiCraft Development Team + +Graphics in this mod is NOT free and can be used only as part of the official MultiCraft build. +Allowed to be used in non-official builds ONLY for personal use. diff --git a/files/bluestone/mesecons_materials/depends.txt b/files/bluestone/bluestone_materials/depends.txt similarity index 100% rename from files/bluestone/mesecons_materials/depends.txt rename to files/bluestone/bluestone_materials/depends.txt diff --git a/files/bluestone/bluestone_materials/init.lua b/files/bluestone/bluestone_materials/init.lua new file mode 100644 index 0000000..b4041f1 --- /dev/null +++ b/files/bluestone/bluestone_materials/init.lua @@ -0,0 +1,47 @@ +-- Glue +minetest.register_craftitem("bluestone_materials:glue", { + description = "Glue", + inventory_image = "mesecons_glue.png" +}) + +minetest.register_craft({ + output = "bluestone_materials:glue 2", + type = "cooking", + recipe = "group:sapling", + cooktime = 2 +}) + +-- Bluestone Block +minetest.register_node("bluestone_materials:bluestoneblock", { + description = "Bluestone Block", + tiles = {"bluestone_block.png"}, + paramtype = "light", + is_ground_content = false, + groups = {cracky = 1}, + light_source = minetest.LIGHT_MAX - 4, + sounds = default.node_sound_stone_defaults(), + mesecons = {receptor = { + state = mesecon.state.on + }}, + on_blast = mesecon.on_blastnode +}) + +minetest.register_craft({ + output = "bluestone_materials:bluestoneblock", + recipe = { + {"mesecons:wire_00000000_off", "mesecons:wire_00000000_off", "mesecons:wire_00000000_off"}, + {"mesecons:wire_00000000_off", "mesecons:wire_00000000_off", "mesecons:wire_00000000_off"}, + {"mesecons:wire_00000000_off", "mesecons:wire_00000000_off", "mesecons:wire_00000000_off"} + } +}) + +minetest.register_craft({ + output = "mesecons:wire_00000000_off 9", + recipe = { + {"bluestone_materials:bluestoneblock"} + } +}) + +minetest.register_alias("mesecons_torch:bluestoneblock", "bluestone_materials:bluestoneblock") +minetest.register_alias("mesecons_materials:glue", "bluestone_materials:glue") +minetest.register_alias("mesecons_materials:bluestoneblock", "bluestone_materials:bluestoneblock") diff --git a/files/bluestone/mesecons_materials/textures/bluestone_block.png b/files/bluestone/bluestone_materials/textures/bluestone_block.png similarity index 100% rename from files/bluestone/mesecons_materials/textures/bluestone_block.png rename to files/bluestone/bluestone_materials/textures/bluestone_block.png diff --git a/files/bluestone/bluestone_materials/textures/mesecons_glue.png b/files/bluestone/bluestone_materials/textures/mesecons_glue.png new file mode 100644 index 0000000..b9cfb2e Binary files /dev/null and b/files/bluestone/bluestone_materials/textures/mesecons_glue.png differ diff --git a/files/bluestone/mesecons_materials/init.lua b/files/bluestone/mesecons_materials/init.lua deleted file mode 100644 index c93d141..0000000 --- a/files/bluestone/mesecons_materials/init.lua +++ /dev/null @@ -1,47 +0,0 @@ --- Glue -minetest.register_craftitem("mesecons_materials:glue", { - image = "mesecons_glue.png", - on_place_on_ground = minetest.craftitem_place_item, - description = "Glue", -}) - -minetest.register_craft({ - output = "mesecons_materials:glue 2", - type = "cooking", - recipe = "group:sapling", - cooktime = 2 -}) - --- Bluestone Block - -minetest.register_node("mesecons_materials:bluestoneblock", { - description = "Bluestone Block", - tiles = {"bluestone_block.png"}, - paramtype = "light", - is_ground_content = false, - groups = {cracky = 1}, - light_source = minetest.LIGHT_MAX - 4, - sounds = default.node_sound_stone_defaults(), - mesecons = {receptor = { - state = mesecon.state.on - }}, - on_blast = mesecon.on_blastnode -}) - -minetest.register_craft({ - output = "mesecons_materials:bluestoneblock", - recipe = { - {"mesecons:wire_00000000_off","mesecons:wire_00000000_off","mesecons:wire_00000000_off"}, - {"mesecons:wire_00000000_off","mesecons:wire_00000000_off","mesecons:wire_00000000_off"}, - {"mesecons:wire_00000000_off","mesecons:wire_00000000_off","mesecons:wire_00000000_off"}, - } -}) - -minetest.register_craft({ - output = "mesecons:wire_00000000_off 9", - recipe = { - {"mesecons_materials:bluestoneblock"}, - } -}) - -minetest.register_alias("mesecons_torch:bluestoneblock", "mesecons_materials:bluestoneblock") diff --git a/files/bluestone/mesecons_materials/textures/mesecons_glue.png b/files/bluestone/mesecons_materials/textures/mesecons_glue.png deleted file mode 100644 index 68703ef..0000000 Binary files a/files/bluestone/mesecons_materials/textures/mesecons_glue.png and /dev/null differ diff --git a/files/bluestone/mesecons_pistons/init.lua b/files/bluestone/mesecons_pistons/init.lua index f8ba14f..a143840 100644 --- a/files/bluestone/mesecons_pistons/init.lua +++ b/files/bluestone/mesecons_pistons/init.lua @@ -463,7 +463,7 @@ minetest.register_craft({ minetest.register_craft({ output = "mesecons_pistons:piston_sticky_off", recipe = { - {"mesecons_materials:glue"}, + {"bluestone_materials:glue"}, {"mesecons_pistons:piston_normal_off"} } }) diff --git a/files/bluestone/mesecons_solarpanel/depends.txt b/files/bluestone/mesecons_solarpanel/depends.txt index bc7b062..acaa924 100644 --- a/files/bluestone/mesecons_solarpanel/depends.txt +++ b/files/bluestone/mesecons_solarpanel/depends.txt @@ -1,2 +1 @@ mesecons -mesecons_materials