[Mod] Rainbow Ore [1.2.1] [rainbow_ore]

User avatar
KingSmarty
Member
 
Posts: 85
Joined: Wed Jan 02, 2013 12:06
Location: Germany
GitHub: FsxShader2012
In-game: FsxShader2012

[Mod] Rainbow Ore [1.2.1] [rainbow_ore]

by KingSmarty » Sat Oct 31, 2015 15:39

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/rainbow_ore/archive/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:
Image
Image
Last edited by KingSmarty on Mon Nov 02, 2015 12:16, edited 12 times in total.
 

User avatar
Ben
Member
 
Posts: 160
Joined: Tue Mar 31, 2015 20:09

Re: [Mod] Rainbow Ore [1.0] [rainbowore]

by Ben » Sat Oct 31, 2015 20:45

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?
 

User avatar
KingSmarty
Member
 
Posts: 85
Joined: Wed Jan 02, 2013 12:06
Location: Germany
GitHub: FsxShader2012
In-game: FsxShader2012

Re: [Mod] Rainbow Ore [1.0] [rainbowore]

by KingSmarty » Sat Oct 31, 2015 22:47

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?

Yeah i thought that that might be problematic.....At least i was right ;)
Thx for telling me :)
For some reason the quality is really bad.... :( But at least it should be viewable by all now.
 

User avatar
Napiophelios
Member
 
Posts: 930
Joined: Mon Jul 07, 2014 01:14
GitHub: Napiophelios
IRC: Nappi
In-game: Nappi
 

User avatar
Krock
Developer
 
Posts: 4096
Joined: Thu Oct 03, 2013 07:48
Location: Switzerland
GitHub: SmallJoker

Re: [Mod] Rainbow Ore [1.0] [rainbowore]

by Krock » Sun Nov 01, 2015 08:35

Napiophelios wrote:we need some rainbow armor now :)

That's true. Add a soft-dependency on 3d_armor and add the items if the mod is enabled.
Mod Search Engine - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>
 

User avatar
KingSmarty
Member
 
Posts: 85
Joined: Wed Jan 02, 2013 12:06
Location: Germany
GitHub: FsxShader2012
In-game: FsxShader2012

Re: [Mod] Rainbow Ore [1.0] [rainbowore]

by KingSmarty » Sun Nov 01, 2015 13:19

Krock wrote:That's true. Add a soft-dependency on 3d_armor and add the items if the mod is enabled.

I don't think that Minetest supports soft dependencies till now, but i will add one for 3d_armor on the forum post.
So armor IS gonna be added!
 

User avatar
KingSmarty
Member
 
Posts: 85
Joined: Wed Jan 02, 2013 12:06
Location: Germany
GitHub: FsxShader2012
In-game: FsxShader2012

Re: [Mod] Rainbow Ore [1.0] [rainbowore]

by KingSmarty » Sun Nov 01, 2015 16:37

Krock wrote:That's true. Add a soft-dependency on 3d_armor and add the items if the mod is enabled.

How do I register an item only if a mod, 3d_armor for example, is enabled?
 

User avatar
Napiophelios
Member
 
Posts: 930
Joined: Mon Jul 07, 2014 01:14
GitHub: Napiophelios
IRC: Nappi
In-game: Nappi

Re: [Mod] Rainbow Ore [1.0] [rainbowore]

by Napiophelios » Sun Nov 01, 2015 17:16

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:
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

   


yeah that should work :)
 

User avatar
KingSmarty
Member
 
Posts: 85
Joined: Wed Jan 02, 2013 12:06
Location: Germany
GitHub: FsxShader2012
In-game: FsxShader2012

Re: [Mod] Rainbow Ore [1.0] [rainbowore]

by KingSmarty » Sun Nov 01, 2015 17:25

Napiophelios wrote:I think you also add
3d_armor?
to the depends text file.

Ohh so thats how u make soft dependencies. I didnt know that thx :)
Thx for the code aswell. Gonna implement it asap :D
 

User avatar
Napiophelios
Member
 
Posts: 930
Joined: Mon Jul 07, 2014 01:14
GitHub: Napiophelios
IRC: Nappi
In-game: Nappi
 

User avatar
KingSmarty
Member
 
Posts: 85
Joined: Wed Jan 02, 2013 12:06
Location: Germany
GitHub: FsxShader2012
In-game: FsxShader2012

Re: [Mod] Rainbow Ore [1.1] [rainbowore]

