Hi,
I created new items for my custom effects potions and other things, but I don't know why, when I right click on my custom items, my game crash.
I don't know why because i've only a procedure to give a custom effect tot he player, so I just need of your help.
I've attach my workspace for you to watch.
Goldorion
(I used the same Workspace for thi two other bugs.)
P-S : When we start the game,MCreator really lag/bug. https://mcreator.net/forum/50769/mcreator-lagbug-when-game-running
P-S 2 : We can't use /effect @p clear with custom effect potions. https://mcreator.net/forum/50770/we-cant-remove-custom-effects-command
Issue comments
Ok. so I already had that to begin with and it still crashes.
I would load the world, and its fine, no lag AND everything else works. yet when I eat my king apple (a worse enchanted golden apple) Minecraft freezes for two or three seconds, then crashes.
I have no clue what to do..
My guess is that the king apple needs its dimension to work, but its not done yet and I need a way to test it.
Can you help me?
thanks in advance :)
Check https://mcreator.net/wiki/tips-reporting-bugs-and-issues (video on the page too)
When you call clear all potion effects when potion effect ends, this clear potion effects will trigger the trigger again, which will, in turn, clear potions again which will, in turn, trigger the trigger again, which will ...
You see where this is going :D This is the source of lag and crashes.
Setting potion duration to infinity is not a good idea either. I suggest you to instead of doing things at the activation of the potion, use potion active tick trigger to handle potion actions, which is the proper way anyway. Instead of giving and clearing other potions as you do, give these potions for one tick each tick.
But the idea of potions is not giving other potions anyway so this most likely won't yield any stable results.
I hope my essay will help :D