Page 1 of 1

[Mod] Alchemy [alchemy]

PostPosted: Sat May 28, 2016 20:36
by manawy
This mod provides the bare necessities to create an alchemy lab. A few items with interesting effects are defined. Alchemy is a complex and difficult art, you shouldn't try it if you are scared of getting injured ! (I said it was interesting)

The mode defines nodes which can transform reactants into products. Two such nodes are currently defined : the powder grinder and the potion mixer.

Powder grinder

The mortar grind the reactants into powders, These powders are used as reactants in the other machines.

The grinder is crafted following this recipe :
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
{
    {steel ingot, steel ingot, steel ingot}
    {steel ingot, diamond    , steel ingot}
    {cobblestone, cobblestone, cobblestone}
}

Potion mixer

This machine mixes two powders into a solution. To be successful, an empty tube and a bucket of water must also be available. Alchemy is a complex and difficult art ! The process is not always successful. The potion mixer yields 2, 1 (most common) or 0 potion for each try. In rare cases, the reaction gets out of control and explodes ! The explosion damages the users near the machine. A secret catalyser can help avoid the explosion. But if the wrong catalyser is used, it will increase the damage !

The mixer is crafted following this recipe :
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
{
    {copper ingot, glass      , copper ingot}
    {glass       , glass      , glass}
    {cobblestone , cobblestone, cobblestone}
}


Powders

The powders are secondary products used to make the potion. They are obtained by grinding other craftitems. The following recipes are accepted :


  • Blue geranium : blue powder
  • Rose : red powder
  • Grass : green powder
  • Red mushroom : firebrick powder

Potions

The potions are mixed in the potion mixer. The following recipes are accepted :

  • red + white powder : health potion (+10 hp)
  • blue + white powder : breath potion (restore breath)
  • firebrick + blue powder : poison (instant kill)

(note : red + white is not the same as white + red).

Items

Currently, the mod define only one ordinary craftitem : the smelly apple. It is crafted using a poison potion and an apple. Eating the smelly apple removes 10 hp.
For even more fun, the smelly apple looks like an ordinary apple :-) .

About

The code is under the license WFTPL. Patches and ideas are welcome.

I wanted to test lua as a scripting language. This is my first mod and my first script with lua. If you want to comment about the ugliness of the code, please do !

If you don't feel like having stuff exploding in your face, the damage process/item/functions are tagged with "lol" for a quick search in the code.... :-). Additional recipes can also be added quite easily (look at mixer.lua and grinder.lua)

The code can be browsed here : https://bitbucket.org/fabieng/alchemy_mod/overview

Todo

  • Transmutation device to transform coal into gold, and copper into diamond.
  • Better textures (They are ugly, contributions are welcome !)
  • more recipes

Have fun

Edit : grammar

Re: [Mod] Alchemy [alchemy]

PostPosted: Sat May 28, 2016 21:34
by TumeniNodes
Looks pretty cool. I was interested in alchemy as a teen... seems like this might be a fun mode with lots of options in the future which could be added
There are a few talented pixel artists around here who will probably be able to help you with textures, I know someone posted in the textures section they are willing to help people with graphics.

I'm sorry, it was in the mods section actually :D
https://forum.minetest.net/viewtopic.php?f=47&t=14740

Re: [Mod] Alchemy [alchemy]

PostPosted: Sat May 28, 2016 22:51
by swordpaint12
+1 looks cool.

Re: [Mod] Alchemy [alchemy]

PostPosted: Sun May 29, 2016 14:47
by Nathan.S
This looks really interesting, I'll have to try it out.
Any chance you might put it on Github?

Re: [Mod] Alchemy [alchemy]

PostPosted: Sun May 29, 2016 17:32
by manawy
Glad you like the idea.

TumeniNodes wrote: There are a few talented pixel artists around here who will probably be able to help you with textures, I know someone posted in the textures section they are willing to help people with graphics.


Thanks for the information

Nathan.S wrote:Any chance you might put it on Github?


Not by me, it's already available on bitbucket as a git repo : https://bitbucket.org/fabieng/alchemy_mod/overview