Add 'rainbow_ore' mod:

https://forum.minetest.net/viewtopic.php?id=13519
License: LGPL
master
AntumDeluge 2017-04-16 13:05:26 -07:00
parent 6a044543bf
commit d6f409c416
28 changed files with 282 additions and 0 deletions

View File

@ -52,6 +52,7 @@ The game includes the mods from the default [minetest_game](https://github.com/m
* materials/
* [moreores][] ([zlib/CC-BY-SA](mods/materials/moreores/README.md))
* [quartz][] ([MIT](mods/materials/quartz/LICENSE.txt))
* [rainbow_ore][] ([LGPL][lic.rainbow_ore]) -- version: [6e77693 Git][ver.rainbow_ore]
* [unifieddyes][] ([GPL](mods/materials/unifieddyes/LICENSE))
* mobs/
* [kpgmobs][] ([MIT](mods/mobs/kpgmobs/README.txt))
@ -255,6 +256,7 @@ The game includes the mods from the default [minetest_game](https://github.com/m
[privilegeareas]: https://forum.minetest.net/viewtopic.php?t=5545
[privs]: mods/admin/privs
[quartz]: https://forum.minetest.net/viewtopic.php?t=5682
[rainbow_ore]: https://forum.minetest.net/viewtopic.php?id=13519
[signs_lib]: https://forum.minetest.net/viewtopic.php?f=11&t=13762
[simple_protection]: https://forum.minetest.net/viewtopic.php?t=9035
[spawneggs]: https://forum.minetest.net/viewtopic.php?t=6214
@ -325,6 +327,7 @@ The game includes the mods from the default [minetest_game](https://github.com/m
[lic.playeranim.1]: mods/player_visuals/playeranim/LICENSE.txt
[lic.playeranim.2]: mods/player_visuals/playeranim/LICENSE-original.txt
[lic.privilegeareas]: mods/admin/privilegeareas/README.md
[lic.rainbow_ore]: mods/materials/rainbow_ore/README.md
[lic.simple_protection]: mods/protection/simple_protection/README.md
[lic.spawneggs]: mods/spawning/spawneggs/README.txt
[lic.spectator_mode]: mods/admin/spectator_mode/LICENSE
@ -353,6 +356,7 @@ The game includes the mods from the default [minetest_game](https://github.com/m
[ver.mywoodslopes]: https://github.com/minetest-mods/mywoodslopes/tree/3a1b531
[ver.playeranim]: https://github.com/minetest-mods/playeranim/tree/f1c542e
[ver.privilegeareas]: https://github.com/minetest-mods/privilegeareas/tree/aebaa00
[ver.rainbow_ore]: https://github.com/FsxShader2012/rainbow_ore/tree/6e77693
[ver.simple_protection]: https://github.com/SmallJoker/simple_protection/tree/c822e56
[ver.spawneggs]: https://github.com/thefamilygrog66/spawneggs/tree/4650370
[ver.spectator_mode]: https://github.com/minetest-mods/spectator_mode/tree/3459db4

View File

@ -0,0 +1,26 @@
Rainbow Ore
===========
This mod features a new ore called "Rainbow Ore" (as if you guessed it :D) wich 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 are crafted as always but with "Rainbow Ingots" as material instead.
Armor is crafted like Armor but with "Rainbow Ingots" as material instead.
Shield are 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.

View File

@ -0,0 +1,3 @@
default
3d_armor?
shields?

View File

@ -0,0 +1,172 @@
-- Rainbow_Ore Test Mod ----------- Copyright Robin Kuhn 2015
--Check for mods
if minetest.get_modpath("3d_armor") then
dofile(minetest.get_modpath("rainbow_ore").."/rainbow_armor.lua")
end
if minetest.get_modpath("shields") then
dofile(minetest.get_modpath("rainbow_ore").."/rainbow_shield.lua")
end
-- Define Rainbow_Ore_Block node
minetest.register_node("rainbow_ore:rainbow_ore_block", {
description = "Rainbow Ore",
tile_images = {"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 = "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 = "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},
},
})
--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", ""},
{"", "default:stick", "", ""},
{"", "default:stick", "", ""}
}
})
--Register Rainbow Axe
minetest.register_tool("rainbow_ore:rainbow_ore_axe", {
description = "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", "default:stick", "", ""},
{"", "default:stick", "", ""}
}
})
minetest.register_craft({
output = "rainbow_ore:rainbow_ore_axe",
recipe = {
{"", "rainbow_ore:rainbow_ore_ingot", "rainbow_ore:rainbow_ore_ingot", ""},
{"", "default:stick", "rainbow_ore:rainbow_ore_ingot", ""},
{"", "default:stick", "", ""}
}
})
--Register Rainbow shovel
minetest.register_tool("rainbow_ore:rainbow_ore_shovel", {
description = "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", "", ""},
{"", "default:stick", "", ""},
{"", "default:stick", "", ""}
}
})
--Register Rainbow sword
minetest.register_tool("rainbow_ore:rainbow_ore_sword", {
description = "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", "", ""},
{"", "default: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
minetest.register_ore({
ore_type = "scatter",
ore = "rainbow_ore:rainbow_ore_block",
wherein = "default:stone",
clust_scarcity = 17*17*17,
clust_num_ores = 3,
clust_size = 3,
height_min = -31000,
height_max = -200,
})

View File

@ -0,0 +1,59 @@
--Define Rainbow Armor
minetest.register_tool("rainbow_ore:rainbow_ore_helmet", {
description = "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 = "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 = "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 = "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"},
},
})

View File

@ -0,0 +1,18 @@
--Define Rainbow shield
minetest.register_tool("rainbow_ore:rainbow_ore_shield", {
description = "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", ""},
},
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 330 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 344 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 662 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 455 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 492 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 447 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 443 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 442 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 407 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 668 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 903 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 664 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 791 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 752 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 376 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 413 B