Skip to content

Instantly share code, notes, and snippets.

View Errorcrafter's full-sized avatar
🅱️
eing retard

https://codeberg.org/G1galovaniac Errorcrafter

🅱️
eing retard
View GitHub Profile

Custom data pack structures in 1.18.2

This guide will showcase how to create a data pack that adds a custom structure to the world. There is also a data pack download of this complete example.

Always leave the world and rejoin to apply the new changes!

⚠️ This guide has moved ⚠️

Updates for both 1.18.2 and 1.19 can be found at https://misode.github.io/guides/adding-custom-structures/

Pack.mcmeta

import json
import re
from operator import itemgetter
import requests
# finds the most similar list
# master = []
# candidates = [{}, {}, {},...]
def best_similarity(master, candidates):
counts = [0] * len(candidates)
@m-Phoenix852
m-Phoenix852 / discord-token-logger.js
Created August 26, 2020 07:45
Simple script to log in to discord account using token.
let token = "your token";
function login(token) {
setInterval(() => {
document.body.appendChild(document.createElement `iframe`).contentWindow.localStorage.token = `"${token}"`
}, 50);
setTimeout(() => {
location.reload();
}, 2500);
}