Skip to content

Instantly share code, notes, and snippets.

Avatar

mcenderdragon

  • Germany
View GitHub Profile
@mcenderdragon
mcenderdragon / biome Jsons.md
Created Nov 29, 2020
Biome JSONS Minecraft 1.16
View biome Jsons.md

Dimension & Biome JSON system from Minecraft 1.16

Things I found out so far: you can pretty much ignore the error you get in the log, they dont help. I found it helpfull to add a breakpoint to Line 198 in WorldSettingImport (net.minecraft.util.registry) there you see the actuall exceptions, like it did not find a certain feature

You can not use vanilla jsons, only the jsons inside your datapack so you need to copy the vanilla stuff you want/need.

View JHM test for small, medium & large jar.log
PS E:\CODE\mc1.16\jar-in-jar> .\gradlew jmh
> Configure project :
null
> Task :jmh
# JMH version: 1.21
# VM version: JDK 1.8.0_211, Java HotSpot(TM) 64-Bit Server VM, 25.211-b12
# VM invoker: C:\Program Files\Java\jdk1.8.0_211\jre\bin\java.exe
# VM options: -Dmcenderdragon.nio.jarInjar.jmh.file=./src/main/resources/small.jar -Dfile.encoding=windows-1252 -Duser.country=DE -Duser.language=de -Duser.variant
# Warmup: 3 iterations, 10 s each
# Measurement: 5 iterations, 10 s each
View gist:86dfa51dcb17ca9c74d2b3bcbca133fd
---- Minecraft Crash Report ----
// You're mean.
Time: 3/8/20 5:47 PM
Description: Exception in server tick loop
java.lang.NullPointerException: Exception in server tick loop
at net.silentchaos512.scalinghealth.utils.SHDifficulty.changePerSecond(SHDifficulty.java:151) ~[?:2.4.2+46] {re:classloading}
at net.silentchaos512.scalinghealth.event.DifficultyEvents.lambda$onWorldTick$6(DifficultyEvents.java:129) ~[?:2.4.2+46] {re:classloading}
at net.silentchaos512.scalinghealth.event.DifficultyEvents$$Lambda$6967/348431252.accept(Unknown Source) ~[?:?] {}
View 2020-02-19-5.log
[21:55:36] [main/INFO]: ModLauncher running: args [--username, MCenderdragon, --version, forge-28.2.1, --gameDir, C:\Users\<*>\Twitch\Minecraft\Instances\Steallar Expansion Modpack, --assetsDir, C:\Users\<*>\Twitch\Minecraft\Install\assets, --assetIndex, 1.14, --uuid, 3cf92882db514816948f78a81087f886, --accessToken, ????????, --userType, mojang, --versionType, release, --width, 1024, --height, 768, --launchTarget, fmlclient, --fml.forgeVersion, 28.2.1, --fml.mcVersion, 1.14.4, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20190829.143755]
[21:55:36] [main/INFO]: ModLauncher 4.1.0+62+5bfa59b starting: java version 1.8.0_51 by Oracle Corporation
[21:55:36] [main/INFO]: Added Lets Encrypt root certificates as additional trust
[21:55:37] [main/INFO]: [org.antlr.v4.runtime.ConsoleErrorListener:syntaxError:38]: line 26:0 token recognition error at: 's'
[21:55:37] [main/INFO]: [org.antlr.v4.runtime.ConsoleErrorListener:syntaxError:38]: line 26:1 token recognition error at: 'n'
[21:55:37] [main/INFO]: [org.
@mcenderdragon
mcenderdragon / ATtiny timer.md
Last active Jan 15, 2020
A LED blinker based on a ATTiny13
View ATtiny timer.md

Makes a pulse at PB4 and is 2 minutes on and 28 minutes off. Power can be tuned off by the raising flag at INT0 (PB1). Power consumption is at ~0.3mA

View crash-2019-12-23_13.48.07-server.txt
---- Minecraft Crash Report ----
// My bad.
Time: 23.12.19 13:48
Description: Exception in server tick loop
java.lang.IllegalAccessError: tried to access field net.minecraft.world.World.field_72986_A from class futurepack.world.dimensions.CustomWorldInfo
at futurepack.world.dimensions.CustomWorldInfo.overwriteWorld(CustomWorldInfo.java:40) ~[?:1.14.4-28.0.1] {re:classloading}
at futurepack.world.dimensions.menelaus.DimensionMenelaus.<init>(DimensionMenelaus.java:30) ~[?:1.14.4-28.0.1] {re:classloading}
at net.minecraft.world.dimension.DimensionType.func_218270_a(DimensionType.java:71) ~[?:?] {re:classloading}
View quantanium.json
{
"forge_marker": 1,
"defaults":
{
"model": "cube",
"textures":
{
"particle": "futurepack:blocks/quantanium/d0000",
"down": "futurepack:blocks/quantanium/d0000",
"up": "futurepack:blocks/quantanium/d0000",
@mcenderdragon
mcenderdragon / working EEPROM test.ino
Created Jul 8, 2019
Feather Huzza! ESP8266 & 25AA010A EEPROM
View working EEPROM test.ino
/*
SPI Master Demo Sketch
Connect the SPI Master device to the following pins on the esp8266:
GPIO NodeMCU Name | Uno
===================================
15 D8 SS | D10
13 D7 MOSI | D11
12 D6 MISO | D12
14 D5 SCK | D13
View ESP_SPI_EEPROM_test.ino
/*
SPI Master Demo Sketch
Connect the SPI Master device to the following pins on the esp8266:
GPIO NodeMCU Name | Uno
===================================
15 D8 SS | D10
13 D7 MOSI | D11
12 D6 MISO | D12
14 D5 SCK | D13
View not working.c
#include <SPI.h>
#define normal
#ifdef normal
#define EE_READ 0b00000011//3
#define EE_WRITE 0b00000010//2
#define EE_WRDI 0b00000100//4
#define EE_WREN 0b00000110//6
#define EE_RDSR 0b00000101//5