Hey can someone help me with java code?

Started by ArkWay on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2026
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hey can someone help me with java code?
Thu, 02/05/2026 - 15:37 (edited)

Im making mod that adds more crafts with vanilla only resources and i need code for 1 cool idea, i have copper shield in my mod and charged copper shield
i need to make so when it's thunder there's higher chance to be struck by lighting when you are holding copper shield, and if you block it shield will lose some durability and will charge, and if there's almost no durability  left and you will block lighting: shield will explode with power of charged creaper but will not hit player who was holding it.
(im making it on version neo forge 1.21.8)
Pls someone help me with that

Edited by ArkWay on Thu, 02/05/2026 - 15:37
You can likely do at least…
Thu, 02/05/2026 - 17:40

You can likely do at least part of this using procedures and some global triggers

I suggest you check our tutorials collection playlist on our YouTube channel which contains many examples and tutorials that can help you get started with MCreator: https://www.youtube.com/playlist?list=PLAeL-oIFIEngE6jRgFYeFMfuj8WQsO3Ei

Joined Feb 2026
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
thanks!
Thu, 02/05/2026 - 20:15

thanks!