Started by
deningtongaming
on
Topic category: Help with Minecraft modding (Java Edition)
I wanted to add an effect "Pirate Omen" or possibly "Bad Omen" when MCreator 1.14 comes as that is a placeholder name.
But when I kill the Pirate Captain it does not give me(The player) an effect.
Instead it gives the pirate the effect as he dies (Testing with the glowing effect)
How do I get the Player to hold the effect once a special mob is killed?
Been trying to look it up but no answers. :/
Another issue that I am having is with my custom effect
I gave myself the effect with a command, it gave me the effect for 30 seconds but it did not come up with an icon. Then I did it again and it gave me and Internal error, so I waited 30 seconds to do it again (Another internal error) so I drunk milk and my entire MCreator client completely froze including the game.
Could somebody also help me with that please? Not sure what I did wrong there.
My entire workspace broke after the 4th crash -_-
Edit: I added the potion and the effect came up.
Waited 2 minutes for it to expire then redrunk it and MCreator crashed.
Can you post screenshots of the procedures?
(potion, command, giving the effect, crash report)...
I can show the Procedures but cannot show the crash report as when the game crashes the entire MCreator program freezes so I can't view the log.
Starting off, this is the Workspace
Pirate and Archer may be safely ignored.
Pirate Captain (When killed: Should give Pirate Omen)
PirateCaptainEntityDies (Event to give player effect: Pirate Omen)
Pirate Omen (Effect. placeholder for Bad Omen)
PirateOmenRenew (Renews Pirate Omen on expire every second.)
What might be causing the issue: These are theories I have came up with.
The effect is not attached to anything eg. Swiftness, ex. Repeating Health Removal (Harming II) Procedure
The Renew is overwriting the current timer and breaking the Effect
Next up is the Renew: PirateOmenRenew
Now here is the effect I was having issues with in the First post.
It attaches to the Mob and not the Player, I added more to it and now it attaches to nothing.
The problem of the attach procedure is it's attaching to CurrentEntity which is the pirate and since the pirate is not a player then it will do nothing and cause errors
Which one is CurrentEntity in 2020.4 Target-entity or Source-entity?
There are two ways to give the player potion effects after your mob's death.
The first way is to check when entity dies with global trigger in your procedure. Then you check the "event/target entity" type with the procedure block "Is event/target entity (sub)type ..." and if it's true, then you apply a potion effect to "source entity".
The second way is to use a trigger inside your mob's option, which is called when your mob dies. In your procedure created then, you apply a potion effect to "source entity".