How do I find a random mob?

Started by Vizeon on Tue, 03/17/2020 - 16:12

Topic category: Help with modding (Java Edition)

Last seen on 23:46, 17. Mar 2020
Joined Feb 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How do I find a random mob?
Tue, 03/17/2020 - 16:12

So I've been having a problem with making a piece of code that finds a random mob so I can keep summoning lightning bolts on it until it dies. I am stuck and really have no idea how to do this. Thank you so much and have a good day!

Last seen on 23:46, 17. Mar 2020
Joined Feb 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Oh, and by the way, this is…
Tue, 03/17/2020 - 16:14

Oh, and by the way, this is supposed to work by having an item in my inventory. Hope this helps!