Rezepte bearbeitet, nicht verwendete mods gelöscht, Höhlen schöner gemacht
28
mods/rainbow_ore/README.md
Normal file
|
@ -0,0 +1,28 @@
|
|||
Rainbow Ore
|
||||
===========
|
||||
|
||||
This mod features a new ore called "Rainbow Ore" (as if you guessed it :D) which is pretty rare but also pretty powerful.
|
||||
|
||||
License
|
||||
=======
|
||||
|
||||
Copyright (C) 2015 Robin Kuhn (KingSmarty)
|
||||
|
||||
Rainbow Ore code is licensed under the GNU LGPLv2.1.
|
||||
|
||||
Textures are licensed under the same license as minetest_game.
|
||||
|
||||
Crafting:
|
||||
=========
|
||||
|
||||
Smelt "Rainbow Ore Block" --> "Rainbow Ingots"
|
||||
|
||||
- Tools:
|
||||
- crafted as always but with "Rainbow Ingots" as material instead.
|
||||
- if default mod is not available, "default:stick" is replaced with "rainbow_ore:rainbow_ore_ingot".
|
||||
- Armor:
|
||||
- crafted like Armor but with "Rainbow Ingots" as material instead.
|
||||
- Shield:
|
||||
- crafted like a shield but with "Rainbow Ingots" as material instead.
|
||||
|
||||
You can craft Nyancat_rainbow blocks like any other "solid" blocks but with "Rainbow Ingots" as material instead.
|
198
mods/rainbow_ore/init.lua
Normal file
|
@ -0,0 +1,198 @@
|
|||
-- Rainbow_Ore Test Mod ----------- Copyright Robin Kuhn 2015
|
||||
|
||||
rainbow_ore = {}
|
||||
rainbow_ore.modname = minetest.get_current_modname()
|
||||
rainbow_ore.modpath = minetest.get_modpath(rainbow_ore.modname)
|
||||
|
||||
--Check for mods
|
||||
if minetest.get_modpath("3d_armor") then
|
||||
dofile(rainbow_ore.modpath.."/rainbow_armor.lua")
|
||||
end
|
||||
|
||||
if minetest.get_modpath("shields") then
|
||||
dofile(rainbow_ore.modpath.."/rainbow_shield.lua")
|
||||
end
|
||||
|
||||
|
||||
local S = minetest.get_translator(rainbow_ore.modname)
|
||||
|
||||
-- Define Rainbow_Ore_Block node
|
||||
minetest.register_node("rainbow_ore:rainbow_ore_block", {
|
||||
description = S("Rainbow Ore"),
|
||||
tiles = {"rainbow_ore_block.png"},
|
||||
groups = {stone=2, cracky=3},
|
||||
drop = "rainbow_ore:rainbow_ore_block",
|
||||
is_ground_content = true,
|
||||
})
|
||||
|
||||
|
||||
--Define Rainbow_Ore_Ingot node
|
||||
minetest.register_craftitem("rainbow_ore:rainbow_ore_ingot", {
|
||||
description = S("Rainbow Ore Ingot"),
|
||||
inventory_image = "rainbow_ore_ingot.png",
|
||||
})
|
||||
|
||||
--Define Rainbow_Ore Smelt Recipe
|
||||
minetest.register_craft({
|
||||
type = "cooking",
|
||||
output = "rainbow_ore:rainbow_ore_ingot",
|
||||
recipe = "rainbow_ore:rainbow_ore_block",
|
||||
cooktime = 10,
|
||||
})
|
||||
|
||||
|
||||
--Register Rainbow Pickaxe
|
||||
minetest.register_tool("rainbow_ore:rainbow_ore_pickaxe", {
|
||||
description = S("Rainbow Pickaxe"),
|
||||
inventory_image = "rainbow_ore_pickaxe.png",
|
||||
tool_capabilities = {
|
||||
full_punch_interval = 0.9,
|
||||
max_drop_level=3,
|
||||
groupcaps={
|
||||
cracky = {times={[1]=1.0, [2]=0.5, [3]=0.25}, uses=15, maxlevel=3},
|
||||
},
|
||||
damage_groups = {fleshy=5},
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
local stick = minetest.settings:get("rainbow_ore.stick")
|
||||
if not stick then
|
||||
if minetest.registered_items["default:stick"] then
|
||||
stick = "default:stick"
|
||||
else
|
||||
stick = "rainbow_ore:rainbow_ore_ingot"
|
||||
end
|
||||
end
|
||||
|
||||
--Define Rainbow_Ore_Pickaxe crafting recipe
|
||||
minetest.register_craft({
|
||||
output = "rainbow_ore:rainbow_ore_pickaxe",
|
||||
recipe = {
|
||||
{"rainbow_ore:rainbow_ore_ingot", "rainbow_ore:rainbow_ore_ingot", "rainbow_ore:rainbow_ore_ingot"},
|
||||
{"", stick, ""},
|
||||
{"", stick, ""}
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
--Register Rainbow Axe
|
||||
minetest.register_tool("rainbow_ore:rainbow_ore_axe", {
|
||||
description = S("Rainbow Axe"),
|
||||
inventory_image = "rainbow_ore_axe.png",
|
||||
tool_capabilities = {
|
||||
full_punch_interval = 0.9,
|
||||
max_drop_level=3,
|
||||
groupcaps={
|
||||
choppy={times={[1]=1.05, [2]=0.45, [3]=0.25}, uses=15, maxlevel=3},
|
||||
},
|
||||
damage_groups = {fleshy=7},
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
--Define Rainbow Axe crafting recipe
|
||||
minetest.register_craft({
|
||||
output = "rainbow_ore:rainbow_ore_axe",
|
||||
recipe = {
|
||||
{"rainbow_ore:rainbow_ore_ingot", "rainbow_ore:rainbow_ore_ingot", ""},
|
||||
{"rainbow_ore:rainbow_ore_ingot", stick, ""},
|
||||
{"", stick, ""}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "rainbow_ore:rainbow_ore_axe",
|
||||
recipe = {
|
||||
{"", "rainbow_ore:rainbow_ore_ingot", "rainbow_ore:rainbow_ore_ingot"},
|
||||
{"", stick, "rainbow_ore:rainbow_ore_ingot"},
|
||||
{"", stick, ""}
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
--Register Rainbow shovel
|
||||
minetest.register_tool("rainbow_ore:rainbow_ore_shovel", {
|
||||
description = S("Rainbow Shovel"),
|
||||
inventory_image = "rainbow_ore_shovel.png",
|
||||
wield_image = "rainbow_ore_shovel.png^[transformR90",
|
||||
tool_capabilities = {
|
||||
full_punch_interval = 1.0,
|
||||
max_drop_level=3,
|
||||
groupcaps={
|
||||
crumbly = {times={[1]=0.55, [2]=0.25, [3]=0.15}, uses=15, maxlevel=3},
|
||||
},
|
||||
damage_groups = {fleshy=4},
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
--Define Rainbow shovel crafting recipe
|
||||
minetest.register_craft({
|
||||
output = "rainbow_ore:rainbow_ore_shovel",
|
||||
recipe = {
|
||||
{"", "rainbow_ore:rainbow_ore_ingot", ""},
|
||||
{"", stick, ""},
|
||||
{"", stick, ""}
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
--Register Rainbow sword
|
||||
minetest.register_tool("rainbow_ore:rainbow_ore_sword", {
|
||||
description = S("Rainbow Sword"),
|
||||
inventory_image = "rainbow_ore_sword.png",
|
||||
tool_capabilities = {
|
||||
full_punch_interval = 0.7,
|
||||
max_drop_level=3,
|
||||
groupcaps={
|
||||
snappy={times={[1]=0.95, [2]=0.45, [3]=0.15}, uses=20, maxlevel=3},
|
||||
},
|
||||
damage_groups = {fleshy=8},
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
--Define Rainbow sword crafting recipe
|
||||
minetest.register_craft({
|
||||
output = "rainbow_ore:rainbow_ore_sword",
|
||||
recipe = {
|
||||
{"", "rainbow_ore:rainbow_ore_ingot", ""},
|
||||
{"", "rainbow_ore:rainbow_ore_ingot", ""},
|
||||
{"", stick, ""}
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
--Define Nyan Rainbow crafting recipe
|
||||
minetest.register_craft({
|
||||
output = "default:nyancat_rainbow",
|
||||
recipe = {
|
||||
{"rainbow_ore:rainbow_ore_ingot", "rainbow_ore:rainbow_ore_ingot", "rainbow_ore:rainbow_ore_ingot"},
|
||||
{"rainbow_ore:rainbow_ore_ingot", "rainbow_ore:rainbow_ore_ingot", "rainbow_ore:rainbow_ore_ingot"},
|
||||
{"rainbow_ore:rainbow_ore_ingot", "rainbow_ore:rainbow_ore_ingot", "rainbow_ore:rainbow_ore_ingot"}
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
--Make Rainbow Ore spawn
|
||||
local spawn_within = minetest.settings:get("rainbow_ore.spawn_within") or "default:stone"
|
||||
minetest.log("action", "[rainbow_ore] ore set to spawn within " .. spawn_within
|
||||
.. ", this can be changed with rainbow_ore.spawn_within setting")
|
||||
|
||||
minetest.register_on_mods_loaded(function()
|
||||
if minetest.registered_nodes[spawn_within] then
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "rainbow_ore:rainbow_ore_block",
|
||||
wherein = spawn_within,
|
||||
clust_scarcity = 17*17*17,
|
||||
clust_num_ores = 3,
|
||||
clust_size = 3,
|
||||
y_min = -31000,
|
||||
y_max = -200,
|
||||
})
|
||||
else
|
||||
minetest.log("warning", "[rainbow_ore] " .. spawn_within .. " is not a registered node, rainbow ore will not spawn")
|
||||
end
|
||||
end)
|
16
mods/rainbow_ore/locale/rainbow_ore.es.tr
Normal file
|
@ -0,0 +1,16 @@
|
|||
# textdomain:rainbow_ore
|
||||
|
||||
# Translators: Jordan Irwin (AntumDeluge)
|
||||
|
||||
|
||||
Rainbow Ore=Mineral de Arcoíris
|
||||
Rainbow Ore Ingot=Lingote de Arcoíris
|
||||
Rainbow Pickaxe=Pico de Arcoíris
|
||||
Rainbow Axe=Hacha de Arcoíris
|
||||
Rainbow Shovel=Pala de Arcoíris
|
||||
Rainbow Sword=Espada de Arcoíris
|
||||
Rainbow Helmet=Casco de Arcoíris
|
||||
Rainbow Chestplate=Pechera de Arcoíris
|
||||
Rainbow Leggings=Esquinela de Arcoíris
|
||||
Rainbow Boots=Botas de Arcoíris
|
||||
Rainbow Shield=Escudo de Arcoíris
|
16
mods/rainbow_ore/locale/template.txt
Normal file
|
@ -0,0 +1,16 @@
|
|||
# textdomain:rainbow_ore
|
||||
|
||||
# Translators:
|
||||
|
||||
|
||||
Rainbow Ore=
|
||||
Rainbow Ore Ingot=
|
||||
Rainbow Pickaxe=
|
||||
Rainbow Axe=
|
||||
Rainbow Shovel=
|
||||
Rainbow Sword=
|
||||
Rainbow Helmet=
|
||||
Rainbow Chestplate=
|
||||
Rainbow Leggings=
|
||||
Rainbow Boots=
|
||||
Rainbow Shield=
|
8
mods/rainbow_ore/mod.conf
Normal file
|
@ -0,0 +1,8 @@
|
|||
name = rainbow_ore
|
||||
title = Rainbow Ore
|
||||
description = Rainbow materials & equipment.
|
||||
author = KingSmarty
|
||||
license = LGPL
|
||||
min_minetest_version = 5.0
|
||||
optional_depends = default, 3d_armor, shields
|
||||
release = 8775
|
63
mods/rainbow_ore/rainbow_armor.lua
Normal file
|
@ -0,0 +1,63 @@
|
|||
|
||||
local S = minetest.get_translator(rainbow_ore.modname)
|
||||
|
||||
|
||||
--Define Rainbow Armor
|
||||
minetest.register_tool("rainbow_ore:rainbow_ore_helmet", {
|
||||
description = S("Rainbow Helmet"),
|
||||
inventory_image = "rainbow_ore_helmet_inv.png",
|
||||
groups = {armor_head=20, armor_heal=17, armor_use=40},
|
||||
wear = 0,
|
||||
})
|
||||
minetest.register_tool("rainbow_ore:rainbow_ore_chestplate", {
|
||||
description = S("Rainbow Chestplate"),
|
||||
inventory_image = "rainbow_ore_chestplate_inv.png",
|
||||
groups = {armor_torso=25, armor_heal=17, armor_use=40},
|
||||
wear = 0,
|
||||
})
|
||||
minetest.register_tool("rainbow_ore:rainbow_ore_leggings", {
|
||||
description = S("Rainbow Leggings"),
|
||||
inventory_image = "rainbow_ore_leggings_inv.png",
|
||||
groups = {armor_legs=25, armor_heal=17, armor_use=40},
|
||||
wear = 0,
|
||||
})
|
||||
minetest.register_tool("rainbow_ore:rainbow_ore_boots", {
|
||||
description = S("Rainbow Boots"),
|
||||
inventory_image = "rainbow_ore_boots_inv.png",
|
||||
groups = {armor_feet=20, armor_heal=17, armor_use=40},
|
||||
wear = 0,
|
||||
})
|
||||
|
||||
|
||||
--Define Rainbow Armor crafting recipe
|
||||
minetest.register_craft({
|
||||
output = "rainbow_ore:rainbow_ore_helmet",
|
||||
recipe = {
|
||||
{"rainbow_ore:rainbow_ore_ingot", "rainbow_ore:rainbow_ore_ingot", "rainbow_ore:rainbow_ore_ingot"},
|
||||
{"rainbow_ore:rainbow_ore_ingot", "", "rainbow_ore:rainbow_ore_ingot"},
|
||||
{"", "", ""},
|
||||
},
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = "rainbow_ore:rainbow_ore_chestplate",
|
||||
recipe = {
|
||||
{"rainbow_ore:rainbow_ore_ingot", "", "rainbow_ore:rainbow_ore_ingot"},
|
||||
{"rainbow_ore:rainbow_ore_ingot", "rainbow_ore:rainbow_ore_ingot", "rainbow_ore:rainbow_ore_ingot"},
|
||||
{"rainbow_ore:rainbow_ore_ingot", "rainbow_ore:rainbow_ore_ingot", "rainbow_ore:rainbow_ore_ingot"},
|
||||
},
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = "rainbow_ore:rainbow_ore_leggings",
|
||||
recipe = {
|
||||
{"rainbow_ore:rainbow_ore_ingot", "rainbow_ore:rainbow_ore_ingot", "rainbow_ore:rainbow_ore_ingot"},
|
||||
{"rainbow_ore:rainbow_ore_ingot", "", "rainbow_ore:rainbow_ore_ingot"},
|
||||
{"rainbow_ore:rainbow_ore_ingot", "", "rainbow_ore:rainbow_ore_ingot"},
|
||||
},
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = "rainbow_ore:rainbow_ore_boots",
|
||||
recipe = {
|
||||
{"rainbow_ore:rainbow_ore_ingot", "", "rainbow_ore:rainbow_ore_ingot"},
|
||||
{"rainbow_ore:rainbow_ore_ingot", "", "rainbow_ore:rainbow_ore_ingot"},
|
||||
},
|
||||
})
|
22
mods/rainbow_ore/rainbow_shield.lua
Normal file
|
@ -0,0 +1,22 @@
|
|||
|
||||
local S = minetest.get_translator(rainbow_ore.modname)
|
||||
|
||||
|
||||
--Define Rainbow shield
|
||||
minetest.register_tool("rainbow_ore:rainbow_ore_shield", {
|
||||
description = S("Rainbow Shield"),
|
||||
inventory_image = "rainbow_ore_shield_inv.png",
|
||||
groups = {armor_shield=20, armor_heal=17, armor_use=40, armor_fire=1},
|
||||
wear = 0,
|
||||
})
|
||||
|
||||
|
||||
--Define Rainbow shield crafting recipe
|
||||
minetest.register_craft({
|
||||
output = "rainbow_ore:rainbow_ore_shield",
|
||||
recipe = {
|
||||
{"rainbow_ore:rainbow_ore_ingot", "rainbow_ore:rainbow_ore_ingot", "rainbow_ore:rainbow_ore_ingot"},
|
||||
{"rainbow_ore:rainbow_ore_ingot", "rainbow_ore:rainbow_ore_ingot", "rainbow_ore:rainbow_ore_ingot"},
|
||||
{"", "rainbow_ore:rainbow_ore_ingot", ""},
|
||||
},
|
||||
})
|
9
mods/rainbow_ore/settingtypes.txt
Normal file
|
@ -0,0 +1,9 @@
|
|||
|
||||
# Determines the item used as "stick" component in rainbow tool craft recipes.
|
||||
# Default is "default:stick". If default mod is not available, then default
|
||||
# is "rainbow_ore:rainbow_ore_block".
|
||||
rainbow_ore.stick (Stick item for rainbow tools recipes) string default:stick
|
||||
|
||||
# Determines node that will be replaced with "rainbow_ore:rainbow_ore_block"
|
||||
# when ore is spawned.
|
||||
rainbow_ore.spawn_within (Rainbow ore spawns within) string default:stone
|
BIN
mods/rainbow_ore/textures/raibow_ore.png
Normal file
After Width: | Height: | Size: 330 B |
BIN
mods/rainbow_ore/textures/rainbow_ore_axe.png
Normal file
After Width: | Height: | Size: 344 B |
BIN
mods/rainbow_ore/textures/rainbow_ore_block.png
Normal file
After Width: | Height: | Size: 662 B |
BIN
mods/rainbow_ore/textures/rainbow_ore_boots_inv.png
Normal file
After Width: | Height: | Size: 455 B |
BIN
mods/rainbow_ore/textures/rainbow_ore_chestplate_inv.png
Normal file
After Width: | Height: | Size: 492 B |
BIN
mods/rainbow_ore/textures/rainbow_ore_helmet_inv.png
Normal file
After Width: | Height: | Size: 447 B |
BIN
mods/rainbow_ore/textures/rainbow_ore_ingot.png
Normal file
After Width: | Height: | Size: 443 B |
BIN
mods/rainbow_ore/textures/rainbow_ore_leggings_inv.png
Normal file
After Width: | Height: | Size: 442 B |
BIN
mods/rainbow_ore/textures/rainbow_ore_pickaxe.png
Normal file
After Width: | Height: | Size: 407 B |
BIN
mods/rainbow_ore/textures/rainbow_ore_rainbow_ore_boots.png
Normal file
After Width: | Height: | Size: 668 B |
After Width: | Height: | Size: 2.1 KiB |
BIN
mods/rainbow_ore/textures/rainbow_ore_rainbow_ore_chestplate.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 4.8 KiB |
BIN
mods/rainbow_ore/textures/rainbow_ore_rainbow_ore_helmet.png
Normal file
After Width: | Height: | Size: 903 B |
After Width: | Height: | Size: 2 KiB |
BIN
mods/rainbow_ore/textures/rainbow_ore_rainbow_ore_leggings.png
Normal file
After Width: | Height: | Size: 664 B |
After Width: | Height: | Size: 3.1 KiB |
BIN
mods/rainbow_ore/textures/rainbow_ore_rainbow_ore_shield.png
Normal file
After Width: | Height: | Size: 791 B |
After Width: | Height: | Size: 3.2 KiB |
BIN
mods/rainbow_ore/textures/rainbow_ore_shield_inv.png
Normal file
After Width: | Height: | Size: 752 B |
BIN
mods/rainbow_ore/textures/rainbow_ore_shovel.png
Normal file
After Width: | Height: | Size: 376 B |
BIN
mods/rainbow_ore/textures/rainbow_ore_sword.png
Normal file
After Width: | Height: | Size: 413 B |