Special item (like totem, but effect give to entity by hit)

Started by IdontKnowwhatttoDo on Fri, 06/03/2022 - 19:27

Topic category: Help with modding (Java Edition)

Last seen on 08:00, 17. Jul 2022
Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Special item (like totem, but effect give to entity by hit)
Fri, 06/03/2022 - 19:27

How to make item, which will give effect to entity by hit, and than disappear (like totem but effect gives to entity by hit whith no animation)

If you kno please write subsequence of blocks in MC

Last seen on 08:00, 17. Jul 2022
Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Global trigger: Entity…
Sun, 06/05/2022 - 13:22

Global trigger: Entity attacked

If : Item in main-hand of:Source entity =[your item]

do: Add potion with level () for () ticks ambient false/true particles false/true to: Event/target entity type(your effect)

       Set item to main-hand of: Source entity to 1[air block]