Started by
AloneDumb
on
Topic category: Help with Minecraft modding (Java Edition)
Is there any way to see entity's that are within a certain block radius and make something happen to them not including yourself.
Topic category: Help with Minecraft modding (Java Edition)
Is there any way to see entity's that are within a certain block radius and make something happen to them not including yourself.
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.
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