Test for what entity's are around you with in a radius

Started by AloneDumb on

Topic category: Help with modding (Java Edition)

Last seen on 22:51, 21. Jun 2024
Joined May 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Test for what entity's are around you with in a radius

Is there any way to see entity's that are within a certain block radius and make something happen to them not including yourself.

Last seen on 18:02, 21. Jun 2024
Joined Jul 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I believe this can be done…
Fri, 05/24/2024 - 23:11

I believe this can be done with the "for each entity in a radius" block. It may have to be triggered by something like a player tick update though, and you would have to specify the entity iterator.

Last seen on 00:03, 6. Jun 2024
Joined Jun 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
hi! here is metod to find…
Wed, 06/05/2024 - 03:05

hi! here is metod to find entities around this block (ofc you need to do some changes depending on your mod):

https://pastebin.com/S2Q3sVwb

an example of using this method with your block:

https://pastebin.com/UwP8XiEY

if you have questions i will answer