[Mod] Rainbow Ore [1.2.1] [rainbow_ore]

Post Reply
User avatar
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]

by KingSmarty » Post

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

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
GitHub: FsxShader2012
In-game: FsxShader2012
Location: Germany

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

by KingSmarty » Post

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: 1019
Joined: Mon Jul 07, 2014 01:14
GitHub: Napiophelios
IRC: Nappi
In-game: Nappi

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

by Napiophelios » Post

we need some rainbow armor now :)

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

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

by Krock » Post

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.
Look, I programmed a bug for you. >> 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
GitHub: FsxShader2012
In-game: FsxShader2012
Location: Germany

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

by KingSmarty » Post

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
GitHub: FsxShader2012
In-game: FsxShader2012
Location: Germany

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

by KingSmarty » Post

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: 1019
Joined: Mon Jul 07, 2014 01:14
GitHub: Napiophelios
IRC: Nappi
In-game: Nappi

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

by Napiophelios » Post

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
GitHub: FsxShader2012
In-game: FsxShader2012
Location: Germany

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

by KingSmarty » Post

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: 1019
Joined: Mon Jul 07, 2014 01:14
GitHub: Napiophelios
IRC: Nappi
In-game: Nappi

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

by Napiophelios » Post

yeah you just gotta change the armor values..I think those are for wood armor IDK

User avatar
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]

by KingSmarty » Post

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
GitHub: FsxShader2012
In-game: FsxShader2012
Location: Germany

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

by KingSmarty » Post

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

BBmine
Member
Posts: 3475
Joined: Sun Jul 12, 2015 22:51
GitHub: BBmine
IRC: BBmine
In-game: Baggins
Location: USA

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

by BBmine » Post

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
GitHub: FsxShader2012
In-game: FsxShader2012
Location: Germany

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

by KingSmarty » Post

BBmine wrote:It would be nice if rainbow ore blocks could craft into a nyancat rainbow.
Anyone else interested in that feature?

stoneminer
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]

by stoneminer » Post

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!
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.

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

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

by firefox » Post

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
=(^.^)= nyan~

User avatar
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]

by KingSmarty » Post

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
GitHub: FsxShader2012
In-game: FsxShader2012
Location: Germany

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

by KingSmarty » Post

Also look what i just found :D
Image

User avatar
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]

by KingSmarty » Post

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

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

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

by EdShouldBeInBed » Post

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: 2383
Joined: Sun Apr 09, 2017 05:50
GitHub: LoneWolfHT
IRC: Lone_Wolf or LoneWolfHT
In-game: Lone_Wolf
Location: Not there, THERE!

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

by Lone_Wolf » Post

Love it! +10

User avatar
FreeGamers
Member
Posts: 640
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]

by FreeGamers » Post

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.

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
I hope the ores are very rare because this item set is really powerful.
Attachments
Screenshot from 2019-06-08 03-05-17.png
(428.56 KiB) Not downloaded yet

Post Reply

Who is online

Users browsing this forum: argyle, daret and 6 guests