[Mod] Alchemy [alchemy]
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 :
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 :
Powders
The powders are secondary products used to make the potion. They are obtained by grinding other craftitems. The following recipes are accepted :
Potions
The potions are mixed in the potion mixer. The following recipes are accepted :
(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
Have fun
Edit : grammar
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