Need help coding an item taht strikes lightining when I click on an entety with that item

Started by Elrond345 on

Topic category: Help with modding (Java Edition)

Last seen on 16:52, 10. Aug 2022
Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Need help coding an item taht strikes lightining when I click on an entety with that item

If you could help me Im currently working on my first mod and need help to create an item that strikes lighting at an entety when right clicked on with that spesific item. I have got the lighting working but its for whenever I just right click an entety, not just with that item, Can someone help me?

Last seen on 23:34, 13. Nov 2022
Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
in the triggers of the block…
Tue, 08/09/2022 - 19:49

in the triggers of the block make a procedure under "when living entity is hit with tool"

Last seen on 16:52, 10. Aug 2022
Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
ok, Ill try:)  
Wed, 08/10/2022 - 14:52

ok, Ill try:)

 

Last seen on 16:52, 10. Aug 2022
Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you:) It worked and…
Wed, 08/10/2022 - 15:08

Thank you:) It worked and helped me realise the problem, I had added an additional trigger xD. Im stupid, anyways: thak you for the tip:)