New buildings automatically finishing when builder takes job, not actually built
Closed this issue · 12 comments
Is there an existing issue for this?
- I have searched the existing issues.
Are you using the latest MineColonies Version?
- I am running the latest beta/release version of MineColonies for my Minecraft version.
I am also running the latest versions of other mods that are part of my problem.
Did you check on the Wiki? or ask on Discord?
- I checked the MineColonies Wiki and made sure my issue is not covered there. Or I was sent from discord to open an issue here.
What were you playing at the time? Were you able to reproduce it in both settings?
- Single Player
- Multi Player
Minecraft Version
1.21
MineColonies Version
1.1.1136-1.21.1
Structurize Version
1.15.34-1.21.1
Related Mods and their Versions
Current Behavior
When the builder accepts a job for a new hut it announces the hut is complete, it claims the chunks and i am able to assign a worker, but nothing was build or excavated. I then have to go in and "repair" the hut, the builder then builds it as if it were an upgrade, replacing blocks then excavating unnecessary blocks.
I am also receiving the "AI error please report" complaint from my citizens where no obvious error is present in the log.
Expected Behavior
I expect the builder to act normally.
Reproduction Steps
Place a new hut block.
Request build.
Logs
https://gist.github.com/gonzbm01-bit/5cc54d860f0880141dd7120b0e516502
Anything else?
No response
Footer
Viewers
- Add a 👍 reaction to the bug report if you are also affected. This helps the bug report become more visible without cluttering the comments.
⚠️ Only add a comment if you have new insights or background information not already mentioned. Off-topic or "+1" comments will be deleted to keep the discussion focused.
Happening on 1.20.1 1055 too
Planning on getting some logs bit too tired maybe in an hour or so [logs copied already but need sanitizing)
probably related to the cloed one for canceling job? #11215
although I'm using the latest 1138 and I'm not seeing this behavior, have build and upgrade a couple of buildings already
Snippet. Full log coming soon.
[01Oct2025 17:24:40.603] [Server thread/WARN] [minecolonies/]: Statemachine for state COMPLETE_BUILD threw an exception:
java.lang.NullPointerException: Cannot invoke "com.minecolonies.api.colony.workorders.IBuilderWorkOrder.getBlueprint()" because the return value of "com.minecolonies.core.colony.jobs.AbstractJobStructure.getWorkOrder()" is null
at com.minecolonies.core.entity.ai.workers.AbstractEntityAIStructureWithWorkOrder.executeSpecificCompleteActions(AbstractEntityAIStructureWithWorkOrder.java:375) ~[minecolonies-1.20.1-1.1.1055-snapshot.jar%23730!/:1.20.1-1.1.1055-snapshot]
at com.minecolonies.core.entity.ai.workers.production.EntityAIStructureMiner.executeSpecificCompleteActions(EntityAIStructureMiner.java:910) ~[minecolonies-1.20.1-1.1.1055-snapshot.jar%23730!/:1.20.1-1.1.1055-snapshot]
at com.minecolonies.core.entity.ai.workers.AbstractEntityAIStructure.completeBuild(AbstractEntityAIStructure.java:251) ~[minecolonies-1.20.1-1.1.1055-snapshot.jar%23730!/:1.20.1-1.1.1055-snapshot]
at com.minecolonies.api.entity.ai.statemachine.basestatemachine.BasicTransition.getNextState(BasicTransition.java:104) ~[minecolonies-1.20.1-1.1.1055-snapshot.jar%23730!/:1.20.1-1.1.1055-snapshot]
at com.minecolonies.api.entity.ai.statemachine.basestatemachine.BasicStateMachine.transitionToNext(BasicStateMachine.java:181) ~[minecolonies-1.20.1-1.1.1055-snapshot.jar%23730!/:1.20.1-1.1.1055-snapshot]
at com.minecolonies.api.entity.ai.statemachine.basestatemachine.BasicStateMachine.checkTransition(BasicStateMachine.java:172) ~[minecolonies-1.20.1-1.1.1055-snapshot.jar%23730!/:1.20.1-1.1.1055-snapshot]
at com.minecolonies.api.entity.ai.statemachine.tickratestatemachine.TickRateStateMachine.checkTransition(TickRateStateMachine.java:125) ~[minecolonies-1.20.1-1.1.1055-snapshot.jar%23730!/:1.20.1-1.1.1055-snapshot]
at com.minecolonies.api.entity.ai.statemachine.tickratestatemachine.TickRateStateMachine.tick(TickRateStateMachine.java:101) ~[minecolonies-1.20.1-1.1.1055-snapshot.jar%23730!/:1.20.1-1.1.1055-snapshot]
at com.minecolonies.core.entity.ai.workers.AbstractAISkeleton.tick(AbstractAISkeleton.java:63) ~[minecolonies-1.20.1-1.1.1055-snapshot.jar%23730!/:1.20.1-1.1.1055-snapshot]
at com.minecolonies.core.entity.ai.workers.CitizenAI.lambda$registerWorkAI$6510a9$2(CitizenAI.java:99) ~[minecolonies-1.20.1-1.1.1055-snapshot.jar%23730!/:1.20.1-1.1.1055-snapshot]
at com.minecolonies.api.entity.ai.statemachine.basestatemachine.BasicTransition.getNextState(BasicTransition.java:104) ~[minecolonies-1.20.1-1.1.1055-snapshot.jar%23730!/:1.20.1-1.1.1055-snapshot]
at com.minecolonies.api.entity.ai.statemachine.basestatemachine.BasicStateMachine.transitionToNext(BasicStateMachine.java:181) ~[minecolonies-1.20.1-1.1.1055-snapshot.jar%23730!/:1.20.1-1.1.1055-snapshot]
at com.minecolonies.api.entity.ai.statemachine.basestatemachine.BasicStateMachine.checkTransition(BasicStateMachine.java:172) ~[minecolonies-1.20.1-1.1.1055-snapshot.jar%23730!/:1.20.1-1.1.1055-snapshot]
at com.minecolonies.api.entity.ai.statemachine.tickratestatemachine.TickRateStateMachine.checkTransition(TickRateStateMachine.java:125) ~[minecolonies-1.20.1-1.1.1055-snapshot.jar%23730!/:1.20.1-1.1.1055-snapshot]
at com.minecolonies.api.entity.ai.statemachine.tickratestatemachine.TickRateStateMachine.tick(TickRateStateMachine.java:101) ~[minecolonies-1.20.1-1.1.1055-snapshot.jar%23730!/:1.20.1-1.1.1055-snapshot]
at com.minecolonies.core.entity.citizen.EntityCitizen.lambda$new$a8d948bd$3(EntityCitizen.java:277) ~[minecolonies-1.20.1-1.1.1055-snapshot.jar%23730!/:1.20.1-1.1.1055-snapshot]
at com.minecolonies.api.entity.ai.statemachine.basestatemachine.BasicTransition.checkCondition(BasicTransition.java:113) ~[minecolonies-1.20.1-1.1.1055-snapshot.jar%23730!/:1.20.1-1.1.1055-snapshot]
at com.minecolonies.api.entity.ai.statemachine.basestatemachine.BasicStateMachine.checkTransition(BasicStateMachine.java:161) ~[minecolonies-1.20.1-1.1.1055-snapshot.jar%23730!/:1.20.1-1.1.1055-snapshot]
at com.minecolonies.api.entity.ai.statemachine.tickratestatemachine.TickRateStateMachine.checkTransition(TickRateStateMachine.java:125) ~[minecolonies-1.20.1-1.1.1055-snapshot.jar%23730!/:1.20.1-1.1.1055-snapshot]
at com.minecolonies.api.entity.ai.statemachine.tickratestatemachine.TickRateStateMachine.tick(TickRateStateMachine.java:101) ~[minecolonies-1.20.1-1.1.1055-snapshot.jar%23730!/:1.20.1-1.1.1055-snapshot]
at com.minecolonies.api.entity.citizen.AbstractEntityCitizen.m_8107_(AbstractEntityCitizen.java:432) ~[minecolonies-1.20.1-1.1.1055-snapshot.jar%23730!/:1.20.1-1.1.1055-snapshot]
at com.minecolonies.core.entity.citizen.EntityCitizen.m_8107_(EntityCitizen.java:712) ~[minecolonies-1.20.1-1.1.1055-snapshot.jar%23730!/:1.20.1-1.1.1055-snapshot]
at net.minecraft.world.entity.LivingEntity.m_8119_(LivingEntity.java:2298) ~[server-1.20.1-20230612.114412-srg.jar%23885!/:?]
at net.minecraft.world.entity.Mob.m_8119_(Mob.java:337) ~[server-1.20.1-20230612.114412-srg.jar%23885!/:?]
at net.minecraft.server.level.ServerLevel.observable$track(ServerLevel.java:12669) ~[server-1.20.1-20230612.114412-srg.jar%23885!/:?]
at net.minecraft.server.level.ServerLevel.redirect$dhl000$observable$onTickNonPassenger(ServerLevel.java:12685) ~[server-1.20.1-20230612.114412-srg.jar%23885!/:?]
at net.minecraft.server.level.ServerLevel.m_8647_(ServerLevel.java:693) ~[server-1.20.1-20230612.114412-srg.jar%23885!/:?]
at net.minecraft.world.level.Level.m_46653_(Level.java:479) ~[server-1.20.1-20230612.114412-srg.jar%23885!/:?]
at net.minecraft.server.level.ServerLevel.m_184063_(ServerLevel.java:343) ~[server-1.20.1-20230612.114412-srg.jar%23885!/:?]
at net.minecraft.world.level.entity.EntityTickList.m_156910_(EntityTickList.java:54) ~[server-1.20.1-20230612.114412-srg.jar%23885!/:?]
at net.minecraft.server.level.ServerLevel.m_8793_(ServerLevel.java:323) ~[server-1.20.1-20230612.114412-srg.jar%23885!/:?]
at net.minecraft.server.MinecraftServer.m_5703_(MinecraftServer.java:893) ~[server-1.20.1-20230612.114412-srg.jar%23885!/:?]
at net.minecraft.server.dedicated.DedicatedServer.m_5703_(DedicatedServer.java:283) ~[server-1.20.1-20230612.114412-srg.jar%23885!/:?]
at net.minecraft.server.MinecraftServer.m_5705_(MinecraftServer.java:814) ~[server-1.20.1-20230612.114412-srg.jar%23885!/:?]
at net.minecraft.server.MinecraftServer.m_130011_(MinecraftServer.java:661) ~[server-1.20.1-20230612.114412-srg.jar%23885!/:?]
at net.minecraft.server.MinecraftServer.m_206580_(MinecraftServer.java:251) ~[server-1.20.1-20230612.114412-srg.jar%23885!/:?]
at java.lang.Thread.run(Thread.java:1583) ~[?:?]
[01Oct2025 17:24:40.605] [Server thread/ERROR] [minecolonies/]: Pausing Citizen Chana B. Cod (com.minecolonies.job.miner) in colony:19 at BlockPos{x=-9472, y=54, z=7059} for 1600 Seconds because of error:
[01Oct2025 17:24:40.605] [Server thread/WARN] [minecolonies/]: AI history for citizen error:literal{Current state:}[siblings=[literal{COMPLETE_BUILD
}[style={color=gold}]]]
The above has many errors working on colonies where the builder picks up a build order and immediately "finishes" without doing anything. The affected player could progress (I think) by then telling builder to repair
Yah just saw it happening on my last barracks, asked for repair then it actually start building, weird xD .
Happened to me multiple times. It happens whenever I queue up a 2nd building to be built - the builder builds the 1st building as normal, and then the 2nd building is immediately "built" despite not being built. Hope this info is helpful
Edit: Versions below
minecolonies-1.20.1-1.1.1055-snapshot
structurize-1.20.1-1.0.784-snapshot
domum_ornamentum-1.20.1-1.0.291-snapshot-universal
That has to be more to it, I tried in a clean install, couldn't make it happen by just queueing more buildings. I saw it happening on my big city, but couldn't reproduce reliable with just minecolonies
Hmm you are right, it happened to me 3 times over the last few days and I gave up queueing multiple builds since - but I just retried it and this time it didn't happen. Odd.
However, it never happened once in like 20 hours of gameplay provided I did not give queue up more than 1 build at a time so I do think it is relevant.