Included content
| Name | |
|---|---|
![]() | A* Pathfinding |
"ai:api/actions/break_block"
Usage: execute as <ai> run function ai:api/actions/break_block
Once Ran, this entity will shoot a Raycast and breaks the block that got hit by the raycast. This Raycast is shot in the direction the entity faces.
"ai:api/toggle/can_open_doors/true | false"
Usage: execute as <ai> run function ai:api/toggle/can_open_doors/true or false
DEFAULT: TRUE
Once Ran, this entity will be able to Open (wooden) Doors and Pathfind through Open Iron Doors. Copper Doors have been excluded from this list by default.
"ai:api/toggle/can_close_doors"
Usage: execute as <ai> run function ai:api/toggle/can-close-doors/true or false
DEFAULT: TRUE
Once Ran, this entity will be able to Close (wooden) Doors after walking through them, similar to a villager in the base vanilla game. Copper Doors have been excluded from this list by default.
Note, the AI may still get stuck at doors, for now.
ai.baseReach: It stores the Reach of the AI Entity (used for actions/break_block API)
| Name | |
|---|---|
![]() | A* Pathfinding |
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:3tZhmiwq:rnpVSwXn"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:3tZhmiwq:rnpVSwXn"
}