[mod] Zero-Effort Custom Minerals [instant_ores]

User avatar
Piezo_
Member
 
Posts: 217
Joined: Fri Jul 20, 2018 21:36
Location: a steaming pile of JoJokes
GitHub: is proprietary I use NotABug
In-game: Piezo_ or TheRealPiezo_

[mod] Zero-Effort Custom Minerals [instant_ores]

by Piezo_ » Wed Jan 09, 2019 06:14

I'm lazy.

I don't like writing out lots of code, especially the amount required to create a new ore, and I really don't like doing all of the math that's also required to balance the speed, strength, etc. of a new material.

Calinou may have made moreores to partially simplify things for those of us who are mildly lazy, but I'm not mildly lazy, I'm extremely lazy.

I am the absolute embodiment of sloth! I want making an entire mineral to be as easy as if I were registering a simple node!
So, for those of you who are as lazy as me, I present instant_ores.
Image

Now, you can have all the ores you desire, with as few lines of code as possible, using the power of dark magic (hacky, questionably sane code and terrible math).
It's as easy as instant_ores.register_metal(definition table) (or instant_ores.register_crystal, if you prefer).

So, next time you're making a mod with ores in it, why do things the hard way? Don't resist the temptation. It's not 'cheating'. If they judge you, they're just jealous. Come on, download it. You know you want to......give me your soul!

Technical details
License: GPLV3+ for code, various Creative Commons licenses for textures.
Depends: default
Optional: farming
while (true) { suffer(); }
 

BuckarooBanzay
Member
 
Posts: 190
Joined: Tue Apr 24, 2018 05:58
Location: Switzerland
GitHub: thomasrudin-mt
In-game: BuckarooBanzai

Re: [mod] Zero-Effort Custom Minerals [instant_ores]

by BuckarooBanzay » Wed Jan 09, 2019 07:28

I really like your mod descriptions :)

For the next stage of lazyness: how about default values?
 

User avatar
Piezo_
Member
 
Posts: 217
Joined: Fri Jul 20, 2018 21:36
Location: a steaming pile of JoJokes
GitHub: is proprietary I use NotABug
In-game: Piezo_ or TheRealPiezo_

Re: [mod] Zero-Effort Custom Minerals [instant_ores]

by Piezo_ » Wed Jan 09, 2019 07:56

BuckarooBanzay wrote:I really like your mod descriptions :)

For the next stage of lazyness: how about default values?


Oh, we've got those. The absolute minimum you have to specify is a name and a color (and a description, unless you don't mind your material being called "Terribly Programmed Ingot").
while (true) { suffer(); }
 

User avatar
Pyrollo
Member
 
Posts: 254
Joined: Mon Jan 08, 2018 15:14
Location: Paris
GitHub: pyrollo
In-game: Naj

Re: [mod] Zero-Effort Custom Minerals [instant_ores]

by Pyrollo » Wed Jan 09, 2019 09:52

BuckarooBanzay wrote:I really like your mod descriptions :)

For the next stage of lazyness: how about default values?


I propose a improvement: a mod that chooses new ores ramdomly so you don't even have make effort for that.
[ Display Modpack ] - [ Digiterms ] - [ Crater MG ] - [ LATE ]
 

User avatar
davidthecreator
Member
 
Posts: 294
Joined: Mon Aug 18, 2014 19:48
Location: Lithuania
GitHub: daviddoesminetest
In-game: DavidDoesMinetest

Re: [mod] Zero-Effort Custom Minerals [instant_ores]

by davidthecreator » Wed Jan 09, 2019 15:17

> too lazy to register something as simple as ores with some basic uses for them the classical way

> Makes an advanced ore registration system, that was probably extremelly hard to make


+11
 

User avatar
Piezo_
Member
 
Posts: 217
Joined: Fri Jul 20, 2018 21:36
Location: a steaming pile of JoJokes
GitHub: is proprietary I use NotABug
In-game: Piezo_ or TheRealPiezo_

Re: [mod] Zero-Effort Custom Minerals [instant_ores]

by Piezo_ » Wed Jan 09, 2019 22:42

Pyrollo wrote:I propose a improvement: a mod that chooses new ores ramdomly so you don't even have make effort for that.


Ok, now you've got me really thinking:

A couple of ores created based on the map seed, using perlin noise.

Each world would truly be unique, then!

I could probably do it, but in a different mod that depended on this one.

I'm tempted. Should I?
while (true) { suffer(); }
 

User avatar
v-rob
Member
 
Posts: 611
Joined: Thu Mar 24, 2016 03:19
Location: Right behind you.
GitHub: v-rob

