Skip to content

Instantly share code, notes, and snippets.

View mcenderdragon's full-sized avatar

mcenderdragon

  • Germany
View GitHub Profile
@mcenderdragon
mcenderdragon / CriticalHitEventTestEventTest.java
Last active August 23, 2016 19:22
example for CriticalHitEvent
package net.minecraftforge.test;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.event.entity.player.CriticalHitEvent;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.Mod.EventHandler;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
@Mod(modid="CriticalHitEventTest", name="CriticalHitEventTest", version="0.0.0")
[19:39:49] [Server thread/INFO] [Futurepack]: Starting Futurepack 25.2.9 pre
[19:39:49] [Server thread/INFO] [Futurepack]: Debug Enabled: true
[19:39:52] [Server thread/INFO]: [STDERR]: java.lang.ClassNotFoundException: minetweaker.MineTweakerAPI
[19:39:52] [Server thread/INFO]: [STDERR]: at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191)
[19:39:52] [Server thread/INFO]: [STDERR]: at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
[19:39:52] [Server thread/INFO]: [STDERR]: at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
[19:39:52] [Server thread/INFO]: [STDERR]: at java.lang.Class.forName0(Native Method)
[19:39:52] [Server thread/INFO]: [STDERR]: at java.lang.Class.forName(Class.java:264)
[19:39:52] [Server thread/INFO]: [STDERR]: at futurepack.minetweaker.MinetweakerBridge.init(MinetweakerBridge.java:15)
[19:39:52] [Server thread/INFO]: [STDERR]: at futurepack.common.FPMain.preInit(FPMain.java:161)
---- Minecraft Crash Report ----
// Uh... Did I do that?
Time: 6/14/17 4:35 PM
Description: Rendering screen
java.lang.NoSuchFieldError: fontRenderer
at mezz.jei.api.ingredients.IIngredientRenderer.getFontRenderer(IIngredientRenderer.java:54)
at mezz.jei.render.GuiIngredientFast.drawTooltip(GuiIngredientFast.java:291)
at mezz.jei.render.GuiIngredientFast.drawTooltip(GuiIngredientFast.java:284)
<pre style="font: 2px/1px monospace;">
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
public static void main(String[] args)
{
byte[] b = preCompress(64);
byte[] a;
while(true)
{
try
{
FileOutputStream out = new FileOutputStream(new File("./" + b.length +".gz"));
out.write(b);
@mcenderdragon
mcenderdragon / Primer Forge Gradle Commands for 1.13 and later.md
Last active October 12, 2020 05:24
Short command list of what is now needed to setup forge and MDK

If a command breaks, use --no-daemon as the ForgeGradle currently doesn't uses it

Setup MDK (For Modders who want to create a mod)

package futurepack.common.item;
import futurepack.common.Constants;
import futurepack.common.FPMain;
import futurepack.common.modification.EnumChipType;
import net.minecraft.item.Item;
import net.minecraft.item.Item.Properties;
import net.minecraftforge.event.RegistryEvent;
public class ComputerItems
[server]
#If set to true, the Miner will no longer load itself
disbale_miner_chunkloading = false
#A Player must wait this time (in ms) until he can jump with a spaceship again. This prevents griefers from attacking servers.
spacetravel_cooldown = 60000
#This disables the research checking ins die the researcher. If enabled you can research a blueprint, even if this would not be possible.
disable_research_check = false
#Disable this, to prevent glowmelows to fall down after they are fully grown.
glowmelow_drop = true
#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
/*
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