[Mod] Potions (API) and PotionsPack (Mod) [potions]

User avatar
Traxie21
Member
 
Posts: 753
Joined: Mon Dec 31, 2012 10:48
Location: McKinney, Texas U.S.A.

[Mod] Potions (API) and PotionsPack (Mod) [potions]

by Traxie21 » Wed Apr 10, 2013 19:58

Potions API/PotionsPack



This mod allows you to create custom potions with specific functions.

POTIONS: Adds api function, potions.register_potion(name, color, exptime, action, expaction)
^Contains no default potions

Downloads (Potions)
https://github.com/Traxie21/potions/archive/master.zip

Github (Potions)
https://github.com/Traxie21/potions/


POTIONSPACK: Adds some cool potions, AntiGravity, AntiGravity II, Speed, Speed II, Confusion, Inversion, and Whatwillthisdo?
^Depends on Potions

Screenshot
Image

Downloads (PotionsPack)
https://github.com/Traxie21/potionspack/archive/master.zip

Github (PotionsPack)
https://github.com/Traxie21/potionspack/

Dependencies: potions

Screenshots and video (possibly) coming in a day or 3.

License: Code/Textures: WTFPL
Last edited by Traxie21 on Wed Apr 10, 2013 21:47, edited 1 time in total.
 

User avatar
Calinou
Moderator
 
Posts: 3156
Joined: Mon Aug 01, 2011 14:26
Location: Troyes, France
GitHub: Calinou
IRC: Calinou
In-game: Calinou

by Calinou » Wed Apr 10, 2013 20:12

Idea: add a way to make nodes that give an effect (for varying amounts of time) when left or right clicked (one could make elevators this way). :D
 

User avatar
jojoa1997
Member
 
Posts: 2890
Joined: Thu Dec 13, 2012 05:11
Location: Earth

by jojoa1997 » Wed Apr 10, 2013 20:27

it doesnt work. i cant give error cause i just got segfaults but i did get that the prefix is not right. mainly because the potions pack prefix is "potionspack:" while potions/init.lua makes the prefix "potions:". from the looks of it you did not test your mod. please test it before releaseing it
Coding;
1X coding
3X debugging
12X tweaking to be just right
 

User avatar
Traxie21
Member
 
Posts: 753
Joined: Mon Dec 31, 2012 10:48
Location: McKinney, Texas U.S.A.

by Traxie21 » Wed Apr 10, 2013 21:45

I fixed that right afterwards :P
You managed to download it in the 3 minutes that elapsed between then and the fix.

EDIT: I take that back, I forgot to push to the repo.

Anyhow, screenshots added.
Last edited by Traxie21 on Wed Apr 10, 2013 21:49, edited 1 time in total.
 

User avatar
jojoa1997
Member
 
Posts: 2890
Joined: Thu Dec 13, 2012 05:11
Location: Earth

by jojoa1997 » Wed Apr 10, 2013 23:09

haha. btw the next version of minitest is ready to come out soon
Last edited by jojoa1997 on Wed Apr 10, 2013 23:10, edited 1 time in total.
Coding;
1X coding
3X debugging
12X tweaking to be just right
 

User avatar
Traxie21
Member
 
Posts: 753
Joined: Mon Dec 31, 2012 10:48
Location: McKinney, Texas U.S.A.
 

User avatar
jojoa1997
Member
 
Posts: 2890
Joined: Thu Dec 13, 2012 05:11
Location: Earth

by jojoa1997 » Wed Apr 10, 2013 23:57

i already did but could you add all the potions here? also there should be a potion that negates all effects i think mnecraft has it but idk. another tip maybe is to add a brewing stand like minecraft. i would do this myself bu i dont have the time to learn how. here is the link http://www.minecraftwiki.net/wiki/Brewing
Coding;
1X coding
3X debugging
12X tweaking to be just right
 

User avatar
Likwid H-Craft
Member
 
Posts: 1113
Joined: Sun Jan 06, 2013 14:20
Location: Lost in Crypt

by Likwid H-Craft » Thu Apr 11, 2013 00:01

License Please.
My Domain's/others:
http://likwidtest.hj.cx/ (Not Done)
 

User avatar
jojoa1997
Member
 
Posts: 2890
Joined: Thu Dec 13, 2012 05:11
Location: Earth

by jojoa1997 » Thu Apr 11, 2013 00:13

FIRST POST wrote:License: Code/Textures: WTFPL
maybe you should read the entire first post. also traxie the game is ready for release i just have to upload it
Coding;
1X coding
3X debugging
12X tweaking to be just right
 