Re: [mod] Zero-Effort Custom Minerals [instant_ores]

by v-rob » Wed Jan 09, 2019 23:12

Piezo_ wrote:I'm tempted. Should I?


It all depends. How lazy do you feel?
 

User avatar
Piezo_
Member
 
Posts: 217
Joined: Fri Jul 20, 2018 21:36
Location: a steaming pile of JoJokes
GitHub: is proprietary I use NotABug
In-game: Piezo_ or TheRealPiezo_

Re: [mod] Zero-Effort Custom Minerals [instant_ores]

by Piezo_ » Wed Jan 09, 2019 23:30

v-rob wrote:
Piezo_ wrote:I'm tempted. Should I?


It all depends. How lazy do you feel?


Actually, the biggest issue would be if minetest.get_perlin doesn't work properly during the initialization phase.
I'll have to try to find out.
while (true) { suffer(); }
 

User avatar
texmex
Member
 
Posts: 1248
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: texmex

Re: [mod] Zero-Effort Custom Minerals [instant_ores]

by texmex » Thu Jan 10, 2019 02:59

Piezo_ wrote:A couple of ores created based on the map seed, using perlin noise.

Yes please!
 

User avatar
Piezo_
Member
 
Posts: 217
Joined: Fri Jul 20, 2018 21:36
Location: a steaming pile of JoJokes
GitHub: is proprietary I use NotABug
In-game: Piezo_ or TheRealPiezo_

Re: [mod] Zero-Effort Custom Minerals [instant_ores]

by Piezo_ » Thu Jan 10, 2019 03:28

texmex wrote:
Piezo_ wrote:A couple of ores created based on the map seed, using perlin noise.

Yes please!

Alright, I guess I have no excuse to just sit around and not do this any more.

*Piezo_ opens mousepad
while (true) { suffer(); }
 

User avatar
Piezo_
Member
 
Posts: 217
Joined: Fri Jul 20, 2018 21:36
Location: a steaming pile of JoJokes
GitHub: is proprietary I use NotABug
In-game: Piezo_ or TheRealPiezo_

Re: [mod] Zero-Effort Custom Minerals [instant_ores]

by Piezo_ » Thu Jan 10, 2019 07:18

So, I've almost finished unique_ores, that adds 2 ores which are unique to every map.

Is 2 enough?
while (true) { suffer(); }
 

User avatar
Pyrollo
Member
 
Posts: 254
Joined: Mon Jan 08, 2018 15:14
Location: Paris
GitHub: pyrollo
In-game: Naj

Re: [mod] Zero-Effort Custom Minerals [instant_ores]

by Pyrollo » Thu Jan 10, 2019 07:30

Piezo_ wrote:Is 2 enough?


I think you have been too lazy :p
[ Display Modpack ] - [ Digiterms ] - [ Crater MG ] - [ LATE ]
 

User avatar
Piezo_
Member
 
Posts: 217
Joined: Fri Jul 20, 2018 21:36
Location: a steaming pile of JoJokes
GitHub: is proprietary I use NotABug
In-game: Piezo_ or TheRealPiezo_

Re: [mod] Zero-Effort Custom Minerals [instant_ores]

by Piezo_ » Thu Jan 10, 2019 08:05

Pyrollo wrote:
Piezo_ wrote:Is 2 enough?


I think you have been too lazy :p

Too late, it's already here.
while (true) { suffer(); }
 

User avatar
Piezo_
Member
 
Posts: 217
Joined: Fri Jul 20, 2018 21:36
Location: a steaming pile of JoJokes
GitHub: is proprietary I use NotABug
In-game: Piezo_ or TheRealPiezo_

Re: [mod] Zero-Effort Custom Minerals [instant_ores]

by Piezo_ » Sun Jan 27, 2019 07:40

Update

I just learned about the level group, and have put it to use allowing for minerals to properly have hardness above 3
while (true) { suffer(); }
 

User avatar
Piezo_
Member
 
Posts: 217
Joined: Fri Jul 20, 2018 21:36
Location: a steaming pile of JoJokes
GitHub: is proprietary I use NotABug
In-game: Piezo_ or TheRealPiezo_

Re: [mod] Zero-Effort Custom Minerals [instant_ores]

by Piezo_ » Tue Mar 05, 2019 01:05

Update
  • Added 3d_armor and shields support
  • Changed tool groups to the new standard (see topic: viewtopic.php?f=5&t=22075)
  • Added options to disable armor or tools in mineral definitions
while (true) { suffer(); }
 


Return to WIP Mods



Who is online

Users browsing this forum: No registered users and 7 guests