[Mod] Rainbow Ore [1.2.1] [rainbow_ore]
- KingSmarty
- Member
- Posts: 85
- Joined: Wed Jan 02, 2013 12:06
- GitHub: FsxShader2012
- In-game: FsxShader2012
- Location: Germany
[Mod] Rainbow Ore [1.2.1] [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.
Update 1.1: Added 3d_armor and shields support!
Update 1.2: Nerfed armor and shield stats. Made ore a little bit more rare ;)
Update 1.2.1: Added crafting recipe for Nyancat_rainbow.
Download: https://github.com/FsxShader2012/rainbo ... master.zip
Installation:
Please make sure you don't have any previous versions of the mod installed.
Download the zip, unpack it into your mods directory, and rename the folder to "rainbow_ore"
Enable the mod in ur desired world.
Dependencies: None :)
Supports: 3d_armor, shields
License: LGPL v2.1
Code is written by me. Tool textures are repainted Minetest default textures......repainted by me ;)
3d_armor and shield textures were made by Ryan Jones (CC-BY-SA) and repainted by me.
Feel free to post any ideas that help me improve the mod :)
Screenshot:
Update 1.1: Added 3d_armor and shields support!
Update 1.2: Nerfed armor and shield stats. Made ore a little bit more rare ;)
Update 1.2.1: Added crafting recipe for Nyancat_rainbow.
Download: https://github.com/FsxShader2012/rainbo ... master.zip
Installation:
Please make sure you don't have any previous versions of the mod installed.
Download the zip, unpack it into your mods directory, and rename the folder to "rainbow_ore"
Enable the mod in ur desired world.
Dependencies: None :)
Supports: 3d_armor, shields
License: LGPL v2.1
Code is written by me. Tool textures are repainted Minetest default textures......repainted by me ;)
3d_armor and shield textures were made by Ryan Jones (CC-BY-SA) and repainted by me.
Feel free to post any ideas that help me improve the mod :)
Screenshot:
Last edited by KingSmarty on Mon Nov 02, 2015 12:16, edited 12 times in total.
Re: [Mod] Rainbow Ore [1.0] [rainbowore]
The screenshot does not seem to work – calling the URL directly gives something of an "invalid cookie" error. Did you maybe link to a version that requires you to be logged in?
- KingSmarty
- Member
- Posts: 85
- Joined: Wed Jan 02, 2013 12:06
- GitHub: FsxShader2012
- In-game: FsxShader2012
- Location: Germany
Re: [Mod] Rainbow Ore [1.0] [rainbowore]
Yeah i thought that that might be problematic.....At least i was right ;)Ben wrote:The screenshot does not seem to work – calling the URL directly gives something of an "invalid cookie" error. Did you maybe link to a version that requires you to be logged in?
Thx for telling me :)
For some reason the quality is really bad.... :( But at least it should be viewable by all now.
- Napiophelios
- Member
- Posts: 1035
- Joined: Mon Jul 07, 2014 01:14
- GitHub: Napiophelios
- IRC: Nappi
- In-game: Nappi
Re: [Mod] Rainbow Ore [1.0] [rainbowore]
we need some rainbow armor now :)
- Krock
- Developer
- Posts: 4650
- Joined: Thu Oct 03, 2013 07:48
- GitHub: SmallJoker
- Location: Switzerland
- Contact:
Re: [Mod] Rainbow Ore [1.0] [rainbowore]
That's true. Add a soft-dependency on 3d_armor and add the items if the mod is enabled.Napiophelios wrote:we need some rainbow armor now :)
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>
- KingSmarty
- Member
- Posts: 85
- Joined: Wed Jan 02, 2013 12:06
- GitHub: FsxShader2012
- In-game: FsxShader2012
- Location: Germany
Re: [Mod] Rainbow Ore [1.0] [rainbowore]
I don't think that Minetest supports soft dependencies till now, but i will add one for 3d_armor on the forum post.Krock wrote:That's true. Add a soft-dependency on 3d_armor and add the items if the mod is enabled.
So armor IS gonna be added!
- KingSmarty
- Member
- Posts: 85
- Joined: Wed Jan 02, 2013 12:06
- GitHub: FsxShader2012
- In-game: FsxShader2012
- Location: Germany
Re: [Mod] Rainbow Ore [1.0] [rainbowore]
How do I register an item only if a mod, 3d_armor for example, is enabled?Krock wrote:That's true. Add a soft-dependency on 3d_armor and add the items if the mod is enabled.
- Napiophelios
- Member
- Posts: 1035
- Joined: Mon Jul 07, 2014 01:14
- GitHub: Napiophelios
- IRC: Nappi
- In-game: Nappi
Re: [Mod] Rainbow Ore [1.0] [rainbowore]
Add to init file:
if minetest.get_modpath("3d_armor") then
dofile(minetest.get_modpath("rainbowore").."/rainbow_armor.lua")
end
I think you also add
3d_armor?
to the depends text file.
then put your armor code in
rainbow_armor.lua:
yeah that should work :)
if minetest.get_modpath("3d_armor") then
dofile(minetest.get_modpath("rainbowore").."/rainbow_armor.lua")
end
I think you also add
3d_armor?
to the depends text file.
then put your armor code in
rainbow_armor.lua:
Code: Select all
-- Register helmets:
minetest.register_tool("rainbowore:helmet_warrior", {
description = "Rainbow Warrior's Helmet",
inventory_image = "rainbow_inv_helmet_warrior.png",
groups = {armor_head = 10, armor_heal = 12, armor_use = 300},
wear = 0,
})
-- Register chestplates:
minetest.register_tool("rainbowore:chestplate_warrior", {
description = "Rainbow Warrior's Chestplate",
inventory_image = "rainbow_inv_chestplate_warrior.png",
groups = {armor_torso = 15, armor_heal = 12, armor_use = 300},
wear = 0,
})
-- Register leggings:
minetest.register_tool("rainbowore:leggings_warrior", {
description = "Rainbow Warrior's Leggings",
inventory_image = "rainbow_inv_leggings_warrior.png",
groups = {armor_legs = 15, armor_heal = 12, armor_use = 300},
wear = 0,
})
-- Register boots:
minetest.register_tool("rainbowore:boots_warrior", {
description = "Rainbow Warrior's Boots",
inventory_image = "rainbow_inv_boots_warrior.png",
groups = {armor_feet = 10, armor_heal = 12, armor_use = 300},
wear = 0,
})
-- Register crafting recipes for Armor:
ARMOR_MATERIALS = {
warrior = "rainbowore:rainbow_ore_ingot",
}
for k, v in pairs(ARMOR_MATERIALS) do
minetest.register_craft({
output = "rainbowore:helmet_"..k,
recipe = {
{v, v, v},
{v, "", v},
{"", "", ""},
},
})
minetest.register_craft({
output = "rainbowore:chestplate_"..k,
recipe = {
{v, "", v},
{v, v, v},
{v, v, v},
},
})
minetest.register_craft({
output = "rainbowore:leggings_"..k,
recipe = {
{v, v, v},
{v, "", v},
{v, "", v},
},
})
minetest.register_craft({
output = "rainbowore:boots_"..k,
recipe = {
{v, "", v},
{v, "", v},
},
})
end
- KingSmarty
- Member
- Posts: 85
- Joined: Wed Jan 02, 2013 12:06
- GitHub: FsxShader2012
- In-game: FsxShader2012
- Location: Germany
Re: [Mod] Rainbow Ore [1.0] [rainbowore]
Ohh so thats how u make soft dependencies. I didnt know that thx :)Napiophelios wrote: I think you also add
3d_armor?
to the depends text file.
Thx for the code aswell. Gonna implement it asap :D
- Napiophelios
- Member
- Posts: 1035
- Joined: Mon Jul 07, 2014 01:14
- GitHub: Napiophelios
- IRC: Nappi
- In-game: Nappi
Re: [Mod] Rainbow Ore [1.1] [rainbowore]
yeah you just gotta change the armor values..I think those are for wood armor IDK
- KingSmarty
- Member
- Posts: 85
- Joined: Wed Jan 02, 2013 12:06
- GitHub: FsxShader2012
- In-game: FsxShader2012
- Location: Germany
Re: [Mod] Rainbow Ore [1.1] [rainbowore]
I already changed em. Also i updated the folder structure so the mod is now called "rainbow_ore" instead of "rainbowore"
- KingSmarty
- Member
- Posts: 85
- Joined: Wed Jan 02, 2013 12:06
- GitHub: FsxShader2012
- In-game: FsxShader2012
- Location: Germany
Re: [Mod] Rainbow Ore [1.1] [rainbow_ore]
V1.1 of the mod is now officially released! :D
See main post for changelog.
See main post for changelog.
-
- Member
- Posts: 3476
- Joined: Sun Jul 12, 2015 22:51
- GitHub: BBmine
- IRC: BBmine
- In-game: Baggins
- Location: USA
Re: [Mod] Rainbow Ore [1.1] [rainbow_ore]
It would be nice if rainbow ore ingots could craft into a nyancat rainbow.
EDIT: ingots, not blocks
EDIT: ingots, not blocks
Last edited by BBmine on Sun Nov 01, 2015 23:14, edited 2 times in total.
- KingSmarty
- Member
- Posts: 85
- Joined: Wed Jan 02, 2013 12:06
- GitHub: FsxShader2012
- In-game: FsxShader2012
- Location: Germany
Re: [Mod] Rainbow Ore [1.1] [rainbow_ore]
Anyone else interested in that feature?BBmine wrote:It would be nice if rainbow ore blocks could craft into a nyancat rainbow.
-
- Member
- Posts: 1001
- Joined: Sun Oct 18, 2015 19:11
- GitHub: sm31
- IRC: stoneminer
- In-game: stoneminer
Re: [Mod] Rainbow Ore [1.1] [rainbow_ore]
I agree with BBmine, rainbow ore should be crafted into nc rainbow blocks. Count me in!KingSmarty wrote:Anyone else interested in that feature?BBmine wrote:It would be nice if rainbow ore blocks could craft into a nyancat rainbow.
For God so loved the world, that he gave his one and only Son, that whoever believes in him should not perish, but have eternal life.
Re: [Mod] Rainbow Ore [1.1] [rainbow_ore]
yes, just like gold and diamond blocks, rainbow ore should be made into rainbow blocks.
in this case the same as the nyan rainbows.
+1
in this case the same as the nyan rainbows.
+1
✨🏳️🌈♣️✨
- KingSmarty
- Member
- Posts: 85
- Joined: Wed Jan 02, 2013 12:06
- GitHub: FsxShader2012
- In-game: FsxShader2012
- Location: Germany
Re: [Mod] Rainbow Ore [1.1] [rainbow_ore]
Alright folks it is gonna be added in v1.2.1 :)BBmine wrote:It would be nice if rainbow ore ingots could craft into a nyancat rainbow.
EDIT: ingots, not blocks
- KingSmarty
- Member
- Posts: 85
- Joined: Wed Jan 02, 2013 12:06
- GitHub: FsxShader2012
- In-game: FsxShader2012
- Location: Germany
Re: [Mod] Rainbow Ore [1.2] [rainbow_ore]
Also look what i just found :D
- KingSmarty
- Member
- Posts: 85
- Joined: Wed Jan 02, 2013 12:06
- GitHub: FsxShader2012
- In-game: FsxShader2012
- Location: Germany
Re: [Mod] Rainbow Ore [1.2.1] [rainbow_ore]
V1.2.1 of the mod is now officially released! :D
See main post for changelog.
See main post for changelog.
-
- Member
- Posts: 48
- Joined: Sun Feb 22, 2015 16:03
- In-game: EdShdBInBed
Re: [Mod] Rainbow Ore [1.2.1] [rainbow_ore]
About the only thing I'd like is mined rainbows to become a nugget. Other than that... nice.
I'm a writer who tinkers with code on occasion. I play minetest when insomnia makes the writing hard.
- Lone_Wolf
- Member
- Posts: 2578
- Joined: Sun Apr 09, 2017 05:50
- GitHub: LoneWolfHT
- IRC: LandarVargan
- In-game: LandarVargan
Re: [Mod] Rainbow Ore [1.2.1] [rainbow_ore]
Love it! +10
- FreeGamers
- Member
- Posts: 650
- Joined: Sat May 25, 2019 00:15
- GitHub: is proprietary I use NotABug
- Location: United States
- Contact:
Re: [Mod] Rainbow Ore [1.2.1] [rainbow_ore]
You can add ToolRank support by adding the following lines to the end of the rainbow_ore.lua I tested the code below and it worked fine on my server. See the attached screenshot for verification.
I hope the ores are very rare because this item set is really powerful.
Code: Select all
--Toolranks support
if minetest.get_modpath("toolranks") then
minetest.override_item("rainbow_ore:rainbow_ore_sword", {
description = toolranks.create_description("Rainbow Sword", 0, 1),
original_description = "Rainbow Sword",
after_use = toolranks.new_afteruse
})
minetest.override_item("rainbow_ore:rainbow_ore_pickaxe", {
description = toolranks.create_description("Rainbow Pickaxe", 0, 1),
original_description = "Rainbow Pickaxe",
after_use = toolranks.new_afteruse
})
minetest.override_item("rainbow_ore:rainbow_ore_axe", {
description = toolranks.create_description("Rainbow Axe", 0, 1),
original_description = "Rainbow Axe",
after_use = toolranks.new_afteruse
})
minetest.override_item("rainbow_ore:rainbow_ore_shovel", {
description = toolranks.create_description("Rainbow Shovel", 0, 1),
original_description = "Rainbow Shovel",
after_use = toolranks.new_afteruse
})
end
- Attachments
-
- Screenshot from 2019-06-08 03-05-17.png (428.56 KiB) Viewed 3831 times
FreeGamers.org has moved to MeseCraft.net | FreeGamers on this forum is now MeseCraft
Who is online
Users browsing this forum: No registered users and 67 guests