User avatar
jordan4ibanez
Member
 
Posts: 1895
Joined: Tue Sep 27, 2011 18:44
Location: Rhode Island, USA
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

by jordan4ibanez » Thu Apr 11, 2013 02:50

Code: Select all
potions.register_potion("Jupiter Gravity", "dull", 60,
function(itemstack, user, pointed_thing)
    user:set_physics_override(1,1,2)
    minetest.chat_send_player(user:get_player_name(), "Oh no! Jupter gravity! (60 seconds)")
end,

function(itemstack, user, pointed_thing)
    user:set_physics_override(1,1,1)
    minetest.chat_send_player(user:get_player_name(), "Jupiter gravity has diminished.")
end)


And make a crafting recipe for the cauldron! I want to use this in my videos. :D
I've been gone for a long time
 

User avatar
jordan4ibanez
Member
 
Posts: 1895
Joined: Tue Sep 27, 2011 18:44
Location: Rhode Island, USA
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

by jordan4ibanez » Thu Apr 11, 2013 03:38

A healing and poisoning potion.

A potion of nodularity, which wherever you go, you add a node to your position if it's air.

A potion of acidity, which wherever you are, it removes the node below you if it's not air.

A potion of flying.

A potion of limbo, which transfers you to 12000 and sets your gravity to 0, then when it wears off, transfers you back to your old position.

(When luaside FOV is included) A potion of shortsightedness (Fov at like 200)

A potion of farsightedness (Fov at like 20)

A potion of explosiveness.

A green thumb potion. (Trees, and tall grass are added wherever you are if you are walking on dirt or grass)

A potion of flatulence. (A fart sound is looped and attached to your character)

A potion of slowness.

A potion of awareness. (Particles are spawned at your position and shoot straight up, alerting other players of your position)

A potion of claustrophobia. (You cannot move at all)

