Skip to content

Instantly share code, notes, and snippets.

View SylvKT's full-sized avatar
🎀
sylveons

Sylv SylvKT

🎀
sylveons
View GitHub Profile
@SylvKT
SylvKT / idioms.kt
Created July 7, 2023 01:59
Quilt Kotlin Modding Idioms (1.20.1 Edition) WIP
/**
* Here's a basic idiom for writing packets.
*
* Notes:
* C2SPackets refers to the class in which the identifier for your packet is located.
*/
fun writePacket() {
val buf = PacketByteBufs.create()
val packet = FooC2SPacket(this.foo)
packet.write(buf)
@SylvKT
SylvKT / wtf.log
Created August 1, 2021 00:24
player tools good and best in-game
tehc@tiny-potato-pc:~/Projects/CursedMC/Iris$ ./gradlew migrateMappings --mappings "net.minecraft:mappings:1.17.1"
> Configure project :
Fabric Loom: 0.8.21
Using project based jar storage
> Task :migrateMappings
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Using of the official minecraft mappings is at your own risk!
Please make sure to read and understand the following license:
@SylvKT
SylvKT / irritater
Created January 10, 2021 09:25
irritant
[09:20:39] [pool-5-thread-1/ERROR]: Exception whilst executing command: []
java.lang.IllegalStateException: Permissions have not been initialised for this player yet.
at net.minecraft.class_3222.hasPermission(class_3222.java:2715) ~[intermediary-server.jar:?]
at net.minecraft.class_3222.hasPermission(class_3222.java:2701) ~[intermediary-server.jar:?]
at me.lucko.luckperms.fabric.listeners.PermissionCheckListener.onPlayerPermissionCheck(PermissionCheckListener.java:67) ~[LuckPerms-Fabric-5.2.78.jar:?]
at me.lucko.luckperms.fabric.listeners.PermissionCheckListener.onPermissionCheck(PermissionCheckListener.java:60) ~[LuckPerms-Fabric-5.2.78.jar:?]
at me.lucko.fabric.api.permissions.v0.Permissions.getPermissionValue(Permissions.java:53) ~[05c79ee9-0667-4401-9639-4696693054d6.jar:?]
at me.lucko.luckperms.fabric.FabricSenderFactory.getPermissionValue(FabricSenderFactory.java:85) ~[LuckPerms-Fabric-5.2.78.jar:?]
at me.lucko.luckperms.fabric.FabricSenderFactory.hasPermission(FabricSenderFactory.java:99) ~[Luck
@SylvKT
SylvKT / ojank.java
Created November 16, 2020 19:04
wtf ojank?
[14:03:22] [main/ERROR] (Minecraft) Failed to verify authentication
com.mojang.authlib.exceptions.AuthenticationException: Unauthorized
at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.makeRequest(YggdrasilAuthenticationService.java:119) ~[authlib-2.0.27.jar:?]
at com.mojang.authlib.yggdrasil.YggdrasilSocialInteractionsService.checkPrivileges(YggdrasilSocialInteractionsService.java:80) ~[authlib-2.0.27.jar:?]
at com.mojang.authlib.yggdrasil.YggdrasilSocialInteractionsService.<init>(YggdrasilSocialInteractionsService.java:34) ~[authlib-2.0.27.jar:?]
at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.createSocialInteractionsService(YggdrasilAuthenticationService.java:152) ~[authlib-2.0.27.jar:?]
at net.minecraft.client.MinecraftClient.method_31382(MinecraftClient.java:632) [minecraft-20w46a-mapped-net.fabricmc.yarn-20w46a+build.6-v2.jar:?]
at net.minecraft.client.MinecraftClient.<init>(MinecraftClient.java:405) [minecraft-20w46a-mapped-net.fabricmc.yarn-20w46a+build.6-v2.jar:?]
@SylvKT
SylvKT / stupid error.java
Last active November 16, 2020 18:53
fuck
Exception in thread "main" java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at net.fabricmc.loader.game.MinecraftGameProvider.launch(MinecraftGameProvider.java:226)
at net.fabricmc.loader.launch.knot.Knot.init(Knot.java:141)
at net.fabricmc.loader.launch.knot.KnotClient.main(KnotClient.java:27)
at net.fabricmc.devlaunchinjector.Main.main(Main.java:86)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
@SylvKT
SylvKT / life-is-an-illusion.md
Last active November 15, 2020 17:08
Another Day In Fabricord

11/13/2020

Ruby
how fucking amazing, a permanent ban on fabricord

IItemstack
how

Ruby