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

Started by IdontKnowwhatttoDo on

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:
  • MCreator plugins:
  • Comments:
Special item (like totem, but effect give to entity by hit)

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:
  • 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]