Content: Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
Background: Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
Pattern: Blank Waves Notes Sharp Wood Rockface Leather Honey Vertical Triangles
Welcome to TerraFirmaCraft Forums

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.

  • Announcements

    • Dries007

      ATTENTION Forum Database Breach   03/04/2019

      There has been a breach of our database. Please make sure you change your password (use a password manager, like Lastpass).
      If you used this password anywhere else, change that too! The passwords themselves are stored hashed, but may old accounts still had old, insecure (by today's standards) hashes from back when they where created. This means they can be "cracked" more easily. Other leaked information includes: email, IP, account name.
      I'm trying my best to find out more and keep everyone up to date. Discord (http://invite.gg/TerraFirmaCraft) is the best option for up to date news and questions. I'm sorry for this, but the damage has been done. All I can do is try to make sure it doesn't happen again.
    • Claycorp

      This forum is now READ ONLY!   01/20/2020

      As of this post and forever into the future this forum has been put into READ ONLY MODE. There will be no new posts! A replacement is coming SoonTM . If you wish to stay up-to-date on whats going on or post your content. Please use the Discord or Sub-Reddit until the new forums are running.

      Any questions or comments can be directed to Claycorp on either platform.
ciekma

minetweaker MT Scripts for potions in TFC

24 posts in this topic

Thanks to the recent TFC update  and JaWolfe mod for Minetweaker compatibility for TFC I can present Minecraft scripts for crafting potions in TerraFirmaCraft.

Instead of brewing stand (which is not craftable due to lack of blaze rod, even if craftable, there is no components for brewing and due to lack of API, there is no minetweaker support for brewing recipes), with use of Minetweaker scripts, you can make potions from berries and beverages (positive effect potions) and mushrooms, spider eyes, rotten flesh macerated in vinegar (negative effect potions).  Splash potions can be created by melting bottleneck in firepit.

Only first tier of potions can be created this way (the one exception are healing/regenering potions). Extended/improved potions can be created with use of brewing stand, if Blazes are spawned by means of any external mod. They are too powerful to be created only from TFC items.

Glowstone can be grinded from pitchblende, fermented spider eye by sealing spider eye in vessel/barrel with water, awkward potion by sealing full stack of brown mushrooms in vinegar.

 

Prerequisites:

TFC 0.79.29 (previous versions have very weak negative potions)

MineTweaker 3.0.10B for Minecraft 1.7.10

[TFC 0.79.28] TFC Tweaker - Minetweaker compatibility for TFC

Now you can create potions.zs into .minecraft/scripts directory:

 

Spoiler

//content of potions.zs file

val awkward_potion 	= <minecraft:potion:16>;
val potion_slowness 	= <minecraft:potion:8202>;
val splash_potion_slowness 	= <minecraft:potion:16394>;
val potion_posion 	= <minecraft:potion:8196>;
val splash_potion_posion 	= <minecraft:potion:16388>;
val potion_weakness 	= <minecraft:potion:8200>;
val splash_potion_weakness 	= <minecraft:potion:16392>;
val potion_harming 	= <minecraft:potion:8204>;
val splash_potion_harming 	= <minecraft:potion:16396>;
val potion_regenering 	= <minecraft:potion:8193>;
val potion_regenering_2 = <minecraft:potion:8225>;
val potion_regenering_extended = <minecraft:potion:8257>;
val splash_potion_regenering 	= <minecraft:potion:16385>;
val potion_fireprotect 	= <minecraft:potion:8195>;
val splash_potion_fireprotect 	= <minecraft:potion:16387>;
val potion_healing 	= <minecraft:potion:8197>; 
val potion_healing_2 	= <minecraft:potion:8229>;
val splash_potion_healing 	= <minecraft:potion:16389>;
val potion_swiftness 	= <minecraft:potion:8194>;
val splash_potion_swiftness 	= <minecraft:potion:16386>;
val potion_nightvision 	= <minecraft:potion:8198>;
val splash_potion_nightvision 	= <minecraft:potion:16390>;
val potion_strength 	= <minecraft:potion:8201>;
val splash_potion_strength 	= <minecraft:potion:16393>;
val potion_waterbreath 	= <minecraft:potion:8205>;
val splash_potion_waterbreath 	= <minecraft:potion:16397>;
val potion_invisible 	= <minecraft:potion:8206>;
val splash_potion_invisible 	= <minecraft:potion:16398>;

val poppy = <terrafirmacraft:Flowers2>;
val allium = <terrafirmacraft:Flowers2:2>;
val calendula = <terrafirmacraft:Flowers:5>;

//heat up to melt bottleneck and achieve splashable potion
mods.Terrafirmacraft.ItemHeat.addRecipe(splash_potion_slowness, potion_slowness, 400, 1);
mods.Terrafirmacraft.ItemHeat.addRecipe(splash_potion_posion, potion_posion, 400, 1);
mods.Terrafirmacraft.ItemHeat.addRecipe(splash_potion_weakness, potion_weakness, 400, 1);
mods.Terrafirmacraft.ItemHeat.addRecipe(splash_potion_harming, potion_harming, 400, 1);
mods.Terrafirmacraft.ItemHeat.addRecipe(splash_potion_regenering, potion_regenering, 200, 1);
mods.Terrafirmacraft.ItemHeat.addRecipe(splash_potion_fireprotect, potion_fireprotect, 200, 1);
mods.Terrafirmacraft.ItemHeat.addRecipe(splash_potion_healing, potion_healing, 200, 1);
mods.Terrafirmacraft.ItemHeat.addRecipe(splash_potion_swiftness, potion_swiftness, 200, 1);
mods.Terrafirmacraft.ItemHeat.addRecipe(splash_potion_nightvision, potion_nightvision, 200, 1);
mods.Terrafirmacraft.ItemHeat.addRecipe(splash_potion_strength, potion_strength, 200, 1);
mods.Terrafirmacraft.ItemHeat.addRecipe(splash_potion_waterbreath, potion_waterbreath, 200, 1);
mods.Terrafirmacraft.ItemHeat.addRecipe(splash_potion_invisible, potion_invisible, 200, 1);

//fermented spider eye
mods.Terrafirmacraft.Barrel.addItemFluidConversion(<minecraft:fermented_spider_eye>, <liquid:freshwater> * 1000, <minecraft:spider_eye>, <liquid:freshwater> * 2000, 0, true, 48, true);

//base potion (neutral)
mods.Terrafirmacraft.Barrel.addItemConversion(awkward_potion, <terrafirmacraft:Fungi:0> * 32, <liquid:vinegar> * 1000, 0, true, 48, false);

//negative effects
mods.Terrafirmacraft.Barrel.addItemConversion(potion_slowness, <minecraft:rotten_flesh> * 64, <liquid:vinegar> * 1000, 0, true, 24, true);
mods.Terrafirmacraft.Barrel.addItemConversion(potion_weakness, <terrafirmacraft:Fungi:1> * 32, <liquid:vinegar> * 1000, 0, true, 24, false);
recipes.addShapeless(potion_posion, [awkward_potion, poppy, <terrafirmacraft:Fungi:1>, <minecraft:glowstone_dust>]);
recipes.addShapeless(potion_harming * 2, [awkward_potion, <minecraft:fermented_spider_eye>, potion_weakness, <minecraft:redstone>]);

//healing potions
recipes.addShapeless(potion_regenering * 3, [<terrafirmacraft:item.Rye Whiskey>, <terrafirmacraft:item.Rye Whiskey>, <terrafirmacraft:item.Wintergreen Berry>.onlyWithTag({foodWeight: 160.0 as float}), <terrafirmacraft:item.Rye Whiskey>]);
recipes.addShapeless(potion_healing * 3, [<terrafirmacraft:item.Rum>, <terrafirmacraft:item.Rum>, <terrafirmacraft:item.Bunchberry>.onlyWithTag({foodWeight: 160.0 as float}), <terrafirmacraft:item.Rum>]);

recipes.addShapeless(potion_regenering_2, [potion_regenering, allium,  <minecraft:glowstone_dust>]);
recipes.addShapeless(potion_regenering_extended, [potion_regenering, <terrafirmacraft:item.Garlic>.onlyWithTag({foodWeight: 160.0 as float}),  <minecraft:redstone>]);
recipes.addShapeless(potion_healing_2, [potion_healing, calendula, <minecraft:glowstone_dust>]);

//protection potions
mods.Terrafirmacraft.Barrel.addItemConversion(potion_fireprotect, <terrafirmacraft:item.Snowberry>.withTag({foodWeight: 160.0 as float}), <liquid:oliveoil> * 250, 0, true, 24, false);

//powerup potions
recipes.addShapeless(potion_swiftness, [<terrafirmacraft:item.Sake>, <terrafirmacraft:item.Cloudberry>.onlyWithTag({foodWeight: 160.0 as float}), <terrafirmacraft:item.Powder:6>, <minecraft:redstone>]);

recipes.addShapeless(potion_nightvision, [<terrafirmacraft:item.Sake>, <terrafirmacraft:item.Blueberry>.onlyWithTag({foodWeight: 160.0 as float}), <terrafirmacraft:item.Powder:6>, <minecraft:spider_eye>]);

recipes.addShapeless(potion_strength, [<terrafirmacraft:item.Vodka>, <terrafirmacraft:item.Cranberry>.onlyWithTag({foodWeight: 160.0 as float}), <minecraft:redstone>, <terrafirmacraft:item.Sugar>.withTag({foodWeight: 160.0 as float})]);

recipes.addShapeless(potion_waterbreath, [<terrafirmacraft:item.Sake>, <terrafirmacraft:item.Elderberry>.withTag({foodWeight: 160.0 as float}), <terrafirmacraft:item.Powder:6>, <minecraft:glowstone_dust>]);

recipes.addShapeless(potion_invisible, [<terrafirmacraft:item.Sake>, <terrafirmacraft:item.Blackberry>.onlyWithTag({foodWeight: 160.0 as float}), <minecraft:ender_eye>, <minecraft:glowstone_dust>]);


mods.Terrafirmacraft.Quern.addRecipe(<minecraft:glowstone_dust>, <terrafirmacraft:item.Ore:26>); //from pitchblende

 

 

I managed to use items, which are hard to achieve (full stack of berries is required for crafting) or are not renewable (mushrooms) .

There are following potions groups:

positive effects - healing, needs Rye Whiskey and Wintergreen Berry, regeneration - needs Rum and Bunchberry, these are weak potions and therefore full stack of berries produce 3 potions; Tier 2 potions need additional ingredients.

positive effects - fire protection, after macerating full stack of Snowberries in Olive Oil;

positive effects: powerups - swiftness, night vision, strength and water breath - needs beverages, berries and additional more or less magical components like redstone or glowstone.

negative effects: weakness, slowness,  gained from macerating mushrooms or full stack rotten meat, respectively;

negative effects: , poison, harming,  crafted from awkward potion and other ingredients.

 

Important note - aggressive mobs, except bear, are immune on negative splash potions.

 

EDIT: feel free to use part or whole code in your modpack or other creations, it is public domain.

Edited by ciekma
update
1

Share this post


Link to post
Share on other sites
1 hour ago, ciekma said:

I managed to use items, which are hard to achieve (full stack of berries is required for crafting) or are not renewable (mushrooms) .

You do realize that mushrooms just use the vanilla spreading mechanic and are therefore renewable, right?

1

Share this post


Link to post
Share on other sites

This is all very amazing, would you mind if I used some of these scripts in TerraFirmaPunk 2.0?

0

Share this post


Link to post
Share on other sites
7 hours ago, OneWolfe said:

This is all very amazing, would you mind if I used some of these scripts in TerraFirmaPunk 2.0?

Of course, I don't care on licence stuff, everybody is free to use whole or parts of above scripts.

9 hours ago, Kittychanley said:

You do realize that mushrooms just use the vanilla spreading mechanic and are therefore renewable, right?

Honestly, I didn't knew about these mechanics, never paid attention to mushrooms, even in nether. And what about flowers? Did they respawn each spring (I observed them in winter, so maybe they spawn once). Poppy is good candidate for poison potion.

1

Share this post


Link to post
Share on other sites

In just vanilla TFC, flowers are non-renewable. Other mods might add in the ability to use bonemeal to get more though.

0

Share this post


Link to post
Share on other sites

I updated above script. The most powerful potions - poison and harming, were harder to achieve - first awkward neutral potion must be created by macerating brown mushrooms in vinegar, then it must be mixed with poppy flower, red mushroom and glowstone dust in case of poison, or weakness potion, fermented spider eye adn redstone, in case of harming potion.

I added also higher tiers of healing/regeneration potions, to balance their relatively weak impact. Alium, garlic or calendula, known from their medical uses, are needed for improved healing/regeneration potions.

1

Share this post


Link to post
Share on other sites

This is amazing! Will you add it in TerraFirmaProgressivePack ?

0

Share this post


Link to post
Share on other sites
33 minutes ago, Leo05 said:

This is amazing! Will you add it in TerraFirmaProgressivePack ?

Of course (together with rewrited glass works), initially it was supposed to be part of TFPP, but I decided to work on this part separately to have a clear view.

0

Share this post


Link to post
Share on other sites

I really like the ideas here for the potions, currently working on a conversion addon that uses a lot of potions and brewing, would you mind if I used some of your ideas and recipes?

1

Share this post


Link to post
Share on other sites
2 hours ago, Powerman913717 said:

I really like the ideas here for the potions, currently working on a conversion addon that uses a lot of potions and brewing, would you mind if I used some of your ideas and recipes?

Of course, as I answered to OneWolfe, everybody can use it.

I updated first post with permissions stuff.

1

Share this post


Link to post
Share on other sites

I'm very happy that you added uses for flowers, pitchblende,spider eye , rotten flesh and more uses for berries. And also the healing and regeneration potions are very useful. :D Thank you a lot for this great script!

0

Share this post


Link to post
Share on other sites

Do you realize that your using a highly flammable liquid as a base for your Fire Protection Potion?

0

Share this post


Link to post
Share on other sites

Well, assume that it is protection against burns from IR radiation, not fire itself.

0

Share this post


Link to post
Share on other sites

In my pack I have access to alot more liquids that normal TFC so I am reworking most of these recipes. Will send you a link shortly to see what you think.

 

EDIT: Here is the MT script I have come up with so far. Potions-TFC.zs

Edited by OneWolfe
0

Share this post


Link to post
Share on other sites

Interesting. Are you using Tabula Rasa for defining new fluids?

0

Share this post


Link to post
Share on other sites

Those are liquids from various mods in the TFP pack. However, he doesn't need Tabula Rasa when he has someone that can code in anything he might want. ;)

1

Share this post


Link to post
Share on other sites

hey bro can you help out . i downloaded your potion script and i cant seem to get the awkward potions created . i tried like how you said a full 32 stack in a barrel of vinegar and nothing happens . i tried a variation of how much mushrooms , what type , how much vinegar but no luck.

0

Share this post


Link to post
Share on other sites
1 hour ago, kravopiez said:

hey bro can you help out . i downloaded your potion script and i cant seem to get the awkward potions created . i tried like how you said a full 32 stack in a barrel of vinegar and nothing happens . i tried a variation of how much mushrooms , what type , how much vinegar but no luck.

It is working fine for me, full stack of mushrooms and at least 1 bucket of vinegar should give bottle of potion after 24 hours.

Are you using any modpack? Maybe something interfere?

0

Share this post


Link to post
Share on other sites

trying it with a few tfc addons only 

Cooking with tfc ( i suspect it maybe be the culprit since it adds mushrooms as run of the mill vegetables that you can eat) 

TFC additions

terrafirmastuff

terraMisc 

TFCCellars

TFC tweaks

hmm would it get fixed if in the script i replace the mushrooms with something else?

 

0

Share this post


Link to post
Share on other sites

Yes, it can be issue with TFCcooking, replace mushrooms with flowers or something safe.

0

Share this post


Link to post
Share on other sites

thx mate . it worked like a charm .  btw are the potions scaled up to TFC standarts?

0

Share this post


Link to post
Share on other sites
4 minutes ago, kravopiez said:

thx mate . it worked like a charm .  btw are the potions scaled up to TFC standarts?

Sorry about the barrels being picky, I need to fix that in the future. I do not recall anyone making a mod to bring potions up to TFC levels but I could have missed it.

0

Share this post


Link to post
Share on other sites

Nope. I think we've just done it in our respective tweak mods for packs.

0

Share this post


Link to post
Share on other sites
11 hours ago, kravopiez said:

thx mate . it worked like a charm .  btw are the potions scaled up to TFC standarts?

Harm potion are scaled, regeneration/health potions are not: http://terrafirmacraft.com/f/change_log.html/

Therefore one should consider better balance between them, harm potions should be more expensive/harder to obtain. In my TFPP modpack I actually changed it, harm potions need glowstone from pitchblende, which is rare mineral, whereas healing potions need only some berries, beverages and base potion.

0

Share this post


Link to post
Share on other sites