Minecraft Data Packs / Other

A* path finding algorithm visualization

  • check_circle Functions
  • 2,814 views, 1 today
  • 147 downloads, 0 today
  • 15
  • 5
  • 2
hachihao792001's Avatar hachihao792001
Level 12 : Journeyman Miner
1
This is a data pack for visualizing the A* path finding algorithm

Use /function astar:info for this datapack's information

Use /function astar:givetool to get the necessary spawn eggs:
- src: the starting point of the search
- dest: the destination
- reset: reset the path finding
- 2D: can only search in 2 dimension
- 3D: search in 3 dimension
- walk: can't go to positions that have air beneath
- fly: can go anywhere (but still restricted in the chosen dimension)



Made by Ha Chi Hao
CompatibilityMinecraft 1.16
toMinecraft 1.17
Tags

Create an account or sign in to comment.

2
02/12/2021 7:11 pmhistory
Level 53 : Grandmaster Engineer
Zombie1111
Zombie1111's Avatar
Cool, i have a challange for you to add a parkour and survival setting

parkour, like walk but it knows how far the player can jump, so it can go over 4 long gaps and stuff.

Survival, it can open doors, break and place blocks. and then show the smartest path. Example it knows if its smarter/faster to go over the hill or just mine through it.

Pretty hard challange, good luck if you attempt it
2
02/10/2021 11:10 am
Level 62 : High Grandmaster Programmer
Ryuggo
Ryuggo's Avatar
Very impressive ! Great job
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome