Simple thorns potion effect not working

Started by StartouchArts on

Topic category: Help with modding (Java Edition)

Last seen on 00:05, 7. Aug 2022
Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Simple thorns potion effect not working

Trying to make a thorns-like potion effect, but whenever I try to add the procedure to any of the custom potion effect's triggers, it says that dependencies are missing and won't allow me to add it as a trigger.

 

My code is:

 

Entity trigger: Entity attacked

If: [Has [event/target entity] active potion: CrystalSpikes]

do: [Deal 2 damage to [Source entity] type: MAGIC]

      [Play at X Y Z Leve 1 Pitch 1 sound : hurt_sweet_berry_bush]

Last seen on 15:16, 8. Apr 2024
Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I don't think you play…
Sat, 07/23/2022 - 04:39

I don't think you play sounds with a procedure like that. Maybe that's your problem.

Last seen on 17:35, 4. Mar 2023
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I think it should be target…
Tue, 08/16/2022 - 17:32

I think it should be target entity but not sure.