gamemodsbr / mob-ai-for-nukkit Goto Github PK
View Code? Open in Web Editor NEWA project which ports the entities artificial intelligence from Java Edition to Nukkit as a plugin
A project which ports the entities artificial intelligence from Java Edition to Nukkit as a plugin
Have the pathfinder a logic, that the entity not runs into void?
I want to use the plugin you made.
But I don't know kotlin very well, so I try to compile it but I fail due to errors.
Can you help me? :c
Occurs randomly
java.lang.IndexOutOfBoundsException: toIndex (256) is greater than size (128).
at kotlin.collections.ArraysKt__ArraysJVMKt.copyOfRangeToIndexCheck(ArraysJVM.kt:49)
at kotlin.collections.ArraysKt___ArraysJvmKt.copyOfRange(_ArraysJvm.kt:1311)
at br.com.gamemods.mobai.ai.pathing.PathMinHeap.push(PathMinHeap.kt:11)
at br.com.gamemods.mobai.ai.pathing.PathNodeNavigator.findPathToAny(PathNodeNavigator.kt:80)
at br.com.gamemods.mobai.ai.pathing.PathNodeNavigator.findPathToAny(PathNodeNavigator.kt:27)
at br.com.gamemods.mobai.ai.pathing.EntityNavigation.findPathToAny(EntityNavigation.kt:95)
at br.com.gamemods.mobai.ai.pathing.EntityNavigation.findPathTo(EntityNavigation.kt:76)
at br.com.gamemods.mobai.ai.pathing.WalkingNavigation.findPathTo(WalkingNavigation.kt:64)
at br.com.gamemods.mobai.ai.pathing.EntityNavigation.startMovingTo(EntityNavigation.kt:104)
at br.com.gamemods.mobai.ai.goal.WanderAroundGoal.start(WanderAroundGoal.kt:52)
at br.com.gamemods.mobai.ai.goal.GoalSelector$WeightedGoal.start(GoalSelector.kt:105)
at br.com.gamemods.mobai.ai.goal.GoalSelector.update(GoalSelector.kt:63)
at br.com.gamemods.mobai.ai.goal.GoalSelector.tick(GoalSelector.kt:40)
at br.com.gamemods.mobai.entity.smart.EntityAI.tickAI(EntityAI.kt:43)
at br.com.gamemods.mobai.entity.smart.SmartEntity$DefaultImpls.tickMovement(SmartEntity.kt:130)
at br.com.gamemods.mobai.entity.smart.SmartAnimal$DefaultImpls.tickMovement(SmartAnimal.kt)
at br.com.gamemods.mobai.entity.passive.SmartPig.tickMovement(SmartPig.kt:17)
at br.com.gamemods.mobai.entity.smart.SmartEntity$DefaultImpls.onUpdate(SmartEntity.kt:94)
at br.com.gamemods.mobai.entity.smart.SmartAnimal$DefaultImpls.onUpdate(SmartAnimal.kt)
at br.com.gamemods.mobai.entity.passive.SmartPig.onUpdate(SmartPig.kt:36)
at cn.nukkit.level.Level.lambda$doTick$2(Level.java:647)
at java.util.Collection.removeIf(Collection.java:414)
at cn.nukkit.level.Level.doTick(Level.java:647)
at cn.nukkit.level.LevelManager.tick(LevelManager.java:108)
at cn.nukkit.Server.tick(Server.java:966)
at cn.nukkit.Server.tickProcessor(Server.java:789)
at cn.nukkit.Server.start(Server.java:757)
at cn.nukkit.Server.boot(Server.java:593)
at cn.nukkit.Nukkit.main(Nukkit.java:144)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.