Help for a "wave defense" mod I'm working on

Started by ruoshili on

Topic category: Help with Minecraft modding (Java Edition)

Active 1 month ago
Joined Jan 2025
Points:
45

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 6
Help for a "wave defense" mod I'm working on

I'm trying to make a minecraft map inspired by TF2's Mann vs. Machine gamemode, and the first step requires me to make a procedure that gives the robots an AI able to pathfind to the bomb chute (and maybe a second objective along the way). I can't seem to figure it out no matter how hard I try, which is why I'm looking for help. 

I'm working on version 2024.4

Thanks in advance!

 

Active 4 months ago
Joined Oct 2021
Points:
536

User statistics:

  • Modifications: 0
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 52
use the block "attempt to…
Wed, 03/12/2025 - 18:19

use the block "attempt to make event/target entity find path x, y, z with speed factor [number]" and put the x,y,z values of the block that marks your objective.

Active 4 months ago
Joined Oct 2021
Points:
536

User statistics:

  • Modifications: 0
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 52
you need to make a procedure…
Wed, 03/12/2025 - 18:19

you need to make a procedure seperate from your build in entity AI by using "on entity tick update" and checking if the entity is yours

Active 1 month ago
Joined Jan 2025
Points:
45

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 6
wait, but how does it know…
Wed, 03/12/2025 - 23:37

wait, but how does it know where the block is?

Active 4 months ago
Joined Oct 2021
Points:
536

User statistics:

  • Modifications: 0
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 52
You put the cords in…
Thu, 03/13/2025 - 15:32

You put the cords in manually.

Active 1 month ago
Joined Jan 2025
Points:
45

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 6
I was hoping for a more…
Thu, 03/13/2025 - 21:10

I was hoping for a more nuanced approach, I tried using gamerules for that purpouse but then they just wouldnt pathfind.

Entering them manually would mean they only had 1 possible target

Active 4 months ago
Joined Oct 2021
Points:
536

User statistics:

  • Modifications: 0
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 52
Then it might be best to…
Thu, 03/13/2025 - 23:14

Then it might be best to just create a custom element for it.

Active 1 month ago
Joined Jan 2025
Points:
45

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 6
ok then, though I never…
Thu, 03/13/2025 - 23:35

ok then, though I never properly learnt to code in java

 

I guess I'll have to watch some tutorials... 

thanks for the advice!