Match vanilla drowned AI, skeleton weapon goals, trader look goals and monster idle time

Drowned register Zombie's goals and then Drowned.addBehaviourGoals (go to
water, trident and melee attacks with okTarget, go to beach, swim up,
RandomStrollGoal) with DrownedMoveControl, Drowned.travelInWater and
AmphibiousPathNavigation. Skeletons get their bow from finalizeSpawn and
pick the bow goal or the AbstractSkeleton$1 melee goal from the held item,
as reassessWeaponGoal does. Monster.aiStep adds 2 to noActionTime in bright
light (raiders always), which stops RandomStrollGoal; LookAtPlayerGoal
supports Mob.class targets and InteractGoal, used by the wandering trader
(with vanilla's AvoidEntityGoal order), illagers, ravagers and vexes.
Entities below the world take 4 damage a tick instead of vanishing, water
travel uses the 0.8F/0.6F/0.3F float constants, and MobWorld carries the
level's sea level.

The oracle refreshes the player's water state after placing it (it is never
ticked, so isInWater kept the previous scenario's value) and keeps its world
under the harness build directory, deleting it before halting instead of
leaving /tmp/horizon-mob-ai* behind. The probe reports KILLED removals.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Ludovic Marie
2026-10-11 18:56:36 +02:00
parent d4144d33b4
commit d2c91b513b
19 changed files with 694 additions and 77 deletions
@@ -0,0 +1,96 @@
---- Minecraft Chunk IO Error Report ----
// Let's not do it again...
Time: 2026-10-11 16:47:20
Description: Chunk save failure
java.io.IOException: No space left on device
at java.base/sun.nio.ch.UnixFileDispatcherImpl.pwrite0(Native Method)
at java.base/sun.nio.ch.UnixFileDispatcherImpl.pwrite(UnixFileDispatcherImpl.java:71)
at java.base/sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:135)
at java.base/sun.nio.ch.IOUtil.write(IOUtil.java:102)
at java.base/sun.nio.ch.IOUtil.write(IOUtil.java:72)
at java.base/sun.nio.ch.FileChannelImpl.writeInternal(FileChannelImpl.java:1261)
at java.base/sun.nio.ch.FileChannelImpl.implWrite(FileChannelImpl.java:1234)
at java.base/sun.nio.ch.FileChannelImpl.write(FileChannelImpl.java:1216)
at net.minecraft.world.level.chunk.storage.RegionFile.write(RegionFile.java:420)
at net.minecraft.world.level.chunk.storage.RegionFile$ChunkBuffer.close(RegionFile.java:393)
at java.base/java.util.zip.DeflaterOutputStream.close(DeflaterOutputStream.java:320)
at java.base/java.io.FilterOutputStream.close(FilterOutputStream.java:190)
at java.base/java.io.FilterOutputStream.close(FilterOutputStream.java:190)
at net.minecraft.world.level.chunk.storage.RegionFileStorage.write(RegionFileStorage.java:117)
at net.minecraft.world.level.chunk.storage.IOWorker.runStore(IOWorker.java:280)
at net.minecraft.world.level.chunk.storage.IOWorker.storePendingChunk(IOWorker.java:270)
at net.minecraft.util.thread.StrictQueue$RunnableWithPriority.run(StrictQueue.java:50)
at net.minecraft.util.Util.runNamed(Util.java:351)
at net.minecraft.util.thread.AbstractConsecutiveExecutor.pollTask(AbstractConsecutiveExecutor.java:50)
at net.minecraft.util.thread.AbstractConsecutiveExecutor.run(AbstractConsecutiveExecutor.java:60)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1090)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:614)
at java.base/java.lang.Thread.run(Thread.java:1474)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- Head --
Thread: IO-Worker-37
Stacktrace:
at java.base/sun.nio.ch.UnixFileDispatcherImpl.pwrite0(Native Method)
at java.base/sun.nio.ch.UnixFileDispatcherImpl.pwrite(UnixFileDispatcherImpl.java:71)
at java.base/sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:135)
at java.base/sun.nio.ch.IOUtil.write(IOUtil.java:102)
at java.base/sun.nio.ch.IOUtil.write(IOUtil.java:72)
at java.base/sun.nio.ch.FileChannelImpl.writeInternal(FileChannelImpl.java:1261)
at java.base/sun.nio.ch.FileChannelImpl.implWrite(FileChannelImpl.java:1234)
at java.base/sun.nio.ch.FileChannelImpl.write(FileChannelImpl.java:1216)
at net.minecraft.world.level.chunk.storage.RegionFile.write(RegionFile.java:420)
at net.minecraft.world.level.chunk.storage.RegionFile$ChunkBuffer.close(RegionFile.java:393)
at java.base/java.util.zip.DeflaterOutputStream.close(DeflaterOutputStream.java:320)
at java.base/java.io.FilterOutputStream.close(FilterOutputStream.java:190)
at java.base/java.io.FilterOutputStream.close(FilterOutputStream.java:190)
at net.minecraft.world.level.chunk.storage.RegionFileStorage.write(RegionFileStorage.java:117)
at net.minecraft.world.level.chunk.storage.IOWorker.runStore(IOWorker.java:280)
at net.minecraft.world.level.chunk.storage.IOWorker.storePendingChunk(IOWorker.java:270)
at net.minecraft.util.thread.StrictQueue$RunnableWithPriority.run(StrictQueue.java:50)
at net.minecraft.util.Util.runNamed(Util.java:351)
at net.minecraft.util.thread.AbstractConsecutiveExecutor.pollTask(AbstractConsecutiveExecutor.java:50)
-- Chunk Info --
Details:
Level: aiworld
Dimension: minecraft:overworld
Storage: chunk
Position: [680, 15]
Stacktrace:
at net.minecraft.server.MinecraftServer.lambda$storeChunkIoError$0(MinecraftServer.java:2225)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1090)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:614)
at java.base/java.lang.Thread.run(Thread.java:1474)
-- System Details --
Details:
Minecraft Version: 26.3
Minecraft Version ID: 26.3
Operating System: Linux (amd64) version 6.18.55
Java Version: 25.0.4.1, N/A
Java VM Version: OpenJDK 64-Bit Server VM (mixed mode, sharing), Oracle Corporation
Memory: 239988568 bytes (228 MiB) / 1694498816 bytes (1616 MiB) up to 3221225472 bytes (3072 MiB)
Memory (heap): init: 436MiB, used: 1383MiB, committed: 1616MiB, max: 3072MiB
Memory (non-heap): init: 007MiB, used: 123MiB, committed: 135MiB, max: 000MiB
CPUs: 24
processor: ~~ERROR~~ NoClassDefFoundError: Could not initialize class oshi.software.os.linux.LinuxOperatingSystem
Graphics card #0 name: AD103 [GeForce RTX 4080]
Graphics card #0 vendor: NVIDIA Corporation (0x10de)
Graphics card #0 VRAM (MiB): 16416.00
Graphics card #0 deviceId: 0x2704
Graphics card #0 versionInfo: unknown
memory: ~~ERROR~~ NoClassDefFoundError: Could not initialize class oshi.hardware.platform.linux.LinuxGlobalMemory
Space in storage for jna.tmpdir (MiB): <path not set>
Space in storage for org.lwjgl.system.SharedLibraryExtractPath (MiB): <path not set>
Space in storage for io.netty.native.workdir (MiB): <path not set>
Space in storage for java.io.tmpdir (MiB): available: 8.54, total: 936786.75
Space in storage for workdir (MiB): available: 8.54, total: 936786.75
software: ~~ERROR~~ NoClassDefFoundError: Could not initialize class oshi.software.os.linux.LinuxOperatingSystem
JVM Flags: 1 total; -Xmx3g
Debug Flags: 0 total;