[mod] witchcraft (v0.4)

User avatar
D00Med
Member
 
Posts: 942
Joined: Sat Feb 07, 2015 22:49
Location: Australia...somewhere
GitHub: D00Med

[mod] witchcraft (v0.4)

by D00Med » Tue May 31, 2016 20:52

Image
A mod that adds several potions and magical scrolls.
To improve the fun of the mod, none of the potions are named very clearly, and the recipes won't be given directly.
Some recipes are in the readme file.
Each potion must be cooked in a magic cooking pot, which will fill glass bottles when right clicked.
The cooking pot is magical, so there's no need to light a fire under it, or provide it with fuel;)
The brewing stand must be right clicked with a mese crystal fragment, to make it ready, and then with a potion to start the brewing process. This will strengthen the potion
The potions can be placed like ordinary glass bottles. There is also a potion shelf, dried herbs, and jars of eyes and slime.
The effects of the potions are:
>healing the user
>killing the user
>harming the user
>fast movement
>slow movement
>blowing up the user
>fire breath
>refill breath
>making the player hungry
>making the player less hungry
>surrounding the player with black particles(darkness)
>anti gravity
>higher jumping
>faster swimming
>invisibility
>smoke screen(sort of)
>adding experience(with experience mod) or giving the player some useful items
>placing a melon(with farming_redo) or growing a jungletree
>night vision
>resist fire

There are also splash potions, crafted by adding a stick to a normal potion:
>fire bomb
>tnt
>speed
>jump
>slow
>antigrav
>healing
>damaging
>death
>smoke
>darkness

The scrolls effects are:
>spawning a dog
>lightning strike
>set time to day
>set time to night
>spawning a tree or transforming entities into trees
>icicles
>fireballs
>showing the recipes for potions

screenshot:
Image

dependancies:
default
vessels
tnt
fire
playereffects
player_monoids?
farming_redo?
lightning?
experience?
pmobs?
moreplants?
hud_hunger?
horror?

Latest version: https://github.com/D00Med/witchcraft/
First version attached.

Updates:
(27/6/17)[v0.4]:
>mod supports player_monoids
>changed potion textures
(8/01/17):
>updated recipe scroll to match new recipes

(12/11/16):
>added silver potion
>swapped gold and yellow potions
>changed the recipes

(1/9/16):
>added bottles and some ingredients
>the pentagram can be rightclicked to summon a monster/animal, if horror, mobs_monster or dmobs or pmobs or mobs_animal are present.
>the potions that use playereffects now display the effect and the time remaining.

(26/8/16)[v0.3]
>physics changing potions now use player effects
>added some decorative nodes(mortar and pestle, and a pentagram)

(17/8/16):
>added alternate potions for those that need other mods
>changed recipe for healing potions
>added splash potions(heal, death, murky, jump, light, speed, thick, shadow, and smoke)

(16/8/16):
>Fixed some potions returning buckets instead of bottles
>Changed the recipe for yellow potions
>Made blank scrolls easier to craft, and magic scrolls harder to craft

license:
code: LGPL 2.1+
textures: CC BY-SA 3.0
More details in the mod
Attachments
witchcraft.zip
(136.99 KiB) Downloaded 449 times
Last edited by D00Med on Mon Jun 26, 2017 22:30, edited 10 times in total.
 

User avatar
Nathan.S
Member
 
Posts: 923
Joined: Wed Sep 24, 2014 17:47
Location: Bigsby Texas
GitHub: NathanSalapat
IRC: NathanS21
In-game: NathanS21

Re: [mod] witchcraft

by Nathan.S » Wed Jun 01, 2016 00:17

This looks really interesting, will have to check it out.
I record Minetest videos, Mod reviews, Modding tutorials, and Lets plays.
Check out my website, and brand new Minetest Modding Course
 

User avatar
azekill_DIABLO
Member
 
Posts: 7489
Joined: Wed Oct 29, 2014 20:05
Location: OMICRON
GitHub: azekillDIABLO
In-game: azekill_DIABLO
 

User avatar
TailsTheFoxDoes MT
Member
 
Posts: 415
Joined: Mon Jan 18, 2016 20:50
Location: Mobius
In-game: TailsTheFox

Re: [mod] witchcraft

by TailsTheFoxDoes MT » Mon Jun 06, 2016 21:50

