Page 1 of 1

[Mod] Encrustable Gems [gems]

Posted: Sun Jul 29, 2012 00:20
by wowiamdiamonds
Adds gems to the game. Gems are found deep underground and can be encrusted into certain tools to make faster and more durable variants.

Depends: default, moreores
License: WTFPL for code and textures
Download: https://github.com/wowiamdiamonds/gems/zipball/master
...or look at the code here: https://github.com/wowiamdiamonds/gems

garnet, aquamarine, topaz, diamond, opal (left to right):
Image

crafting recipe:
Image
  • Garnet (+5% speed, +5% durability, spawns starting at -64)
  • Aquamarine (+5% speed, +10% durability, spawns starting at -128)
  • Topaz (+15% speed, +5% durability, spawns starting at -256)
  • Diamond (+10% speed, +15% durability, spawns starting at -512)
  • Opal (+35% speed, -10% durability, spawns starting at -1024)
Encrustable tools: steel, gold, and mithril, (gold and mithril are from moreores).

After some bug testing, I want to make a specialized furnace (fueled by mercury) that encrusts tools.

Posted: Sun Jul 29, 2012 00:55
by Topywo
I got kicked out at -395:

02:47:26: ERROR[EmergeThread]: PseudoRandom.next(): max=-514 min=-512
02:47:26: INFO[EmergeThread]: on_generated took 639ms
02:47:26: ERROR[EmergeThread]: ERROR: An unhandled exception occurred: LuaError: PseudoRandom.next(): max < min
02:47:26: ERROR[EmergeThread]: stack traceback:
02:47:26: ERROR[EmergeThread]: [C]: in function 'next'
02:47:26: ERROR[EmergeThread]: ...st-d38b465_test 3/bin/../mods/minetest/gems/init.lua:212: in function 'generate_ore'
02:47:26: ERROR[EmergeThread]: ...st-d38b465_test 3/bin/../mods/minetest/gems/init.lua:247: in function <...st-d38b465_test 3/bin/../mods/minetest/gems/init.lua:237>

Maybe the init.lua of the most recent moreores can help you.

Nice mod, don't worry about the textures, they're not bad. The structure of the lumps looks good.

Posted: Sun Jul 29, 2012 03:49
by Josh
Looks nice!

Posted: Sun Jul 29, 2012 04:17
by cornernote
+1 awesome!

Posted: Sun Jul 29, 2012 05:53
by wowiamdiamonds
Topywo wrote:I got kicked out at -395:

02:47:26: ERROR[EmergeThread]: PseudoRandom.next(): max=-514 min=-512
02:47:26: INFO[EmergeThread]: on_generated took 639ms
02:47:26: ERROR[EmergeThread]: ERROR: An unhandled exception occurred: LuaError: PseudoRandom.next(): max < min
02:47:26: ERROR[EmergeThread]: stack traceback:
02:47:26: ERROR[EmergeThread]: [C]: in function 'next'
02:47:26: ERROR[EmergeThread]: ...st-d38b465_test 3/bin/../mods/minetest/gems/init.lua:212: in function 'generate_ore'
02:47:26: ERROR[EmergeThread]: ...st-d38b465_test 3/bin/../mods/minetest/gems/init.lua:247: in function <...st-d38b465_test 3/bin/../mods/minetest/gems/init.lua:237>

Maybe the init.lua of the most recent moreores can help you.

Nice mod, don't worry about the textures, they're not bad. The structure of the lumps looks good.
You're right. I'll start using the generate_ores function found in moreores. Thank you

Posted: Sun Jul 29, 2012 06:02
by Calinou
Nice idea. You should tweak opal so that it makes the tools 35% faster, but with a 10% durability loss. :)

Posted: Sun Jul 29, 2012 11:36
by RealBadAngel
Cool mod :) i got a spare diamond texture in my texture pack:
Image
wanna reserve it? :)

Posted: Sun Jul 29, 2012 13:31
by Calinou
RealBadAngel wrote:Cool mod :) i got a spare diamond texture in my texture pack:
Image
wanna reserve it? :)
...it doesn't fit the normal, 16x16 stone texture.

Posted: Sun Jul 29, 2012 14:48
by RealBadAngel
Calinou wrote:
RealBadAngel wrote:Cool mod :) i got a spare diamond texture in my texture pack:
Image
wanna reserve it? :)
...it doesn't fit the normal, 16x16 stone texture.
I said: in my texture pack. Which is 128x actually. :)

Posted: Wed Aug 01, 2012 06:30
by wowiamdiamonds
RealBadAngel wrote:Cool mod :) i got a spare diamond texture in my texture pack:
Image
wanna reserve it? :)
Sure, I'd like that :D

Updated: rebalanced the different gems so they aren't a linear progression, but each gem type is unique.

Posted: Thu Aug 02, 2012 19:51
by Topywo
No crashes with the second version ( http://minetest.net/forum/viewtopic.php ... 612#p35612 ) . Good job!

Posted: Thu Aug 02, 2012 19:57
by sfan5
Looks nice!

Posted: Thu Nov 08, 2012 02:09
by terminalerror
GloopMaster wrote:Gem setup changed to Ruby, Sapphire, Emerald, Amethyst, and Topaz. Listed in order of depth needed to dig.
The gem names sound like Pokemon games.

Posted: Sat Nov 17, 2012 15:44
by Actev8
May you consider moving opal aboth -999.5 as that's the lowest you can go

Posted: Sat Nov 17, 2012 17:26
by 0gb.us
Actev8 wrote:May you consider moving opal aboth -999.5 as that's the lowest you can go
That's only the lowest you can go when on a server that has Glomie's protect blocks (or a variant) installed. The real bottom of the game is at -30912. (The top is at 30927.)

Posted: Thu Jan 17, 2013 17:46
by axlrose08
what is the /giveme command to get topaz etc?
I'm trying to make a spawn item and the recipe requires topaz >_<

Posted: Thu Jan 17, 2013 19:09
by Topywo
axlrose08 wrote:what is the /giveme command to get topaz etc?
I'm trying to make a spawn item and the recipe requires topaz >_<
From the init.lua -just try doubleclicking it-

minetest.register_node("gems:mineral_topaz", {

So it is: /giveme gems:mineral_topaz 99

or 1, or 1000 or -1

Posted: Thu Jan 17, 2013 19:15
by LorenzoVulcan
+1

Posted: Thu Jan 17, 2013 20:51
by jojoa1997
Topywo wrote:
axlrose08 wrote:what is the /giveme command to get topaz etc?
I'm trying to make a spawn item and the recipe requires topaz >_<
From the init.lua -just try doubleclicking it-

minetest.register_node("gems:mineral_topaz", {

So it is: /giveme gems:mineral_topaz 99

or 1, or 1000 or -1
-1 gives you 1-max. max=the max number of items you could get with the giveme command