[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.
Contact:

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

by Traxie21 » Post

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 ... 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: 3169
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou
Location: Troyes, France
Contact:

by Calinou » Post

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 » Post

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.
Contact:

by Traxie21 » Post

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 » Post

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.
Contact:

by Traxie21 » Post

Ah good, want to add this to it?

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

by jojoa1997 » Post

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 » Post

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 » Post

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: 1923
Joined: Tue Sep 27, 2011 18:44
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

by jordan4ibanez » Post

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
hello, am program. do language in rust. make computer do. okay i go now.

User avatar
jordan4ibanez
Member
Posts: 1923
Joined: Tue Sep 27, 2011 18:44
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

by jordan4ibanez » Post

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.
hello, am program. do language in rust. make computer do. okay i go now.

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

by Calinou » Post

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 » Post

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.
Contact:

by Traxie21 » Post

@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 » Post

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.
Contact:

by Traxie21 » Post

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
GitHub: 4Evergreen4
IRC: EvergreenTree
In-game: Evergreen
Location: A forest in the midwest
Contact:

by Evergreen » Post

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.
Contact:

by Traxie21 » Post

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
GitHub: 4Evergreen4
IRC: EvergreenTree
In-game: Evergreen
Location: A forest in the midwest
Contact:

by Evergreen » Post

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.
Contact:

by Traxie21 » Post

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 » Post

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
GitHub: 4Evergreen4
IRC: EvergreenTree
In-game: Evergreen
Location: A forest in the midwest
Contact:

by Evergreen » Post

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 » Post

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 » Post

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.
Contact:

by Traxie21 » Post

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

Post Reply

Who is online

Users browsing this forum: No registered users and 63 guests