Can you maybe change the name, as.. christians don't like witchcraft, maybe something like magic_items or something like that.
I'm the TailsTMM of minetest, in other words, i rock.
BRAAAAAZZZZAAAA!!!!!!!!!!!!!!!!!!!!!!!!!!!
BTW it means TailsTheMeseMinecart, but that isn't my name, it's just a way of saying that i basically do the same thing Dantdm does but i do it with minetest And you problably can't see the invisible ink.
My mods:
My first mod:tails_boss

Mob_pack now has voice acting! Do you want YOUR VOICE included? Look in my posts for the thread!
 

User avatar
D00Med
Member
 
Posts: 942
Joined: Sat Feb 07, 2015 22:49
Location: Australia...somewhere
GitHub: D00Med

Re: [mod] witchcraft

by D00Med » Tue Jun 07, 2016 03:17

Hmm well, if they don't like witchcraft then the word is not going to be the problem.
 

User avatar
Nathan.S
Member
 
Posts: 923
Joined: Wed Sep 24, 2014 17:47
Location: Bigsby Texas
GitHub: NathanSalapat
IRC: NathanS21
In-game: NathanS21

Re: [mod] witchcraft

by Nathan.S » Tue Jun 07, 2016 13:35

TailsTheFoxDoes MT wrote:Can you maybe change the name, as.. christians don't like witchcraft, maybe something like magic_items or something like that.


I think there are a lot more people that just Christians that don't like witchcraft, I mean sacrificing cats and humans on halloween isn't exactly cool. However in a video game I think people will be fine with it. I mean it's not like there are any human or cats being killed here. :)
I record Minetest videos, Mod reviews, Modding tutorials, and Lets plays.
Check out my website, and brand new Minetest Modding Course
 

User avatar
D00Med
Member
 
Posts: 942
Joined: Sat Feb 07, 2015 22:49
Location: Australia...somewhere
GitHub: D00Med

Re: [mod] witchcraft (v0.2)

by D00Med » Tue Jun 14, 2016 23:38

Update:
I have changed all the recipes and made moreplants an optional requirement.
I have also added level two potions, 4 new potions, a recipe scroll, and a brewing stand.
Some potions can now be combined.
The lightning ball has been removed.
Also, it is on Github, which I am new to, so please let me know if you notice I did something stupid when I uploaded it.
 

User avatar
GreenDimond
Member
 
Posts: 1273
Joined: Wed Oct 28, 2015 01:26
Location: SCP-3008
GitHub: GreenXenith
IRC: GreenDimond
In-game: GreenDimond

Re: [mod] witchcraft (v0.2)

by GreenDimond » Wed Jun 15, 2016 01:33

:D :D :D
Pretty good!
Granted, not all of it's there, but it's great none the less! :D Thx!
Um, how to use brewing stand?
Y▹uTube | Mods | Patre●n | Twitter | Minetest Discord | GreenDimond#3232

Hey, you. You're finally awake.
You were trying to view their profile, right? Found the rest of their signature, same as us, and that guest over there.
 

User avatar
D00Med
Member
 
Posts: 942
Joined: Sat Feb 07, 2015 22:49
Location: Australia...somewhere
GitHub: D00Med

Re: [mod] witchcraft (v0.2)

by D00Med » Wed Jun 15, 2016 01:40

You must craft it first:
X, X, X
stick, diamond, stick
X, obsidian shard, X

Then right click it with a mese crystal fragment, and then with the potion you want to upgrade.
 

jakab
Member
 
Posts: 86
Joined: Mon Aug 15, 2016 17:19
IRC: jakab
In-game: jakab

Re: [mod] witchcraft (v0.2)

by jakab » Mon Aug 15, 2016 17:26

hi i am jakab, and new here (not to minetest) :)

i realy like this mod, this is one of my favorite mods :D
but i dont understand how to make potions. i saw the kooking pot, but how can i put stuff in to make some potions ?

is there healing potion with hunger ?
 

User avatar
D00Med
Member
 
Posts: 942
Joined: Sat Feb 07, 2015 22:49
Location: Australia...somewhere
GitHub: D00Med

Re: [mod] witchcraft (v0.2)

by D00Med » Mon Aug 15, 2016 20:37

