From 60fdfea4c8cdcb0ee84dca3d1b126667780e20db Mon Sep 17 00:00:00 2001 From: "0gb.us" <0gb.us@0gb.us> Date: Mon, 8 Apr 2013 02:14:46 -0700 Subject: [PATCH] Consolidated code. Also made fire less devistating. --- 0gb.us_game/mods/aliases/init.lua | 2 - .../mods/defaultclay_0gb_us/depends.txt | 1 - 0gb.us_game/mods/defaultclay_0gb_us/init.lua | 9 --- 0gb.us_game/mods/game_0gb_us/init.lua | 59 +++++++++++++++++++ 0gb.us_game/mods/grassfix_0gb_us/depends.txt | 2 - 0gb.us_game/mods/grassfix_0gb_us/init.lua | 9 --- 0gb.us_game/mods/mesefix_0gb_us/depends.txt | 1 - 0gb.us_game/mods/mesefix_0gb_us/init.lua | 28 --------- 8 files changed, 59 insertions(+), 52 deletions(-) delete mode 100644 0gb.us_game/mods/aliases/init.lua delete mode 100644 0gb.us_game/mods/defaultclay_0gb_us/depends.txt delete mode 100644 0gb.us_game/mods/defaultclay_0gb_us/init.lua create mode 100644 0gb.us_game/mods/game_0gb_us/init.lua delete mode 100644 0gb.us_game/mods/grassfix_0gb_us/depends.txt delete mode 100644 0gb.us_game/mods/grassfix_0gb_us/init.lua delete mode 100644 0gb.us_game/mods/mesefix_0gb_us/depends.txt delete mode 100644 0gb.us_game/mods/mesefix_0gb_us/init.lua diff --git a/0gb.us_game/mods/aliases/init.lua b/0gb.us_game/mods/aliases/init.lua deleted file mode 100644 index 6b4d0a5..0000000 --- a/0gb.us_game/mods/aliases/init.lua +++ /dev/null @@ -1,2 +0,0 @@ -minetest.register_alias("group:stone", "default:cobble") - diff --git a/0gb.us_game/mods/defaultclay_0gb_us/depends.txt b/0gb.us_game/mods/defaultclay_0gb_us/depends.txt deleted file mode 100644 index 4ad96d5..0000000 --- a/0gb.us_game/mods/defaultclay_0gb_us/depends.txt +++ /dev/null @@ -1 +0,0 @@ -default diff --git a/0gb.us_game/mods/defaultclay_0gb_us/init.lua b/0gb.us_game/mods/defaultclay_0gb_us/init.lua deleted file mode 100644 index f56b83a..0000000 --- a/0gb.us_game/mods/defaultclay_0gb_us/init.lua +++ /dev/null @@ -1,9 +0,0 @@ -minetest.registered_items["default:clay"].drop = nil - -minetest.register_craft({ - output = 'default:clay_lump 4', - recipe = {{'default:clay'}} -}) - -minetest.debug("[defaultclay_0gb_us]: Plugin loaded from\n"..minetest.get_modpath("defaultclay_0gb_us")) - diff --git a/0gb.us_game/mods/game_0gb_us/init.lua b/0gb.us_game/mods/game_0gb_us/init.lua new file mode 100644 index 0000000..c183ea1 --- /dev/null +++ b/0gb.us_game/mods/game_0gb_us/init.lua @@ -0,0 +1,59 @@ +minetest.register_alias("group:stone", "default:cobble") + +minetest.register_craft({ + output = 'default:clay_lump 4', + recipe = {{'default:clay'}} +}) + +minetest.registered_items["default:clay"].drop = nil +minetest.registered_nodes["default:grass_1"].buildable_to = false +minetest.registered_nodes["default:grass_2"].buildable_to = false +minetest.registered_nodes["default:grass_3"].buildable_to = false +minetest.registered_nodes["default:grass_4"].buildable_to = false +minetest.registered_nodes["default:grass_5"].buildable_to = false +minetest.registered_nodes["default:junglegrass"].buildable_to = false +minetest.registered_nodes["default:lava_source"].buildable_to = false +minetest.registered_nodes["fire:basic_flame"].groups.igniter = nil + +for _, node in ipairs({ + "default:clay", + "default:grass_1", + "default:grass_2", + "default:grass_3", + "default:grass_4", + "default:grass_5", + "default:junglegrass", + "default:lava_source", + "fire:basic_flame", +}) do + minetest.register_node(":"..node, minetest.registered_nodes[node]) +end + +minetest.register_craft({ + output = 'default:mese_crystal', + recipe = { + { + 'default:mese_crystal_fragment', + 'default:mese_crystal_fragment', + 'default:mese_crystal_fragment', + }, + { + 'default:mese_crystal_fragment', + 'default:mese_crystal_fragment', + 'default:mese_crystal_fragment', + }, + { + 'default:mese_crystal_fragment', + 'default:mese_crystal_fragment', + 'default:mese_crystal_fragment', + }, + } +}) + +minetest.register_craft({ + output = 'default:mese_crystal', + recipe = {{'default:mese_crystal'}}, +}) + +minetest.debug("[game_0gb_us]: Plugin loaded from\n"..minetest.get_modpath("game_0gb_us")) + diff --git a/0gb.us_game/mods/grassfix_0gb_us/depends.txt b/0gb.us_game/mods/grassfix_0gb_us/depends.txt deleted file mode 100644 index 3a7daa1..0000000 --- a/0gb.us_game/mods/grassfix_0gb_us/depends.txt +++ /dev/null @@ -1,2 +0,0 @@ -default - diff --git a/0gb.us_game/mods/grassfix_0gb_us/init.lua b/0gb.us_game/mods/grassfix_0gb_us/init.lua deleted file mode 100644 index ea70d72..0000000 --- a/0gb.us_game/mods/grassfix_0gb_us/init.lua +++ /dev/null @@ -1,9 +0,0 @@ -minetest.registered_nodes["default:grass_1"].buildable_to = false -minetest.registered_nodes["default:grass_2"].buildable_to = false -minetest.registered_nodes["default:grass_3"].buildable_to = false -minetest.registered_nodes["default:grass_4"].buildable_to = false -minetest.registered_nodes["default:grass_5"].buildable_to = false -minetest.registered_nodes["default:junglegrass"].buildable_to = false - -minetest.debug("[grassfix_0gb_us]: Plugin loaded from\n"..minetest.get_modpath("grassfix_0gb_us")) - diff --git a/0gb.us_game/mods/mesefix_0gb_us/depends.txt b/0gb.us_game/mods/mesefix_0gb_us/depends.txt deleted file mode 100644 index 4ad96d5..0000000 --- a/0gb.us_game/mods/mesefix_0gb_us/depends.txt +++ /dev/null @@ -1 +0,0 @@ -default diff --git a/0gb.us_game/mods/mesefix_0gb_us/init.lua b/0gb.us_game/mods/mesefix_0gb_us/init.lua deleted file mode 100644 index e4aac8a..0000000 --- a/0gb.us_game/mods/mesefix_0gb_us/init.lua +++ /dev/null @@ -1,28 +0,0 @@ -minetest.register_craft({ - output = 'default:mese_crystal', - recipe = { - { - 'default:mese_crystal_fragment', - 'default:mese_crystal_fragment', - 'default:mese_crystal_fragment', - }, - { - 'default:mese_crystal_fragment', - 'default:mese_crystal_fragment', - 'default:mese_crystal_fragment', - }, - { - 'default:mese_crystal_fragment', - 'default:mese_crystal_fragment', - 'default:mese_crystal_fragment', - }, - } -}) - -minetest.register_craft({ - output = 'default:mese_crystal', - recipe = {{'default:mese_crystal'}}, -}) - -minetest.debug("[mesefix_0gb_us]: Plugin loaded from\n"..minetest.get_modpath("mesefix_0gb_us")) -