Skip to content

Instantly share code, notes, and snippets.

View python_abcs.py
from abc import ABC, abstractmethod
class AbstractThing(ABC):
@classmethod
@abstractmethod
def classy(cls):
...
@classmethod
View help_chats_vs_threads.md

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
@Arcensoth
Arcensoth / characters.md
Created Feb 20, 2021
Minecraft Special Characters
View characters.md

image

tellraw @a "\n  ① ② ③ ④ ⑤ ⑥ ⑦ ⑧ ⑨ ⑩ ⑪ ⑫ ⑬ ⑭ ⑮ ⑯ ⑰ ⑱ ⑲ ⑳"
tellraw @a "\n  Ⓐ Ⓑ Ⓒ Ⓓ Ⓔ Ⓕ Ⓖ Ⓗ Ⓘ Ⓙ Ⓚ Ⓛ Ⓜ Ⓝ Ⓞ Ⓟ Ⓠ Ⓡ Ⓢ Ⓣ Ⓤ Ⓥ Ⓦ Ⓧ Ⓨ Ⓩ"
tellraw @a "\n  ⓐ ⓑ ⓒ ⓓ ⓔ ⓕ ⓖ ⓗ ⓘ ⓙ ⓚ ⓛ ⓜ ⓝ ⓞ ⓟ ⓠ ⓡ ⓢ ⓣ ⓤ ⓥ ⓦ ⓧ ⓨ ⓩ"
tellraw @a "\n  ░ ▒ ▓ │ ┤ ╡ ╢ ╖ ╕ ╣ ║ ╗ ╝ ╜ ╛ ┐ └ ┴ ┬ ├ ─ ┼ ╞ ╟ ╚ ╔ ╩ ╦ ╠ ═ ╬ ╧ ╨ ╤ ╥ ╙ ╘ ╒ ╓ ╫ ╪ ┘ ┌ █ ▄ ▌ ▐ ▀"
tellraw @a "\n  ☲ ☵ ☰ ☱ ☳ ☴ ☶ ☷ ⅒ ⅘ ⅛ ⅜ ⅝ ⅞ ⅓ ⅔ ⅐ ⅑ ⅕ ⅖ ⅗ ⅙ ⅚ ⅟ ↉"
tellraw @a "\n  ⁰ ¹ ³ ⁴ ⁵ ⁶ ⁷ ⁸ ⁹ ⁺ ⁻ ⁼ ⁽ ⁾ ₀ ₁ ₂ ₃ ₄ ₅ ₆ ₇ ₈ ₉ ₊ ₋ ₌ ₍ ₎"
tellraw @a "\n  ∅ ∈ ≡ ± ≥ ≤ ⌠ ⌡ ÷ ≈ ° ∙ · √ ⁿ ² ■ ☈ Є ∫ ∮ − ∓ ∞ ∝ ⌀ ⌂ ⌘ 〒 ↔ ⇒ ⇏ ⇔ ⇵"
View advance_prng.mcfunction
# Advance the given PRNG seed, optionally using salt to diverge into a new stream.
# multiplier = 1103515245
# increment = 12345
# truncate = 16
# start with the seed
scoreboard players operation $result foo._out = $seed foo._in
# mutate the seed by multiplying by the salt
View blueprints.md

UPDATE: See: https://github.com/Arcensoth/blueprints

Blueprints

Blueprints are a text-based, human-readable/writable structure format. A blueprint compiles-down to a single NBT structure file that can be loaded with a structure block.

Note that all examples use YAML instead of JSON, but the YAML used is 1:1 convertible to/from JSON.

demo:bricks

View 1.selectors_with_operator_overloading.py
# Selectors with operator overloading:
# (-) Pollutes module scope with many imports
# (+) Arguably more expressive/readable
# (+) More creative potential more new functionality
from pyckaxe.gamemodes import spectator
from pyckaxe.selectors import a
from pyckaxe.selector_arguments import gamemode, tag, distance, scores, score, advancements, advancement, nbt, level, limit
from pyckaxe.selector_sorts import nearest
View blue_shulker_box.json
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
View mcextras.ahk
+Esc::ExitApp
#IfWinActive Minecraft
!z::Send 1
!x::Send 2
!c::Send 3
!a::Send 4
!s::Send 5
!d::Send 6
!q::Send 7
View README.md

VSCode preferences

Extensions

General

  • Gruvbox Themes: tomphilbin.gruvbox-themes
  • File Utils: sleistner.vscode-fileutils
  • Todo Tree: gruntfuggly.todo-tree

Web dev

  • Debugger for Chrome: msjsdiag.debugger-for-chrome
  • Prettier - Code formatter: esbenp.prettier-vscode
@Arcensoth
Arcensoth / !README.md
Last active Dec 23, 2019
Iterating over NBT lists using functions
View !README.md