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:
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 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 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
version | argo | asm-all | authlib | bcprov-jdk15on | blocklist | brigadier | codecjorbis | codecwav | commons-codec | commons-compress | commons-io | commons-lang3 | commons-logging | datafixerupper | failureaccess | fastutil | gson | guava | httpclient | httpcore | icu4j | icu4j-core-mojang | java-objc-bridge-osx | javabridge | jinput | jinput-platform | jna | jna-platform | joml | jopt-simple | jutils | launchwrapper | libraryjavasound | librarylwjglopenal | log4j-api | log4j-core | log4j-slf4j18-impl | log4j-slf4j2-impl | logging | lwjgl | lwjgl-!osx | lwjgl-glfw | lwjgl-glfw-!osx | lwjgl-glfw-natives-linux | lwjgl-glfw-natives-macos | lwjgl-glfw-natives-macos-arm64 | lwjgl-glfw-natives-windows | lwjgl-glfw-natives-windows-arm64 | lwjgl-glfw-natives-windows-x86 | lwjgl-glfw-osx | lwjgl-jemalloc | lwjgl-jemalloc-!osx | lwjgl-jemalloc-natives-linux | lwjgl-jemalloc-natives-macos | lwjgl-jemalloc-natives-macos-arm64 | lwjgl-jemalloc-natives-windows | lwjgl-jemalloc-natives-windows-arm64 | lwjgl-jemalloc-natives-windows-x86 | lwjgl-jemalloc-osx | lwjgl-natives-linux | lwjgl-natives-macos | lwjgl-natives-macos-arm64 | lwjgl-natives-w |
---|
This file contains 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: | |
[**.**.**.**, **.**.**.**, ****:****:****:****:****:****:****:****, ****:****:****:****:****:****:****:****] |
This file contains 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 random | |
def add_item(name: str, chance: float, offers_list: list): | |
if random.random() < chance: | |
offers_list.append(name) | |
def get_brown_coat_trade() -> str: | |
new_offers = [] | |
add_item("wheat", .9, new_offers) | |
add_item("wool", .5, new_offers) |
This file contains 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 hashlib | |
import random | |
# 264^4 dimensions | |
# need hash to equal 2 | |
def get_string(input: str) -> str: | |
# stolen from net.minecraft.world.dimension.DimensionHashHelper$getHash | |
return input + ":why_so_salty#LazyCrypto" |
This file has been truncated, but you can view the full file.
This file contains 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
tiny 2 0 official intermediary named | |
c a net/minecraft/class_1442 net/minecraft/util/Formatting | |
f Z A field_5480 modifier | |
f Ljava/lang/String; B field_5481 stringValue | |
f I C field_9145 colorIndex | |
f [La; D field_5482 field_1072 | |
f La; a field_5483 BLACK | |
f La; b field_5484 DARK_BLUE | |
f La; c field_5485 DARK_GREEN | |
f La; d field_5486 DARK_AQUA |
This file contains 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
{ | |
"schemaVersion": 5, | |
"mods": [ | |
{ | |
"modid": "sodium", | |
"name": "Sodium", | |
"description": "Sodium is a free and open-source optimization mod for Minecraft which improves frame rates and reduces lag spikes.", | |
"versions": [ | |
{ | |
"target_version": [ |
This file contains 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
Subject: [PATCH] personal changes | |
--- | |
Index: config.def.h | |
IDEA additional info: | |
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP | |
<+>UTF-8 | |
=================================================================== | |
diff --git a/config.def.h b/config.def.h | |
--- a/config.def.h (revision a34d8fb4327bbb1afd92e7527c53fcaad547a495) | |
+++ b/config.def.h (date 1700268761282) |
This file contains 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
#!/bin/bash | |
curr_brightness=$(cat /sys/class/backlight/intel_backlight/brightness) | |
curr_brightness=$(($curr_brightness)) | |
max_brightness="$(cat /sys/class/backlight/intel_backlight/max_brightness)" | |
max_brightness=$(($max_brightness)) | |
brightness=0 | |
# -10%: decrease by a percentage, not going below 0 | |
# +10%: increase by a percentage, not going above $max_brightness | |
# 10%: set to an absolute percentage between 0 and $max_brightness | |
# 10: set to an absoulte brightness not exceeding #max_brightness |
NewerOlder