Trying to make a "scare" radius for a block

Started by Hellfire on Fri, 10/23/2020 - 19:50

Topic category: Help with modding (Java Edition)

Last seen on 20:46, 16. Nov 2020
Joined Oct 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Trying to make a "scare" radius for a block
Fri, 10/23/2020 - 19:50

So im new to making mods, and im trying to make a block that acts like a scarecrow for cows and such when right clicked. like how a skeleton runs away when its near a wolf. how would i make a procedure to do this?

Last seen on 03:14, 28. Oct 2020
Joined Jun 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Something along the lines of…
Sat, 10/24/2020 - 04:32

Something along the lines of "if (entity in radius X is cow), change it's velocity or teleport it away". It'd take time to tweak and get to work smoothly, but that should work.