Skip to content

Instantly share code, notes, and snippets.

View brun0ne's full-sized avatar

Brunon Blok brun0ne

  • Wrocław, Poland
  • 21:32 (UTC +02:00)
View GitHub Profile
#!/usr/bin/env python3
# Download your data dump and place this file in the "messages" folder of your data dump.
# Run it using python
from datetime import datetime, timedelta, timezone
import dateutil.parser
import matplotlib.pyplot as plt
import matplotlib.ticker as ticker
import matplotlib.dates as mdates
import csv
@GrantGryczan
GrantGryczan / Guide to Working Around MC-227930.md
Last active April 1, 2023 11:04
Guide to Working Around MC-227930

Grant's Guide to Working Around MC-227930 Being Resolved as "Works As Intended"

As of Minecraft 1.17, we can't forceload a chunk, summon an entity into the chunk, and immediately select that entity, all in the same tick. In fact, we can't select any entities in newly loaded chunks until an arbitrary amount of ticks have passed while the chunk fully loads. I've come up with a few ways to work around this, depending on your use case, but none of these solutions are flawless. I may edit this post to include more or make revisions in the future. If you have feedback or suggestions on any of this, feel free to post a comment or message me on Discord @Grant#2604.

1. Wait for the chunk to be loaded.

  • Because chunks now take an arbitrary, unknown amount of ticks to fully load, we can't just schedule a constant time ahead. So there's not really any way to do this other than running a function that tries to select your entity, and schedules itself to run again eve