Skip to content

50 ways to kill Minecraft (WIP)

someaddons edited this page Nov 20, 2018 · 5 revisions

This will be a list of all common errors which can have fatal consequences considering Minecraft/Minecolonies development.

  1. When you let the citizen navigate to a possibly not initialized position (0,0,0) the pathfinder will crash the server because it will be quite possibly impossible to path there.
  2. If you have a message which does World world = ctx.getClientHandler().world, this message cannot be called on the serverside since casting will be executed on the server side which will cause issues. Better use WorldClient all along.
  3. If you create new NBT-Tags make sure no other name with this tag exists, else you will override it possibly!
  4. If you write a recursive function, add a max level to avoid stackoverflows by any chance! Minecraft is not determenistic!
  5. Set delays on every possible exit point.
  6. Don't request items every ticks, set delays.
  7. Don't fill up global lists, you have to either make sure to clear them or only build local lists.
  8. Catch Exceptions on different Threads and log those.