From e2d0e3331aaacef7897c3e30d0a5f22a3020d14a Mon Sep 17 00:00:00 2001 From: Zeg9 Date: Tue, 23 Apr 2013 15:02:17 +0200 Subject: [PATCH] Rename the mod to "weirdores" --- ruby/ruby.lua | 59 ---------------- {ruby => weirdores}/antigravity.lua | 15 ++-- {ruby => weirdores}/antimese.lua | 47 +++++++------ {ruby => weirdores}/depends.txt | 0 {ruby => weirdores}/init.lua | 0 weirdores/ruby.lua | 66 ++++++++++++++++++ .../textures/weirdores_antifloc.png | Bin .../textures/weirdores_antigravity.png | Bin .../textures/weirdores_antimese.png | Bin .../textures/weirdores_antimese_block.png | Bin .../textures/weirdores_mineral_ruby.png | Bin .../textures/weirdores_particle_mese.png | Bin .../textures/weirdores_particle_ruby.png | Bin .../textures/weirdores_ruby.png | Bin .../textures/weirdores_ruby_block.png | Bin .../textures/weirdores_tool_antimesepick.png | Bin 16 files changed, 99 insertions(+), 88 deletions(-) delete mode 100644 ruby/ruby.lua rename {ruby => weirdores}/antigravity.lua (82%) rename {ruby => weirdores}/antimese.lua (57%) rename {ruby => weirdores}/depends.txt (100%) rename {ruby => weirdores}/init.lua (100%) create mode 100644 weirdores/ruby.lua rename ruby/textures/ruby_antifloc.png => weirdores/textures/weirdores_antifloc.png (100%) rename ruby/textures/ruby_antigravity.png => weirdores/textures/weirdores_antigravity.png (100%) rename ruby/textures/ruby_antimese.png => weirdores/textures/weirdores_antimese.png (100%) rename ruby/textures/ruby_antimese_block.png => weirdores/textures/weirdores_antimese_block.png (100%) rename ruby/textures/ruby_mineral_ruby.png => weirdores/textures/weirdores_mineral_ruby.png (100%) rename ruby/textures/ruby_particle_mese.png => weirdores/textures/weirdores_particle_mese.png (100%) rename ruby/textures/ruby_particle_ruby.png => weirdores/textures/weirdores_particle_ruby.png (100%) rename ruby/textures/ruby_ruby.png => weirdores/textures/weirdores_ruby.png (100%) rename ruby/textures/ruby_ruby_block.png => weirdores/textures/weirdores_ruby_block.png (100%) rename ruby/textures/ruby_tool_antimesepick.png => weirdores/textures/weirdores_tool_antimesepick.png (100%) diff --git a/ruby/ruby.lua b/ruby/ruby.lua deleted file mode 100644 index a93e134..0000000 --- a/ruby/ruby.lua +++ /dev/null @@ -1,59 +0,0 @@ -minetest.register_craftitem("ruby:ruby", { - description = "Ruby", - inventory_image = "ruby_ruby.png", -}) - -minetest.register_node("ruby:stone_with_ruby", { - description = "Rubies in Stone", - tiles = {"default_stone.png^ruby_mineral_ruby.png"}, - is_ground_content = true, - groups = {cracky=1}, - drop = "ruby:ruby", - sounds = default.node_sound_stone_defaults(), -}) - -minetest.register_node("ruby:rubyblock", { - description = "Ruby Block", - tiles = {"ruby_ruby_block.png"}, - -- light_source = LIGHT_MAX, --TODO make Ruby lamp - is_ground_content = true, - groups = {cracky=1,level=2}, - sounds = default.node_sound_stone_defaults(), -}) - -minetest.register_ore({ - ore_type = "scatter", - ore = "ruby:stone_with_ruby", - wherein = "default:stone", - clust_scarcity = 18*18*18, - clust_num_ores = 4, - clust_size = 3, - height_min = -5119, - height_max = -1024, -}) - - -minetest.register_ore({ - ore_type = "scatter", - ore = "ruby:stone_with_ruby", - wherein = "default:stone", - clust_scarcity = 12*12*12, - clust_num_ores = 4, - clust_size = 3, - height_min = -31000, - height_max = -5120, -}) - -minetest.register_craft({ - output = 'ruby:rubyblock', - recipe = { - {'ruby:ruby', 'ruby:ruby', 'ruby:ruby'}, - {'ruby:ruby', 'ruby:ruby', 'ruby:ruby'}, - {'ruby:ruby', 'ruby:ruby', 'ruby:ruby'}, - } -}) - - --- This is for compatibility with the original version of the mod, which was a patch to default game -minetest.register_alias("default:stone_with_ruby","ruby:stone_with_ruby") -minetest.register_alias("default:ruby","ruby:ruby") diff --git a/ruby/antigravity.lua b/weirdores/antigravity.lua similarity index 82% rename from ruby/antigravity.lua rename to weirdores/antigravity.lua index 52b39d2..7023242 100644 --- a/ruby/antigravity.lua +++ b/weirdores/antigravity.lua @@ -12,9 +12,9 @@ local is_antigravity = function(pos) return false end -minetest.register_node("ruby:antigravity",{ +minetest.register_node("weirdores:antigravity",{ description = "Antigravity", - tiles = {"ruby_antigravity.png"}, + tiles = {"weirdores_antigravity.png"}, is_ground_content = true, groups = {anti=1,level=2}, sounds = default.node_sound_stone_defaults(), @@ -24,7 +24,6 @@ minetest.register_node("ruby:antigravity",{ on_destruct = function(pos) for i, a in ipairs(antigravities) do if a.x == pos.x and a.y == pos.y and a.z == pos.z then - print("Removing..."..i) table.remove(antigravities,i) end end @@ -48,7 +47,7 @@ minetest.register_globalstep(function(dtime) end) minetest.register_abm({ - nodenames={"ruby:antigravity"}, + nodenames={"weirdores:antigravity"}, interval = 5, chance = 1, action = function(pos, node) @@ -66,7 +65,7 @@ minetest.register_abm({ {x=0,y=0,z=0}, {x=0,y=0,z=0}, 10, 10, .1, 1, - false, "ruby_particle_mese.png") + false, "weirdores_particle_mese.png") if not is_antigravity({x=pos.x, y=pos.y+1, z=pos.z}) then table.insert(antigravities,pos) @@ -75,11 +74,13 @@ minetest.register_abm({ }) minetest.register_craft({ - output = 'ruby:antigravity', + output = 'weirdores:antigravity', recipe = { {'default:mese_crystal','default:mese_crystal','default:mese_crystal'}, - {'default:mese_crystal','ruby:antimeseblock','default:mese_crystal'}, + {'default:mese_crystal','weirdores:antimeseblock','default:mese_crystal'}, {'default:mese_crystal','default:mese_crystal','default:mese_crystal'}, } }) +minetest.register_alias("ruby:antigravity","weirdores:antigravity") + diff --git a/ruby/antimese.lua b/weirdores/antimese.lua similarity index 57% rename from ruby/antimese.lua rename to weirdores/antimese.lua index e8b6f23..a198567 100644 --- a/ruby/antimese.lua +++ b/weirdores/antimese.lua @@ -1,14 +1,14 @@ -- ITEMS -- -minetest.register_craftitem("ruby:antimese", { +minetest.register_craftitem("weirdores:antimese", { description = "Antimese Crystal", - inventory_image = "ruby_antimese.png", + inventory_image = "weirdores_antimese.png", }) -minetest.register_node("ruby:antimeseblock", { +minetest.register_node("weirdores:antimeseblock", { description = "Antimese Block", - tiles = {"ruby_antimese_block.png"}, + tiles = {"weirdores_antimese_block.png"}, is_ground_content = true, groups = {anti=1,level=2}, sounds = default.node_sound_stone_defaults(), @@ -18,9 +18,9 @@ minetest.register_node("ruby:antimeseblock", { local APS = 0.25 -- Antimese Pickaxe Speed local APU = 100 -- Antimese Pickaxe Uses -minetest.register_tool("ruby:pick_antimese", { +minetest.register_tool("weirdores:pick_antimese", { description = "Antimese Pickaxe", - inventory_image = "ruby_tool_antimesepick.png", + inventory_image = "weirdores_tool_antimesepick.png", tool_capabilities = { full_punch_interval = 0.7, max_drop_level=3, @@ -38,20 +38,20 @@ minetest.register_tool("ruby:pick_antimese", { -- CRAFTING -- minetest.register_craft({ - output = 'ruby:pick_antimese', + output = 'weirdores:pick_antimese', recipe = { - {'ruby:antimese', 'ruby:antimese', 'ruby:antimese'}, + {'weirdores:antimese', 'weirdores:antimese', 'weirdores:antimese'}, {'', 'default:stick', ''}, {'', 'default:stick', ''}, } }) minetest.register_craft({ - output = 'ruby:antimeseblock', + output = 'weirdores:antimeseblock', recipe = { - {'ruby:antimese', 'ruby:antimese', 'ruby:antimese'}, - {'ruby:antimese', 'ruby:antimese', 'ruby:antimese'}, - {'ruby:antimese', 'ruby:antimese', 'ruby:antimese'}, + {'weirdores:antimese', 'weirdores:antimese', 'weirdores:antimese'}, + {'weirdores:antimese', 'weirdores:antimese', 'weirdores:antimese'}, + {'weirdores:antimese', 'weirdores:antimese', 'weirdores:antimese'}, } }) @@ -60,7 +60,7 @@ minetest.register_craft({ -- Ruby block + Mese block --> Antimese minetest.register_abm({ nodenames={"default:mese"}, - neighbors={"ruby:rubyblock"}, + neighbors={"weirdores:rubyblock"}, interval = 5.0, chance = 5, action = function(pos,node,active_object_count,active_object_count_wider) @@ -70,26 +70,26 @@ minetest.register_abm({ {x=-100,y=-100,z=-100}, {x=100,y=100,z=10}, 1, 1, .1,10, - false, "ruby_particle_ruby.png") + false, "weirdores_particle_ruby.png") minetest.add_particlespawner(100, 1, pos, pos, {x=-10,y=-10,z=-10}, {x=10,y=10,z=10}, {x=-100,y=-100,z=-100}, {x=100,y=100,z=100}, 1, 1, .1,10, - false, "ruby_particle_mese.png") + false, "weirdores_particle_mese.png") local r = 2 -- Radius for destroying for x = pos.x-r, pos.x+r, 1 do for y = pos.y-r, pos.y+r, 1 do for z = pos.z-r, pos.z+r, 1 do local cpos = {x=x,y=y,z=z} - if minetest.env:get_node(cpos).name == "ruby:rubyblock" then - local e = minetest.env:add_item(cpos,{name="ruby:antimese"}) + if minetest.env:get_node(cpos).name == "weirdores:rubyblock" then + local e = minetest.env:add_item(cpos,{name="weirdores:antimese"}) e:setvelocity({x=0,y=10,z=0}) end -- The commented part allows to randomly destroy nodes around if --[[math.random(0,1) == 1 - or]] minetest.env:get_node(cpos).name == "ruby:rubyblock" + or]] minetest.env:get_node(cpos).name == "weirdores:rubyblock" or minetest.env:get_node(cpos).name == "default:mese" then minetest.env:remove_node(cpos) end @@ -100,8 +100,11 @@ minetest.register_abm({ }) -- ALIASES -- --- This is for compatibility with older versions of the mod, where antimese was anticrystal -minetest.register_alias("ruby:anticrystal","ruby:antimese") -minetest.register_alias("ruby:anticrystalblock","ruby:antimeseblock") -minetest.register_alias("ruby:pick_anticrystal", "ruby:pick_antimese") +-- This is for compatibility with older versions of the mod, "the ruby mod" +minetest.register_alias("ruby:anticrystal","weirdores:antimese") +minetest.register_alias("ruby:anticrystalblock","weirdores:antimeseblock") +minetest.register_alias("ruby:pick_anticrystal", "weirdores:pick_antimese") +minetest.register_alias("ruby:antimese","weirdores:antimese") +minetest.register_alias("ruby:antimeseblock","weirdores:antimeseblock") +minetest.register_alias("ruby:pick_antimese", "weirdores:pick_antimese") diff --git a/ruby/depends.txt b/weirdores/depends.txt similarity index 100% rename from ruby/depends.txt rename to weirdores/depends.txt diff --git a/ruby/init.lua b/weirdores/init.lua similarity index 100% rename from ruby/init.lua rename to weirdores/init.lua diff --git a/weirdores/ruby.lua b/weirdores/ruby.lua new file mode 100644 index 0000000..60de78d --- /dev/null +++ b/weirdores/ruby.lua @@ -0,0 +1,66 @@ +minetest.register_craftitem("weirdores:ruby", { + description = "Ruby", + inventory_image = "weirdores_ruby.png", +}) + +minetest.register_node("weirdores:stone_with_ruby", { + description = "Rubies in Stone", + tiles = {"default_stone.png^weirdores_mineral_ruby.png"}, + is_ground_content = true, + groups = {cracky=1}, + drop = "weirdores:ruby", + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node("weirdores:rubyblock", { + description = "Ruby Block", + tiles = {"weirdores_ruby_block.png"}, + -- light_source = LIGHT_MAX, --TODO make Ruby lamp + is_ground_content = true, + groups = {cracky=1,level=2}, + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_ore({ + ore_type = "scatter", + ore = "weirdores:stone_with_ruby", + wherein = "default:stone", + clust_scarcity = 18*18*18, + clust_num_ores = 4, + clust_size = 3, + height_min = -5119, + height_max = -1024, +}) + + +minetest.register_ore({ + ore_type = "scatter", + ore = "weirdores:stone_with_ruby", + wherein = "default:stone", + clust_scarcity = 12*12*12, + clust_num_ores = 4, + clust_size = 3, + height_min = -31000, + height_max = -5120, +}) + +minetest.register_craft({ + output = 'weirdores:rubyblock', + recipe = { + {'weirdores:ruby', 'weirdores:ruby', 'weirdores:ruby'}, + {'weirdores:ruby', 'weirdores:ruby', 'weirdores:ruby'}, + {'weirdores:ruby', 'weirdores:ruby', 'weirdores:ruby'}, + } +}) + + +-- This is for compatibility with the original version of the mod, which was a patch to default game +minetest.register_alias("default:stone_with_ruby","weirdores:stone_with_ruby") +minetest.register_alias("default:ruby","weirdores:ruby") + + +-- for old versions which were called "ruby"... +minetest.register_alias("ruby:ruby","weirdores:ruby") +minetest.register_alias("ruby:stone_with_ruby","weirdores:stone_with_ruby") +minetest.register_alias("ruby:rubyblock","weirdores:rubyblock") + diff --git a/ruby/textures/ruby_antifloc.png b/weirdores/textures/weirdores_antifloc.png similarity index 100% rename from ruby/textures/ruby_antifloc.png rename to weirdores/textures/weirdores_antifloc.png diff --git a/ruby/textures/ruby_antigravity.png b/weirdores/textures/weirdores_antigravity.png similarity index 100% rename from ruby/textures/ruby_antigravity.png rename to weirdores/textures/weirdores_antigravity.png diff --git a/ruby/textures/ruby_antimese.png b/weirdores/textures/weirdores_antimese.png similarity index 100% rename from ruby/textures/ruby_antimese.png rename to weirdores/textures/weirdores_antimese.png diff --git a/ruby/textures/ruby_antimese_block.png b/weirdores/textures/weirdores_antimese_block.png similarity index 100% rename from ruby/textures/ruby_antimese_block.png rename to weirdores/textures/weirdores_antimese_block.png diff --git a/ruby/textures/ruby_mineral_ruby.png b/weirdores/textures/weirdores_mineral_ruby.png similarity index 100% rename from ruby/textures/ruby_mineral_ruby.png rename to weirdores/textures/weirdores_mineral_ruby.png diff --git a/ruby/textures/ruby_particle_mese.png b/weirdores/textures/weirdores_particle_mese.png similarity index 100% rename from ruby/textures/ruby_particle_mese.png rename to weirdores/textures/weirdores_particle_mese.png diff --git a/ruby/textures/ruby_particle_ruby.png b/weirdores/textures/weirdores_particle_ruby.png similarity index 100% rename from ruby/textures/ruby_particle_ruby.png rename to weirdores/textures/weirdores_particle_ruby.png diff --git a/ruby/textures/ruby_ruby.png b/weirdores/textures/weirdores_ruby.png similarity index 100% rename from ruby/textures/ruby_ruby.png rename to weirdores/textures/weirdores_ruby.png diff --git a/ruby/textures/ruby_ruby_block.png b/weirdores/textures/weirdores_ruby_block.png similarity index 100% rename from ruby/textures/ruby_ruby_block.png rename to weirdores/textures/weirdores_ruby_block.png diff --git a/ruby/textures/ruby_tool_antimesepick.png b/weirdores/textures/weirdores_tool_antimesepick.png similarity index 100% rename from ruby/textures/ruby_tool_antimesepick.png rename to weirdores/textures/weirdores_tool_antimesepick.png