[Mod] Toolsredo [toolsredo]

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

[Mod] Toolsredo [toolsredo]

by kosmonautik » Thu Apr 13, 2017 06:49

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/Toolsredo/archive/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: 28
Joined: Fri Jun 24, 2016 10:40
Location: Czech Republic
In-game: kosmonautik

Re: Tools redo mod for minetest [toolsredo]

by kosmonautik » Thu Apr 13, 2017 06:55

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: 28
Joined: Fri Jun 24, 2016 10:40
Location: Czech Republic
In-game: kosmonautik

Re: Tools redo mod for minetest [toolsredo]

by kosmonautik » Thu Apr 13, 2017 11:39

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: 1984
Joined: Sun Apr 09, 2017 05:50
Location: Hopefully very far from yours, snoop :P
GitHub: LoneWolfHT
IRC: Lone_Wolf
In-game: Lone_Wolf

Re: Tools redo mod for minetest [toolsredo]

by Lone_Wolf » Mon Apr 17, 2017 21:25

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)
 

User avatar
Lone_Wolf
Member
 
Posts: 1984
Joined: Sun Apr 09, 2017 05:50
Location: Hopefully very far from yours, snoop :P
GitHub: LoneWolfHT
IRC: Lone_Wolf
In-game: Lone_Wolf
 

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

Re: Tools redo mod for minetest [toolsredo]

by kosmonautik » Thu Apr 20, 2017 05:45

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: 1984
Joined: Sun Apr 09, 2017 05:50
Location: Hopefully very far from yours, snoop :P
GitHub: LoneWolfHT
IRC: Lone_Wolf
In-game: Lone_Wolf

Re: Tools redo mod for minetest [toolsredo]

by Lone_Wolf » Thu Apr 20, 2017 06:16

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

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

User avatar
Lone_Wolf
Member
 
Posts: 1984
Joined: Sun Apr 09, 2017 05:50
Location: Hopefully very far from yours, snoop :P
GitHub: LoneWolfHT
IRC: Lone_Wolf
In-game: Lone_Wolf

Re: Tools redo mod for minetest [toolsredo]

by Lone_Wolf » Thu Apr 20, 2017 16:13

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?
 

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

Re: Tools redo mod for minetest [toolsredo]

by Byakuren » Thu Apr 20, 2017 17:07

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: 1984
Joined: Sun Apr 09, 2017 05:50
Location: Hopefully very far from yours, snoop :P
GitHub: LoneWolfHT
IRC: Lone_Wolf
In-game: Lone_Wolf

Re: Tools redo mod for minetest [toolsredo]

by Lone_Wolf » Thu Apr 20, 2017 19:12

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
 

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

Re: Tools redo mod for minetest [toolsredo]

by azekill_DIABLO » Sun Apr 23, 2017 12:03

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

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

Re: Tools redo mod for minetest [toolsredo]

by kosmonautik » Thu Dec 28, 2017 20:33

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: 1984
Joined: Sun Apr 09, 2017 05:50
Location: Hopefully very far from yours, snoop :P
GitHub: LoneWolfHT
IRC: Lone_Wolf
In-game: Lone_Wolf

Re: Tools redo mod for minetest [toolsredo]

by Lone_Wolf » Fri Dec 29, 2017 01:52

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,

   })
 

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

Re: Tools redo mod for minetest [toolsredo]

by kosmonautik » Fri Dec 29, 2017 07:58

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: 871
Joined: Sat Aug 19, 2017 21:49
Location: SCP-2935
GitHub: Chemguy99
In-game: Nyx Serris

Re: Toolsredo mod for minetest [toolsredo]

by Chem871 » Fri Dec 29, 2017 15:33

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

User avatar
Lone_Wolf
Member
 
Posts: 1984
Joined: Sun Apr 09, 2017 05:50
Location: Hopefully very far from yours, snoop :P
GitHub: LoneWolfHT
IRC: Lone_Wolf
In-game: Lone_Wolf

Re: Tools redo mod for minetest [toolsredo]

by Lone_Wolf » Fri Dec 29, 2017 16:49

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.
 

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

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

Re: Tools redo mod for minetest [toolsredo]

by kosmonautik » Sat Dec 30, 2017 14:04

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: 871
Joined: Sat Aug 19, 2017 21:49
Location: SCP-2935
GitHub: Chemguy99
In-game: Nyx Serris

Re: [Mod] Toolsredo [toolsredo]

by Chem871 » Sat Dec 30, 2017 14:51

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

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

Re: [Mod] Toolsredo [toolsredo]

by kosmonautik » Sat Dec 30, 2017 16:48

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: 1984
Joined: Sun Apr 09, 2017 05:50
Location: Hopefully very far from yours, snoop :P
GitHub: LoneWolfHT
IRC: Lone_Wolf
In-game: Lone_Wolf

Re: [Mod] Toolsredo [toolsredo]

by Lone_Wolf » Sat Dec 30, 2017 17:33

Looks great!
May I suggest you use https://github.com/ ? It makes managing code a lot simpler
 

Chem871
Member
 
Posts: 871
Joined: Sat Aug 19, 2017 21:49
Location: SCP-2935
GitHub: Chemguy99
In-game: Nyx Serris

Re: [Mod] Toolsredo [toolsredo]

by Chem871 » Sat Dec 30, 2017 17:47

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

User avatar
whitephoenix
Member
 
Posts: 19
Joined: Sun Jun 26, 2016 22:43
GitHub: whitephoenix0
IRC: whitephoenix
In-game: whitephoenix

Re: [Mod] Toolsredo [toolsredo]

by whitephoenix » Sat Dec 30, 2017 18:03

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 11 times
 

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

Re: [Mod] Toolsredo [toolsredo]

by kosmonautik » Sat Dec 30, 2017 19:13

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.
 

Next

Return to Mod Releases



Who is online

Users browsing this forum: Bing [Bot] and 8 guests