Detecting mobs around a block

Started by Commqnd on

Topic category: Help with modding (Java Edition)

Last seen on 05:29, 4. Feb 2023
Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Detecting mobs around a block

I'm making an item where if you right click on a block, it will pull mobs in an 8 block radius into that block, but I cannot figure out how to target the mobs around that block. If anyone knows how to do it please help me out, I'm not very good with coding :(

Last seen on 06:05, 28. Mar 2024
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
For each entity iterator >>>…
Thu, 01/06/2022 - 11:00

For each entity iterator >>>>> set iterator location to your block

Last seen on 05:29, 4. Feb 2023
Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
could you show me a…
Thu, 01/06/2022 - 22:27

could you show me a screenshot or something on how to do that i cant find any blocks to do that bc am brainded :(

Last seen on 06:05, 28. Mar 2024
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
just write in the search…
Fri, 01/07/2022 - 06:25

just write in the search field come on

 

For each entity iterator (set your values) ===> set iterator location to (set your values)