Whispering of the winds. (You can see player's text who are using the /whisper command)

A potion of anxiety. (You can only move in one direction)

A potion of teleportation. (When you drink this, you randomly teleport around)

A potion of repulsion. (Item drops are pushed away from you in the radius of 5)
Last edited by jordan4ibanez on Thu Apr 11, 2013 03:55, edited 1 time in total.
I've been gone for a long time
 

User avatar
Calinou
Moderator
 
Posts: 3156
Joined: Mon Aug 01, 2011 14:26
Location: Troyes, France
GitHub: Calinou
IRC: Calinou
In-game: Calinou

by Calinou » Thu Apr 11, 2013 07:25

jordan4ibanez wrote:(Fov at like 200)


It is technically impossible to see with a field of view => 180 (except if you're using fisheye :P).
 

User avatar
jojoa1997
Member
 
Posts: 2890
Joined: Thu Dec 13, 2012 05:11
Location: Earth

by jojoa1997 » Thu Apr 11, 2013 10:24

For those who wasn't to get a sense of how minecraft potions work and get ideas on potions and how they can be made.Image Image
I case you miss this it is easier to see. Also i suggest having potions. that turn off potions(i think i said it before) and one that gives and removes privs. also you could have one that turns into a node or a couple items. a nrewing stand would be nice and cauldrons holding potions are nice also
Last edited by jojoa1997 on Thu Apr 11, 2013 10:57, edited 1 time in total.
Coding;
1X coding
3X debugging
12X tweaking to be just right
 

User avatar
Traxie21
Member
 
Posts: 753
Joined: Mon Dec 31, 2012 10:48
Location: McKinney, Texas U.S.A.

by Traxie21 » Thu Apr 11, 2013 11:54

@jordan4ibanez: Most of your suggestions will work with this API. :D
Unfortunately, I have little time left this week, maybe update PotionsPack Friday.

@jojoa, Ah, thanks.

ATM you have to make your own recipes, I was having trouble with the cauldron yesterday. One is coming though, and it will be quite easy to specify a recipe for it.

Potions already reset previous effects.
Potions tha do anything with the player or environment around the player, or wat the player is looking at are possible. You could even make a potion that restarts the server or ban's someone. :P
 

User avatar
jojoa1997
Member
 
Posts: 2890
Joined: Thu Dec 13, 2012 05:11
Location: Earth

by jojoa1997 » Thu Apr 11, 2013 12:24

There should be throwing potions and I think that potions should merge effects and adding a crafting recipe to the finctio. Would help. Also maybe just make the brewing stand stuff but no function to it.
Coding;
1X coding
3X debugging
12X tweaking to be just right
 

User avatar
Traxie21
Member
 
Posts: 753
Joined: Mon Dec 31, 2012 10:48
Location: McKinney, Texas U.S.A.

by Traxie21 » Thu Apr 11, 2013 12:29

Oh yeah, forgot about throwing potions. Merging effects would be very complicated for some potions. HOWEVER, potions that effect player physics already merge with those that don't.

The Cauldron (brewing stand) will be released once completed.

Crafting recipes will eventually be as simple as adding "default:item, modname:item" to the potion definition.
 

User avatar
Evergreen
Member
 
Posts: 2135
Joined: Sun Jan 06, 2013 01:22
Location: A forest in the midwest
GitHub: 4Evergreen4
IRC: EvergreenTree
In-game: Evergreen

by Evergreen » Thu Apr 11, 2013 12:47

Good idea! One thing though, in my opinion I don't like the server telling you that you have been blessed with: (potion effect)
Back from the dead!
 

User avatar
Traxie21
Member
 
Posts: 753
Joined: Mon Dec 31, 2012 10:48
Location: McKinney, Texas U.S.A.

by Traxie21 » Thu Apr 11, 2013 13:51

We need some way to know what you have on you, but I agree, it is kinda ugly.
 

User avatar
Evergreen
Member
 
Posts: 2135
Joined: Sun Jan 06, 2013 01:22
Location: A forest in the midwest
GitHub: 4Evergreen4
IRC: EvergreenTree
In-game: Evergreen

by Evergreen » Thu Apr 11, 2013 18:45

Traxie21 wrote:We need some way to know what you have on you, but I agree, it is kinda ugly.

Yeah. One thing I noticed is that the particle effects fly up a lot farther then they should. Can you fix that? Another thing is they should be drinkable. The particles should also match the color of the potions.
Last edited by Evergreen on Thu Apr 11, 2013 18:46, edited 1 time in total.
Back from the dead!
 

User avatar
Traxie21
Member
 
Posts: 753
Joined: Mon Dec 31, 2012 10:48
Location: McKinney, Texas U.S.A.

by Traxie21 » Thu Apr 11, 2013 19:28

I wanted the particles to last for a long time, but I will decrease them.
The coloring will come later, It's just a pain to make an overly for every color.

Idk how to make them really drinkable, but they shouldn't use up the bottle.
 

User avatar
jojoa1997
Member
 
Posts: 2890
Joined: Thu Dec 13, 2012 05:11
Location: Earth

by jojoa1997 » Thu Apr 11, 2013 19:39

make it a food. i will look into it.
Coding;
1X coding
3X debugging
12X tweaking to be just right
 

User avatar
Evergreen
Member
 
Posts: 2135
Joined: Sun Jan 06, 2013 01:22
Location: A forest in the midwest
GitHub: 4Evergreen4
IRC: EvergreenTree
In-game: Evergreen

by Evergreen » Thu Apr 11, 2013 19:43

Traxie21 wrote:I wanted the particles to last for a long time, but I will decrease them.
The coloring will come later, It's just a pain to make an overly for every color.

Idk how to make them really drinkable, but they shouldn't use up the bottle.

I was thinking of making them empty once you drank them
Back from the dead!
 

User avatar
jojoa1997
Member
 
Posts: 2890
Joined: Thu Dec 13, 2012 05:11
Location: Earth

by jojoa1997 » Thu Apr 11, 2013 19:58

yeah. also here is a plan i made of the cauldron Image
Key:
p=potin
I=items
W=water glass
f=fuel
Coding;
1X coding
3X debugging
12X tweaking to be just right
 

User avatar
jojoa1997
Member
 
Posts: 2890
Joined: Thu Dec 13, 2012 05:11
Location: Earth

by jojoa1997 » Fri Apr 12, 2013 12:24

This is how you make items.
Code: Select all
on_use = minetest.item_eat(4),
for throwing just do on use and set the velocity to ssommmmmmmmmethiiiiiiiing. look at the bows mood by pilzadaam for thhrowing itemms..
Coding;
1X coding
3X debugging
12X tweaking to be just right
 

User avatar
Traxie21
Member
 
Posts: 753
Joined: Mon Dec 31, 2012 10:48
Location: McKinney, Texas U.S.A.

by Traxie21 » Fri Apr 12, 2013 12:27

Oke, thanks jojo, I had no idea there was an actual eat function.
 

Next

Return to Mod Releases



Who is online

Users browsing this forum: No registered users and 28 guests