Hello jakab, welcome to the forums.
You have to right click the pot with items in the right order.
For example, to make a healing potion, you need to right click it with these items, in the following order:
1 - bucket of water or river water
2 - dirt
3 - herbs
4 - glass bottle

For hunger, if you have the hud_hunger mod, you can make a potion to remove hunger by adding a mese crystal to a purple potion, and a potion to make the player hungry by adding a mese crystal to a red(heal) potion.
Edit: The recipes are wip, if you have any suggestions they would be appreciated
 

jakab
Member
 
Posts: 86
Joined: Mon Aug 15, 2016 17:19
IRC: jakab
In-game: jakab

Re: [mod] witchcraft (v0.2)

by jakab » Tue Aug 16, 2016 05:18

thank you :)

i thought that i can do that by right click, but with not the good items :D
i like the mod :)

oh and i have an error :P if i add a mese christal to the pot, it will give me an unknow item :/ can you help me ?
i have al the mods needed
Last edited by jakab on Tue Aug 16, 2016 07:11, edited 1 time in total.
 

User avatar
D00Med
Member
 
Posts: 942
Joined: Sat Feb 07, 2015 22:49
Location: Australia...somewhere
GitHub: D00Med
 

User avatar
azekill_DIABLO
Member
 
Posts: 7489
Joined: Wed Oct 29, 2014 20:05
Location: OMICRON
GitHub: azekillDIABLO
In-game: azekill_DIABLO
 

jakab
Member
 
Posts: 86
Joined: Mon Aug 15, 2016 17:19
IRC: jakab
In-game: jakab

Re: [mod] witchcraft (v0.2)

by jakab » Tue Aug 16, 2016 10:43

thx :)

look theese pictures (down) why it is happend ?
i created a super cool looking potion, and woala : an unknow block !! yeeeeeey what a succesful breewing :D
Attachments
screenshot_20160816_124053.png
(398.66 KiB) Not downloaded yet
screenshot_20160816_124003.png
can you tell me why it is happend ?
(791.75 KiB) Not downloaded yet
 

User avatar
azekill_DIABLO
Member
 
Posts: 7489
Joined: Wed Oct 29, 2014 20:05
Location: OMICRON
GitHub: azekillDIABLO
In-game: azekill_DIABLO
 

User avatar
D00Med
Member
 
Posts: 942
Joined: Sat Feb 07, 2015 22:49
Location: Australia...somewhere
GitHub: D00Med

Re: [mod] witchcraft (v0.2)

by D00Med » Tue Aug 16, 2016 20:47

Thankyou for pointing out the problem.
It is because that potion requires the hunger mod to work.
edit: It is now fixed
 

jakab
Member
 
Posts: 86
Joined: Mon Aug 15, 2016 17:19
IRC: jakab
In-game: jakab

Re: [mod] witchcraft (v0.2)

by jakab » Wed Aug 17, 2016 07:00

thx so mutch :D

i like the new spash potions :)

but i have another error :/ it is my fault ? or mod error ?
can you help me ? pls pls

sorry for the reporting x)
Attachments
screenshot_20160817_103355.png
(290.32 KiB) Not downloaded yet
screenshot_20160817_103352.png
and again :P
(283.46 KiB) Not downloaded yet
screenshot_20160817_102357.png
i cant put tnt into the pot :P
(254.18 KiB) Not downloaded yet
 

User avatar
Wuzzy
Member
 
Posts: 3640
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

Re: [mod] witchcraft (v0.2)

by Wuzzy » Thu Aug 18, 2016 04:13

I suspect this mod is going to burn in flames and starts to behave very wrong as soon as any other mod attempts to overwrite the player speed, jump height, gravity, etc. because your mod does not use any framework to handle something like status effects.

One such framework is Player Effects.
My creations. I gladly accept bitcoins: 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH
 

User avatar
D00Med
Member
 
Posts: 942
Joined: Sat Feb 07, 2015 22:49
Location: Australia...somewhere
GitHub: D00Med

Re: [mod] witchcraft (v0.2)

by D00Med » Thu Aug 18, 2016 06:48

@jakab
Thanks. I fixed the problems with the dodgy potion this morning.
I will have to check every potion.
Edit: The purple potion should be fixed now. Thanks again for pointing out the problems.
@Wuzzy
Thanks, I am aware of that problem, but I'm probably not going to do anything about it.
 

