Progressive potion effects

Started by Gordon CMB on Wed, 06/08/2022 - 10:46

Topic category: Help with modding (Java Edition)

Last seen on 19:04, 11. Jul 2022
Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Progressive potion effects
Wed, 06/08/2022 - 10:46

Hey-a, I'm still new to this modding scene, and I've been trying to implement this thingy for quite a while, without much luck, so I thought I'd ask here

What I'm trying to do, is to grant the player several effects in succession, one after the other, while drinking the same potion
It goes as follows:
Effect A level 1 -> Effect A level 2 -> Effect B -> Effect C
So far, the procedure works fine up until giving you the Effect B, drinking the potion again just does nothing, the last section just refuses to trigger apparently. I've tried numerous solutions but wasn't able to fix the problem. If I remove the Effect B section, it will give you Effect C after drinking the potion, but that's not quite what I want, and I'm fairly certain it is possible to keep the "scheme" intact, I just don't know what's causing the Effect C not to trigger after receiving Effect B

I have the procedure exported here if you want to take a look at it: https://mega.nz/file/EHwSUBRR#9XgqVQmGV4aRuImjpCzeh462lVPzl3JxRJYT2FigghA
It does feature custom potion effects, but you can probably replace them with vanilla effects for testing purposes

I'd be really grateful if someone finds a solution to this problem!

Last seen on 09:03, 13. Jul 2022
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Sorry but can I ask you what…
Sat, 06/11/2022 - 03:32

Sorry but can I ask you what gobal trigger you used? Is this a potion item or just an item in general? If you can, you could screenshot the workspace or the element too. I would appreciate it a lots.

Last seen on 19:04, 11. Jul 2022
Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Apologies, I didn't notice…
Sat, 06/18/2022 - 09:10

Apologies, I didn't notice the reply earlier

This is just an item that applies an effect upon using it. The workspace is pretty much cluttered by all sorts of stuff, I will screenshot the relevant part though 

For the potion, I actually plan to use several other potions with this "mechanic" in mind, so, on `Player Finishes Using The Item` I simply call for the required procedure, but the required procedure is kind of a big one, and it looked weird on a screenshot, hence I uploaded it here in PTPL form... Anyways, here 

There is no additional trigger for neither

(apologies for the clutter once again, for some reason the website didn't let me reply when I linked the images)

Last seen on 09:03, 13. Jul 2022
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Sorry, the procedure is…
Sun, 06/19/2022 - 03:12

Sorry, the procedure is pretty long so I can't really screenshot it. But here the procedure that I modified from your origin one.

https://drive.google.com/drive/folders/1RUfarwqlowgXMJ_438bmJ-bJzRxdGfv…

Anyway, hope this works for you.

Last seen on 19:04, 11. Jul 2022
Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Holy, this actually worked!…
Sun, 06/19/2022 - 09:11

Holy, this actually worked!

Thank you so much, pal! Really appreciate it!