Simple thorns potion effect not working

Started by StartouchArts on Thu, 07/21/2022 - 21:47

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:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Simple thorns potion effect not working
Thu, 07/21/2022 - 21:47

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 04:18, 4. Oct 2022
Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 15:10, 30. Sep 2022
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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.