by KingSmarty » Sun Nov 01, 2015 17:41

I already changed em. Also i updated the folder structure so the mod is now called "rainbow_ore" instead of "rainbowore"
 

User avatar
KingSmarty
Member
 
Posts: 85
Joined: Wed Jan 02, 2013 12:06
Location: Germany
GitHub: FsxShader2012
In-game: FsxShader2012

Re: [Mod] Rainbow Ore [1.1] [rainbow_ore]

by KingSmarty » Sun Nov 01, 2015 18:46

V1.1 of the mod is now officially released! :D
See main post for changelog.
 

User avatar
BBmine
Member
 
Posts: 3416
Joined: Sun Jul 12, 2015 22:51
Location: USA
IRC: BBmine
In-game: Baggins

Re: [Mod] Rainbow Ore [1.1] [rainbow_ore]

by BBmine » Sun Nov 01, 2015 20:11

It would be nice if rainbow ore ingots could craft into a nyancat rainbow.

EDIT: ingots, not blocks
Last edited by BBmine on Sun Nov 01, 2015 23:14, edited 2 times in total.
 

User avatar
KingSmarty
Member
 
Posts: 85
Joined: Wed Jan 02, 2013 12:06
Location: Germany
GitHub: FsxShader2012
In-game: FsxShader2012

Re: [Mod] Rainbow Ore [1.1] [rainbow_ore]

by KingSmarty » Sun Nov 01, 2015 21:34

BBmine wrote:It would be nice if rainbow ore blocks could craft into a nyancat rainbow.

Anyone else interested in that feature?
 

User avatar
stoneminer
Member
 
Posts: 1001
Joined: Sun Oct 18, 2015 19:11
Location: die Erde
GitHub: sm31
IRC: stoneminer
In-game: stoneminer

Re: [Mod] Rainbow Ore [1.1] [rainbow_ore]

by stoneminer » Sun Nov 01, 2015 22:36

KingSmarty wrote:
BBmine wrote:It would be nice if rainbow ore blocks could craft into a nyancat rainbow.

Anyone else interested in that feature?

I agree with BBmine, rainbow ore should be crafted into nc rainbow blocks. Count me in!
God's not dead!
 

User avatar
firefox
Member
 
Posts: 1420
Joined: Wed Jan 14, 2015 07:34
Location: Xanadu
In-game: Red_Fox

Re: [Mod] Rainbow Ore [1.1] [rainbow_ore]

by firefox » Mon Nov 02, 2015 07:32

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
my game: viewtopic.php?f=49&t=15860 --- building inspiration: viewtopic.php?f=3&t=15550 --- =(^.^)= nya~
 

User avatar
KingSmarty
Member
 
Posts: 85
Joined: Wed Jan 02, 2013 12:06
Location: Germany
GitHub: FsxShader2012
In-game: FsxShader2012

Re: [Mod] Rainbow Ore [1.1] [rainbow_ore]

by KingSmarty » Mon Nov 02, 2015 12:01

BBmine wrote:It would be nice if rainbow ore ingots could craft into a nyancat rainbow.

EDIT: ingots, not blocks

Alright folks it is gonna be added in v1.2.1 :)
 

User avatar
KingSmarty
Member
 
Posts: 85
Joined: Wed Jan 02, 2013 12:06
Location: Germany
GitHub: FsxShader2012
In-game: FsxShader2012
 

User avatar
KingSmarty
Member
 
Posts: 85
Joined: Wed Jan 02, 2013 12:06
Location: Germany
GitHub: FsxShader2012
In-game: FsxShader2012

Re: [Mod] Rainbow Ore [1.2.1] [rainbow_ore]

by KingSmarty » Mon Nov 02, 2015 12:22

V1.2.1 of the mod is now officially released! :D
See main post for changelog.
 

EdShouldBeInBed
Member
 
Posts: 47
Joined: Sun Feb 22, 2015 16:03
In-game: EdShdBInBed

Re: [Mod] Rainbow Ore [1.2.1] [rainbow_ore]

by EdShouldBeInBed » Sun Apr 16, 2017 19:13

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.
 

User avatar
Lone_Wolf
Member
 
Posts: 1898
Joined: Sun Apr 09, 2017 05:50
Location: You wouldn't believe me
GitHub: LoneWolfHT
IRC: Lone_Wolf
In-game: Lone_Wolf or Somebody
 


Return to Mod Releases



Who is online

Users browsing this forum: No registered users and 3 guests