Skip to content

Instantly share code, notes, and snippets.

View sokratis12GR's full-sized avatar

Sokratis Fotkatzikis sokratis12GR

View GitHub Profile
@sokratis12GR
sokratis12GR / api.erdbeerbaer.tk
Last active October 14, 2019 21:39
Updated to V2
@-moz-document url-prefix("http://api.erdbeerbaer.tk/DCEmbedMaker.php") {
* {
color: #3391ff;
background-color:#131415;
}
h1 {
color: #3391ff;
text-align: center;
}
[18:01:47] [Server thread/INFO] [net.minecraft.server.dedicated.DedicatedServer]: [sokratis12GR: Enchanting succeeded]
[18:01:49] [Server thread/ERROR] [FML]: Exception caught during firing event net.minecraftforge.fml.common.gameevent.TickEvent$PlayerTickEvent@363bb6a0:
java.lang.NoSuchMethodError: net.minecraft.item.ItemArmor.func_185083_B_()Lnet/minecraft/inventory/EntityEquipmentSlot;
at com.sofodev.armorplus.common.events.CommonEventHandler.enhance(CommonEventHandler.java:99) ~[CommonEventHandler.class:1.12.2-11.22.0.58]
at com.sofodev.armorplus.common.events.CommonEventHandler.onEnchantEvent(CommonEventHandler.java:84) ~[CommonEventHandler.class:1.12.2-11.22.0.58]
at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_4_CommonEventHandler_onEnchantEvent_PlayerTickEvent.invoke(.dynamic) ~[?:?]
at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) [
@sokratis12GR
sokratis12GR / PersonData
Created April 11, 2019 08:57
How to get the age, and set stuff for people... will need for future projects
package com.company;
import java.time.LocalDate;
import java.util.Date;
import java.util.Random;
public class Person {
Random rand = new Random();
private int age;

The Fallen Kingdom

Chapter One

The story of Luis II The king of The Nether and how he became the now terrifying monster called the Skeletal King

Chapter Two

Chapter Three

This file has been truncated, but you can view the full file.
at java.lang.Thread.run(Unknown Source) [?:1.8.0_152-ea]
[21:02:55] [Netty Client IO #0/ERROR] [FML]: NetworkDispatcher exception
java.io.IOException: An existing connection was forcibly closed by the remote host
at sun.nio.ch.SocketDispatcher.writev0(Native Method) ~[?:1.8.0_152-ea]
at sun.nio.ch.SocketDispatcher.writev(Unknown Source) ~[?:1.8.0_152-ea]
at sun.nio.ch.IOUtil.write(Unknown Source) ~[?:1.8.0_152-ea]
at sun.nio.ch.SocketChannelImpl.write(Unknown Source) ~[?:1.8.0_152-ea]
at io.netty.channel.socket.nio.NioSocketChannel.doWrite(NioSocketChannel.java:432) ~[netty-all-4.1.9.Final.jar:4.1.9.Final]
at io.netty.channel.AbstractChannel$AbstractUnsafe.flush0(AbstractChannel.java:856) [netty-all-4.1.9.Final.jar:4.1.9.Final]
at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.forceFlush(AbstractNioChannel.java:368) [netty-all-4.1.9.Final.jar:4.1.9.Final]
{"offlineEnabled":false,"jvmPath":"C:\\Program Files\\Java\\jre1.8.0_152","jvmArgs":null,"minMemory":1024,"maxMemory":4096,"permGen":256,"windowWidth":854,"widowHeight":480,"proxyEnabled":false,"proxyHost":"localhost","proxyPort":8080,"proxyUsername":null,"proxyPassword":null,"gameKey":null}
Error:
To report this error, please provide:
java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
at com.skcraft.launcher.util.HttpRequest.returnContent(HttpRequest.java:214)
at com.skcraft.launcher.InstanceList$Enumerator.call(InstanceList.java:140)
at com.skcraft.launcher.InstanceList$Enumerator.call(InstanceList.java:102)
@sokratis12GR
sokratis12GR / armorplus.md
Last active July 25, 2022 12:34
ArmorPlus 1.12.2 CraftTweaker Integration Samples
#Name: armorplus.zs
#Author: sokratis12GR

print("Initializing 'armorplus.zs'...");

val dPickaxe = <minecraft:diamond_pickaxe>;
val stick = <ore:stickWood>;
val diamond = <ore:gemDiamond>;
@sokratis12GR
sokratis12GR / 0 divided by 0.md
Last active October 1, 2017 18:31
Answer to the 0/0 problem

0/0’s value it self equals to ? or “Any”, You may find 0/0 to be an error or undefined in programming or wikis. But thats actually very wrong, because 0/0 is actually everything we use… hence we use numbers and symbols we define in equatations, problems etc… lets take for example: x^2 + x - 2 = 0 this would be (0/0) ^ (0/0) + (0/0) = (0/0 or well 0, almost always when we use it this way to find x, once again because we defined them to replace $0/0$ by our own value that we choosen) Or lets take for example a coffee machine, it has 2 buttons… A (lets say id=1) to make a short one and B (lets say id=552) to make a long one. When those buttons are pressed the machine will choose one of the 2 buttons’s id (the pressed one) and will trigger its event. but the value of the buttons before we made it such is 0/0 or well ?/ANY/UNDEFINED once we add the button ID, the machine can finally recognize the number choosen and procceed with the event, if the number isn’t defined it ofc will throw an error or if t

"C:\Program Files\Java\jdk1.8.0_152\bin\java" "-javaagent:C:\Program Files (x86)\JetBrains\IntelliJ IDEA 2017.1\lib\idea_rt.jar=64845:C:\Program Files (x86)\JetBrains\IntelliJ IDEA 2017.1\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\Java\jdk1.8.0_152\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_152\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.8.0_152\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jdk1.8.0_152\jre\lib\ext\cldrdata.jar;C:\Program Files\Java\jdk1.8.0_152\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.8.0_152\jre\lib\ext\jaccess.jar;C:\Program Files\Java\jdk1.8.0_152\jre\lib\ext\jfxrt.jar;C:\Program Files\Java\jdk1.8.0_152\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.8.0_152\jre\lib\ext\nashorn.jar;C:\Program Files\Java\jdk1.8.0_152\jre\lib\ext\sunec.jar;C:\Program Files\Java\jdk1.8.0_152\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.8.0_152\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java\jdk1.8.0_152\jre\lib\ext\sunpkcs11.jar;C:\Program Files\Ja