jakab
Member
 
Posts: 86
Joined: Mon Aug 15, 2016 17:19
IRC: jakab
In-game: jakab

Re: [mod] witchcraft (v0.2)

by jakab » Thu Aug 18, 2016 07:52

thanks :) i will tell you if i found another error :D (i am the tester of this mod x) )

Wuzzy wrote:I suspect this mod is going to burn in flames and starts to behave very wrong as soon as any other mod attempts to overwrite the player speed, jump height, gravity, etc. because your mod does not use any framework to handle something like status effects.

One such framework is Player Effects.


i think this mod waaaaay better than player effects, and player effects owerwrite the speed, etc too
i played player effects, and it is just a start :)
 

User avatar
Wuzzy
Member
 
Posts: 3640
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

Re: [mod] witchcraft (v0.2)

by Wuzzy » Thu Aug 18, 2016 10:53

Jakab, you don't understand. You cannot compare Player Effects with witchcraft as Player Effects does not add any actual effects on its own, it is basically just a framework which mods can use to overcome problems when dealing with multiple conflucting status effects.
It also does not overwrite speed etc., this is done by the mods which add their own effects. But when multiple mods change the speed through Player Effects, the framework ensures that no more weird things happen as effects may cancel out each other.
Maybe you are confusing Player Effects with Player Effects Potions [pep]. You can say anything you want about pep, but not that the status effects are broken. :-) Note that pep was mostly meant as a proof-of-concept which is more or less also useful for gameplay. If other people have better potion ideas, this is great. But some underlying design principles should be followed IMO to prevent extreme buggyness.

@Wuzzy
Thanks, I am aware of that problem, but I'm probably not going to do anything about it.

Then your mod is broken by design. You underestimate how serious this issue is.

Note this probably does not only cause trouble with other mods. I suspect even if you only use witchcraft as the only additional mod on the server, it will cause very bad problems, based on my experience with other mods like this.
Have you tried out the following?:
Drink a fast potion, then quickly drink a slow potion afterwards. Watch your walking speed carefully, especially at the end of either timer.
I think the real fun begins when you drink a lot of potions, this will cause a lot of unexpected behaviour.

I have briefly looked at your source code and yes, you directly overwrite the player physics properties without any regard for existing status effects. It's just a minetest.after without any checking.

Oh, and I suspect there are even critical crash bugs lying in your mod: You often call minetest.after to do some operations on an “user” variable but do not check if user still exists (i.e. user:is_player()). This means, if a player causes some minetest.after to be called (e.g. by drinking a potion), then leaves, and then the timer triggers, your code assumes that the player still exists by doing some operation on it, but it doesn't which will make Minetest crash.

I haven't bothering to actually testing all this but based on my experience with other mods I can already tell you this mod needs more bugfixing and a better design to become actually useful.
My creations. I gladly accept bitcoins: 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH
 

jakab
Member
 
Posts: 86
Joined: Mon Aug 15, 2016 17:19
IRC: jakab
In-game: jakab

Re: [mod] witchcraft (v0.2)

by jakab » Thu Aug 18, 2016 13:54

well my english isnt too good, and im not good at modding, so you propally right.
but understand it :)
 

Byakuren
Member
 
Posts: 816
Joined: Tue Apr 14, 2015 01:59
GitHub: raymoo
IRC: Hijiri
In-game: Raymoo + Clownpiece

Re: [mod] witchcraft (v0.2)

by Byakuren » Thu Aug 18, 2016 17:31

You can also use player_monoids with playereffects if you want your physics changes to stack with ones from other mods that use player_monoids.
Every time a mod API is left undocumented, a koala dies.
 

User avatar
D00Med
Member
 
Posts: 942
Joined: Sat Feb 07, 2015 22:49
Location: Australia...somewhere
GitHub: D00Med

Re: [mod] witchcraft (v0.2)

by D00Med » Thu Aug 18, 2016 20:28

Thankyou for your advice, but using player effects still requires any other effect mod to use it.
So if the mod is used with 3d_armor or sprinting(as far as I'm aware) it will not work at all since they regularly update the player physics anyway. I'll see what I can do about it anyway
 

Next

Return to WIP Mods



Who is online

Users browsing this forum: MSN [Bot] and 3 guests