assuming getSpawnRadius -> 10 for now for simplicity
and assuming player is further from the world border than the spawnRadius, again, for simplicity
i = 10: spawnRadius
l = 21: width / height of spawn square
m = 441: area of spawn square
k = m = 441: area of spawn square (integer overflow safe)
n = 17: spawnOffsetMultiplier, is 17 if area of spawn square is > 16, which it almost certainly is
o is random called in range of k (spawn square area)
p = 0: start of a loop maxing out in k steps, p is incremented every time
in loop:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import com.llamalad7.mixinextras.injector.ModifyExpressionValue; | |
| import net.minecraft.entity.boss.dragon.EnderDragonFight; | |
| import net.minecraft.util.math.BlockPos; | |
| import org.objectweb.asm.Opcodes; | |
| import org.spongepowered.asm.mixin.*; | |
| import org.spongepowered.asm.mixin.injection.At; | |
| @Mixin(EnderDragonFight.class) | |
| public abstract class EnderDragonFightMixin { | |
| @Shadow |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import com.llamalad7.mixinextras.injector.wrapoperation.*; | |
| import net.minecraft.block.*; | |
| import net.minecraft.util.math.BlockPos; | |
| import net.minecraft.world.ServerWorldAccess; | |
| import net.minecraft.world.gen.feature.LakeFeature; | |
| import org.spongepowered.asm.mixin.Mixin; | |
| import org.spongepowered.asm.mixin.injection.At; | |
| @Mixin(LakeFeature.class) | |
| public abstract class LakeFeatureMixin { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package dev.tildejustin.xrayfix.mixin; | |
| import com.llamalad7.mixinextras.sugar.*; | |
| import com.llamalad7.mixinextras.sugar.ref.LocalRef; | |
| import dev.tildejustin.xrayfix.mixin.accessor.EntityAccessor; | |
| import net.minecraft.server.network.*; | |
| import net.minecraft.util.math.*; | |
| import org.spongepowered.asm.mixin.*; | |
| import org.spongepowered.asm.mixin.injection.*; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import net.fabricmc.mappingio.MappingReader; | |
| import net.fabricmc.mappingio.tree.MemoryMappingTree; | |
| import net.fabricmc.tinyremapper.*; | |
| import java.io.*; | |
| import java.nio.file.Paths; | |
| public class Main { | |
| public static void main(String... args) throws IOException { | |
| var tree = new MemoryMappingTree(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import csv | |
| import json | |
| import os | |
| import re | |
| import requests | |
| from packaging.version import Version | |
| version_manifest_url = "https://launchermeta.mojang.com/mc/game/version_manifest.json" | |
| libraries = {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "formatVersion": 1, | |
| "libraries": [ | |
| { | |
| "downloads": { | |
| "classifiers": { | |
| "natives-linux": { | |
| "sha1": "ac641755a2a841d1fca9e660194f42523ee5cfe0", | |
| "size": 7833, | |
| "url": "https://libraries.minecraft.net/com/mojang/text2speech/1.11.3/text2speech-1.11.3-natives-linux.jar" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import datetime | |
| import requests | |
| def get_runs_until(game: str, until: datetime.date) -> list[str]: | |
| runs = [] | |
| next_uri = f"https://www.speedrun.com/api/v1/runs?game={game}&orderby=submitted&direction=desc&=&max=200" | |
| while next_uri != None: | |
| res = requests.get(next_uri).json() | |
| if not res.get("data"): | |
| break |
We can make this file beautiful and searchable if this error is corrected: It looks like row 7 should actually have 5 columns, instead of 2 in line 6.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| modid,filename,timestamp,date,hash | |
| sodium,sodium-1.16.5-v1.jar,1701834034,2023-12-05,1b850d4ab0657682e1918d2b72e95df7a328d2410387e403b5280b913c8e44cc3758aae63ab01b40c19632255fcdbd2b50f7d425eecf2867a86d96628dc8bd41 | |
| sodium,sodium-1.17.1-v1.jar,1701834034,2023-12-05,548715ea21336fc73a9a3941d4528e2106e2bd2e5ca3be0a7b0761404d88f0920cb74352ec705d624c6b4c87862ebbe88e0ec2754b113447b017029a599a4b25 | |
| sodium,sodium-fabric-mc1.18.1-0.4.0-alpha6%2Bbuild.14.jar,1701834034,2023-12-05,8a63bfb819930c5cb470664cc6a266e9478fc1219e34307058e3111ef9e400ccf14adbe31ed705f70d682199640540d7e896965b6fe5e69bce543e475ccc7fbf | |
| sodium,sodium-fabric-mc1.18-0.4.0-alpha5%2Bbuild.9.jar,1701834034,2023-12-05,dc1bcac9330388b43bfb81eabfa36d1ff15efb3009460b3b1fb290feb70e52a55f726ad93fc09b1c9186ced595f8478fbef762ae1f5144568536e4c26f5464d6 | |
| sodium,sodium-fabric-mc1.19.3-0.4.9%2Bbuild.23.jar,1701834034,2023-12-05,f2d75f2ca519e1949cdd6e95cb855895c554f085796dca616680f3f0ea74f9dedb9114264b2cf867f4904640548cb41626e8059b0008ea39cf967feb59876316 | |
| sodium,sodium- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Prism Launcher version: 8.0 (archlinux) | |
| Launched instance in online mode | |
| authserver.mojang.com resolves to: | |
| [**.**.**.**, **.**.**.**, **.**.**.**, **.**.**.**] | |
| session.minecraft.net resolves to: | |
| [**.**.**.**, **.**.**.**, ****:****:****:****:****:****:****:****, ****:****:****:****:****:****:****:****] |
NewerOlder