Random Event When entity type is killer

Started by SomeOneAlredyT… on

Topic category: Help with modding (Java Edition)

Last seen on 12:40, 23. Apr 2024
Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Random Event When entity type is killer

Greedings, I'm looking for help with my mod, I want help with an procidure that adds a 10% chance of something happen to the player when he kills an entity type, Like having a 10% chance of giving a player nausea when player kills an undead mob for example. That's all i need, the rest I can figure out

Last seen on 12:40, 23. Apr 2024
Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The thing I tryed but doesn…
Sat, 03/30/2024 - 22:26

The thing I tryed but doesn't seem to be working is:

 

Global Trigger: Entity dies

                           (If: entity type = undead)  (do) :  

                                 (if [random 0,1] + [number 0.1]) (do)  :   [add potion effect to target entity blah blah blah]

something like that i cant elaborate better because im kinda new at modding