[Mod] Toolsredo [toolsredo]

kosmonautik
Member
Posts: 30
Joined: Fri Jun 24, 2016 10:40
In-game: kosmonautik
Location: Czech Republic
Contact:

[Mod] Toolsredo [toolsredo]

by kosmonautik » Post

Hello everyone.

Newest update 24. 8. 2018!!!

The newest version's updates:
  • Skypainters added.
This mod adds a few tools to the game:

Hammer
Digs like an usual pickaxe.

Steel Hammer
This one digs like a better pickaxe. It has longer life than the basic hammer.

Golden Hammer
Digs quite fast. Even longer life.

Diamond Hammer
Digs blocks very fast and its life is longer than the Golden Hammer's.

Mining Hammer
Digs blocks in 3x3 pattern. (cx384 helped me a lot with coding, thanks)

Crafting recipes (hammers)
Basic Hammer:
Image

Iron Hammer:
Image

Golden Hammer
Image

Diamond Hammer:
Image

Mining Hammer:
(I didn't have Minetest on the device I posted this from, so I couldn't post an image. Here is the code:)
Image

Sapphire, Ruby, Emerald, Amethyst
Minerals (or gems? I don't know) to craft specific tools. You have to mine them.
Image

Sapphire sword, Ruby sword, Emerald sword and Amethyst sword
They all deal the same damage (10). You can craft them as usual swords but with usage of the minerals/gems.
Image

Crafting recipes (swords)
Image

Rainbow sword
This special one deals 20 damage. (Image above)

Crafting recipes (Rainbow sword)
Shapeless crafted from all the swords above.

Skypainters
Tools to use to color the sky!!!!
Blue, Green, Ret, Purple.
Crafting recipe: Shapeless, matching dye colour and mese crystal.
Image

God's Rod
This is the best tool in whole mod. Digs everything nearly as fast as in creative mode. (Image below)

Lifestick
Dream of every doctor... the Lifestick! You can use it to heal yourself to full hp or to heal others or mobs (including animals and everything else that lives and moves).

Image

Crafting recipes (God's rod & Lifestick)
God's Rod is also crafted shapelessly, using diamond axe, diamond shovel, Rainbow Sword and Diamond Hammer.
Image
That hearts are Heart crystals. You can get them by cooking a Golden apple. That can be found easily (grows more often than classic apple).

Crafting recipes (Heart crystal)
Image

Download (with ore textures from whitephoenix):
https://github.com/kosmonautik/Toolsred ... master.zip

GitHub:
https://github.com/kosmonautik/Toolsredo

License: code LGPL v3.0, textures CC0
Mod dependencies: none

I hope you enjoy! If you have any issues, write them bellow.
Last edited by kosmonautik on Fri Aug 24, 2018 20:24, edited 24 times in total.

kosmonautik
Member
Posts: 30
Joined: Fri Jun 24, 2016 10:40
In-game: kosmonautik
Location: Czech Republic
Contact:

Re: Tools redo mod for minetest [toolsredo]

by kosmonautik » Post

I have noticed one more thing.
The minerals are registered as nodes.
Write a reply to let me know, how to remake this mistake. Thanks.

I also forgot to show you the minerals. They are made from green wool, red wool, blue wool or violet wool.

kosmonautik
Member
Posts: 30
Joined: Fri Jun 24, 2016 10:40
In-game: kosmonautik
Location: Czech Republic
Contact:

Re: Tools redo mod for minetest [toolsredo]

by kosmonautik » Post

kosmonautik wrote:I have noticed one more thing.
The minerals are registered as nodes.
Write a reply to let me know, how to remake this mistake. Thanks.

I also forgot to show you the minerals. They are made from green wool, red wool, blue wool or violet wool.
Ok, I fixed it.

User avatar
Lone_Wolf
Member
Posts: 2578
Joined: Sun Apr 09, 2017 05:50
GitHub: LoneWolfHT
IRC: LandarVargan
In-game: LandarVargan

Re: Tools redo mod for minetest [toolsredo]

by Lone_Wolf » Post

Why not make the minerals mineable?
I have NO idea how to code in 'lua' but you should be able to copy&paste one of the sections of code for one of the default ores, and change the texture and drop so that you have a mineable mineral.
(Even though I'm English people sometimes think I'm foreign, so I'll re-explain all that a simple as possible if you have trouble understanding)
My ContentDB -|- Working on CaptureTheFlag -|- Minetest Forums Dark Theme!! (You need it)

User avatar
Lone_Wolf
Member
Posts: 2578
Joined: Sun Apr 09, 2017 05:50
GitHub: LoneWolfHT
IRC: LandarVargan
In-game: LandarVargan

Re: Tools redo mod for minetest [toolsredo]

by Lone_Wolf » Post

How about Toolsplus or Tools++?
My ContentDB -|- Working on CaptureTheFlag -|- Minetest Forums Dark Theme!! (You need it)

kosmonautik
Member
Posts: 30
Joined: Fri Jun 24, 2016 10:40
In-game: kosmonautik
Location: Czech Republic
Contact:

Re: Tools redo mod for minetest [toolsredo]

by kosmonautik » Post

Lone_Wolf wrote:Why not make the minerals mineable?
I have NO idea how to code in 'lua' but you should be able to copy&paste one of the sections of code for one of the default ores, and change the texture and drop so that you have a mineable mineral.
(Even though I'm English people sometimes think I'm foreign, so I'll re-explain all that a simple as possible if you have trouble understanding)
Nice idea. I'm working on it.

User avatar
Lone_Wolf
Member
Posts: 2578
Joined: Sun Apr 09, 2017 05:50
GitHub: LoneWolfHT
IRC: LandarVargan
In-game: LandarVargan

Re: Tools redo mod for minetest [toolsredo]

by Lone_Wolf » Post

kosmonautik wrote:
Lone_Wolf wrote:Why not make the minerals mineable?
I have NO idea how to code in 'lua' but you should be able to copy&paste one of the sections of code for one of the default ores, and change the texture and drop so that you have a mineable mineral.
(Even though I'm English people sometimes think I'm foreign, so I'll re-explain all that a simple as possible if you have trouble understanding)
Nice idea. I'm working on it.
Thanks. I've always wanted to have a green sword...
My ContentDB -|- Working on CaptureTheFlag -|- Minetest Forums Dark Theme!! (You need it)

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: Tools redo mod for minetest [toolsredo]

by azekill_DIABLO » Post

please make all the textures 16 by 16 pixel, should fit the game better!
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

User avatar
Lone_Wolf
Member
Posts: 2578
Joined: Sun Apr 09, 2017 05:50
GitHub: LoneWolfHT
IRC: LandarVargan
In-game: LandarVargan

Re: Tools redo mod for minetest [toolsredo]

by Lone_Wolf » Post

azekill_DIABLO wrote:please make all the textures 16 by 16 pixel, should fit the game better!
Are you following me? Or you just happen to discover this much needed mod too?
My ContentDB -|- Working on CaptureTheFlag -|- Minetest Forums Dark Theme!! (You need it)

Byakuren
Member
Posts: 818
Joined: Tue Apr 14, 2015 01:59
GitHub: raymoo
IRC: Hijiri
In-game: Raymoo + Clownpiece

Re: Tools redo mod for minetest [toolsredo]

by Byakuren » Post

Lone_Wolf wrote:
azekill_DIABLO wrote:please make all the textures 16 by 16 pixel, should fit the game better!
Are you following me? Or you just happen to discover this much needed mod too?
I think azekill looks at most new mod posts.
Every time a mod API is left undocumented, a koala dies.

User avatar
Lone_Wolf
Member
Posts: 2578
Joined: Sun Apr 09, 2017 05:50
GitHub: LoneWolfHT
IRC: LandarVargan
In-game: LandarVargan

Re: Tools redo mod for minetest [toolsredo]

by Lone_Wolf » Post

Byakuren wrote:
Lone_Wolf wrote:
azekill_DIABLO wrote:please make all the textures 16 by 16 pixel, should fit the game better!
Are you following me? Or you just happen to discover this much needed mod too?
I think azekill looks at most new mod posts.
Ok xD
My ContentDB -|- Working on CaptureTheFlag -|- Minetest Forums Dark Theme!! (You need it)

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: Tools redo mod for minetest [toolsredo]

by azekill_DIABLO » Post

Byakuren wrote:
Lone_Wolf wrote:
azekill_DIABLO wrote:please make all the textures 16 by 16 pixel, should fit the game better!
Are you following me? Or you just happen to discover this much needed mod too?
I think azekill looks at most new mod posts.
RIGHT! i love to look at wip mods and help doing them! i'm amn't a follower :|
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

kosmonautik
Member
Posts: 30
Joined: Fri Jun 24, 2016 10:40
In-game: kosmonautik
Location: Czech Republic
Contact:

Re: Tools redo mod for minetest [toolsredo]

by kosmonautik » Post

azekill_DIABLO wrote:please make all the textures 16 by 16 pixel, should fit the game better!
Now on Christmas holidays I have more time than usual, so all the textures will be updated. I'm even going to add some more tools...

User avatar
Lone_Wolf
Member
Posts: 2578
Joined: Sun Apr 09, 2017 05:50
GitHub: LoneWolfHT
IRC: LandarVargan
In-game: LandarVargan

Re: Tools redo mod for minetest [toolsredo]

by Lone_Wolf » Post

kosmonautik wrote:
azekill_DIABLO wrote:please make all the textures 16 by 16 pixel, should fit the game better!
Now on Christmas holidays I have more time than usual, so all the textures will be updated. I'm even going to add some more tools...
Welcome back!
Here is some code you can use to register an ore

Code: Select all

minetest.register_ore({
		ore_type       = "scatter",
		ore            = "ore:ore",
		wherein        = "default:stone",
		clust_scarcity = 9 * 9 * 9,
		clust_num_ores = 2,
		clust_size     = 1,
		y_min          = -255,
		y_max          = -128,

	})
My ContentDB -|- Working on CaptureTheFlag -|- Minetest Forums Dark Theme!! (You need it)

kosmonautik
Member
Posts: 30
Joined: Fri Jun 24, 2016 10:40
In-game: kosmonautik
Location: Czech Republic
Contact:

Re: Tools redo mod for minetest [toolsredo]

by kosmonautik » Post

Lone_Wolf wrote:
kosmonautik wrote:
azekill_DIABLO wrote:please make all the textures 16 by 16 pixel, should fit the game better!
Now on Christmas holidays I have more time than usual, so all the textures will be updated. I'm even going to add some more tools...
Welcome back!
Here is some code you can use to register an ore

Code: Select all

minetest.register_ore({
		ore_type       = "scatter",
		ore            = "ore:ore",
		wherein        = "default:stone",
		clust_scarcity = 9 * 9 * 9,
		clust_num_ores = 2,
		clust_size     = 1,
		y_min          = -255,
		y_max          = -128,

	})
Looks it might work! I thought you aren't a coder? And what about the license, if you didn't write it yourself? Anyway, thank you very much!

Chem871
Member
Posts: 999
Joined: Sat Aug 19, 2017 21:49
GitHub: Chemguy99
In-game: Chem Nyx
Location: My Basement's Attic

Re: Toolsredo mod for minetest [toolsredo]

by Chem871 » Post

You don't have to be a coder to copy and paste, I do it all the time :P
What is SCP-055?

User avatar
Lone_Wolf
Member
Posts: 2578
Joined: Sun Apr 09, 2017 05:50
GitHub: LoneWolfHT
IRC: LandarVargan
In-game: LandarVargan

Re: Tools redo mod for minetest [toolsredo]

by Lone_Wolf » Post

kosmonautik wrote: Looks it might work! I thought you aren't a coder? And what about the license, if you didn't write it yourself? Anyway, thank you very much!
No problem
I could code, I know a little C. But I didn't know lua. I took a look at this and that helped me a lot. The code is from another mod. If I looked at the API I could have probably come up with the same result. Copy and Paste was easier though.
My ContentDB -|- Working on CaptureTheFlag -|- Minetest Forums Dark Theme!! (You need it)

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: Toolsredo mod for minetest [toolsredo]

by azekill_DIABLO » Post

welcome back kosmonautik! PM if you need help on some code!
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

kosmonautik
Member
Posts: 30
Joined: Fri Jun 24, 2016 10:40
In-game: kosmonautik
Location: Czech Republic
Contact:

Re: Tools redo mod for minetest [toolsredo]

by kosmonautik » Post

Lone_Wolf wrote:
kosmonautik wrote: Looks it might work! I thought you aren't a coder? And what about the license, if you didn't write it yourself? Anyway, thank you very much!
No problem
I could code, I know a little C. But I didn't know lua. I took a look at this and that helped me a lot. The code is from another mod. If I looked at the API I could have probably come up with the same result. Copy and Paste was easier though.
Thank you for everything again. I could code a bit in Python even before I started modding Minetest. And I also learn from that book. Anyway, the mod is updated and all textures are now 16x16 pixels.
Last edited by kosmonautik on Sun Dec 31, 2017 08:23, edited 1 time in total.

Chem871
Member
Posts: 999
Joined: Sat Aug 19, 2017 21:49
GitHub: Chemguy99
In-game: Chem Nyx
Location: My Basement's Attic

Re: [Mod] Toolsredo [toolsredo]

by Chem871 » Post

That image that shows the crystal ores, what setting lets you have stone embossed like that?
What is SCP-055?

kosmonautik
Member
Posts: 30
Joined: Fri Jun 24, 2016 10:40
In-game: kosmonautik
Location: Czech Republic
Contact:

Re: [Mod] Toolsredo [toolsredo]

by kosmonautik » Post

Chem871 wrote:That image that shows the crystal ores, what setting lets you have stone embossed like that?
That's quite simple. It's just an texture option for the node. I made a texture with that pattern and wrote this to init.lua:

Code: Select all

tiles = {'default_stone.png^toolsredo_ore_ruby.png'},
The default_stone.png is the stone texture and the second one is that which i made. And I did so with each other ore (I used their textures, of course.)

User avatar
Lone_Wolf
Member
Posts: 2578
Joined: Sun Apr 09, 2017 05:50
GitHub: LoneWolfHT
IRC: LandarVargan
In-game: LandarVargan

Re: [Mod] Toolsredo [toolsredo]

by Lone_Wolf » Post

Looks great!
May I suggest you use https://github.com/ ? It makes managing code a lot simpler
My ContentDB -|- Working on CaptureTheFlag -|- Minetest Forums Dark Theme!! (You need it)

Chem871
Member
Posts: 999
Joined: Sat Aug 19, 2017 21:49
GitHub: Chemguy99
In-game: Chem Nyx
Location: My Basement's Attic

Re: [Mod] Toolsredo [toolsredo]

by Chem871 » Post

No, not the putting one texture over another, I meant, how did you make the stone look embossed?
What is SCP-055?

whitephoenix
Member
Posts: 19
Joined: Sun Jun 26, 2016 22:43

Re: [Mod] Toolsredo [toolsredo]

by whitephoenix » Post

Chem871 wrote:No, not the putting one texture over another, I meant, how did you make the stone look embossed?
It's a shader in settings.

I shaded the ore textures so they match the gems a bit better. Please put your project on github and add a license.
Image
Attachments
new_textures.zip
(2.5 KiB) Downloaded 82 times

kosmonautik
Member
Posts: 30
Joined: Fri Jun 24, 2016 10:40
In-game: kosmonautik
Location: Czech Republic
Contact:

Re: [Mod] Toolsredo [toolsredo]

by kosmonautik » Post

Lone_Wolf wrote:Looks great!
May I suggest you use https://github.com/ ? It makes managing code a lot simpler
Yes, I looked at default mods.

Post Reply

Who is online

Users browsing this forum: No registered users and 36 guests