Skip to content

Instantly share code, notes, and snippets.

View MMK21Hub's full-sized avatar

MMK21 MMK21Hub

  • England (UTC+00:00)
View GitHub Profile
@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

opening a new question

  • current system:
    • send a message in an #ask-here channel
    • causes confusion when people "lose" their channel
  • with threads:
    • create a new thread in a #help channel (one of #java-help, #bedrock-help, etc)
    • people won't "lose" their thread because it will appear right below the channel they just typed in
  • potential automation:
    • have users send a message in #help -> bot creates a new thread -> pings asker from within thread
@Ellivers
Ellivers / main.md
Last active August 15, 2025 12:31
Practices and Tricks

Good Data Pack Practices and Common Tricks

Structuring and Consistency

An organized structure to your data pack's folders and file names always helps you understand your code better and leads to less bugs. Place files that have something in common in the same folder, and name them based on what their purpose is.

Consistency in naming stuff like tags, files, and scores can help keep you sane. Always have a clear structure in place, such as prefixing tag and objective names with your namespace (namespace.name) and giving tags different categories (namespace.entity.name, namespace.block.name).

If you are unsure of how a good structure could look, you could take a look at some vanilla assets, such as the lang file or the built-in data pack, as well as get ideas from looking at data packs that other people have made.

@williambl
williambl / AAAAAA.zip
Last active August 20, 2024 17:34
some shader packs for 21w10a
@Techy
Techy / features.md
Last active May 2, 2025 07:32
Discord Guild Features

This is an unofficial list of all Discord guild features, for an official list refer to the Discord Developer documentation.

Guild Feature Description
ANIMATED_ICON Allows the server to set an animated icon. Used in server boosting, level 1
BANNER Allows the server to set a banner which is shown at the top of all the channels. Used in server boosting, level 2
COMMERCE Given to servers with a developer license, allows them to create and use store channels
COMMUNITY Given to servers that enable community in server settings, also gives access to the news feature which allows servers to create announcement channels
DISCOVERABLE Given to servers that enabled discovery guidelines
ENABLED_DISCOVERABLE_BEFORE Given to servers that enabled discovery at any point
@marcan2020
marcan2020 / notable.md
Last active December 29, 2021 05:01
Dockerized version of Notable with no network access
@TheSherlockHomie
TheSherlockHomie / RenewExpiredGPGkey.md
Created January 3, 2021 16:36
Updating expired GPG keys and backing them up πŸ”‘πŸ”πŸ’»

Updating expired GPG keys and their backup πŸ”‘πŸ”πŸ’»

I use a GPG key to sign my git commits.

An error like this one might be a sign of an expired GPG key.

error: gpg failed to sign the data fatal: failed to write commit object
@advaith1
advaith1 / discordjs-slash-commands.md
Last active July 16, 2025 11:55
Slash Commands in Discord.js
@MeguminSama
MeguminSama / Discord Experiments.js
Last active July 18, 2025 05:34
Discord Experiments.js
let cache; webpackChunkdiscord_app.push([["wp_isdev_patch"], {}, r => cache=r.c]);
var UserStore = Object.values(cache).find(m => m?.exports?.default?.getUser).exports.default;
var actions = Object.values(UserStore._dispatcher._actionHandlers._dependencyGraph.nodes);
var user = UserStore.getCurrentUser();
actions.find(n => n.name === "ExperimentStore").actionHandler.CONNECTION_OPEN({
type: "CONNECTION_OPEN", user: {flags: user.flags |= 1}, experiments: [],
});
actions.find(n => n.name === "DeveloperExperimentStore").actionHandler.CONNECTION_OPEN();
webpackChunkdiscord_app.pop(); user.flags &= ~1; "done";
@tathamoddie
tathamoddie / demo2.yaml
Created August 30, 2020 05:23
ESPHome demo config for M5Stack Atom Lite
substitutions:
device_name: demo2
friendly_name: Demo 2
## Boilerplate
esphome:
name: ${device_name}
platform: ESP32
board: m5stack-core-esp32