Skip to content

Instantly share code, notes, and snippets.

View Frontrider's full-sized avatar

Frontrider

  • Deutsche Telekom AG@telekom
  • Somewhere, far away
View GitHub Profile
{
"entries": [
{
"key": "BIOMANCY_BASICS",
"name": "research.thaumic_arcana.biomancy.title",
"icons": [
"thaumic_arcana:textures/research/cat_biomancy.png"
],
"category": "BIOMANCY",
"location": [
{
"research":"CREATURES",
"location":"thaumic_arcana:smile-craft",
"result":"minecraft:slime_ball;9;1",
"required_item":"",
"block":"thaumcraft:flesh_block",
"consume_block":true,
"consume_formula":true,
"vis":1,
"pollution":0,
//we declare our configurations, so we can just add the required artifacts as dependencies of this build
configurations{
cohfpack
thermalpack
//make cohfpack contain thermalpack
cohfpack.extends thermalpack
}
dependencies{
import com.openmodloader.gradle.OpenGradlePlugin
import org.apache.tools.ant.filters.ReplaceTokens
buildscript {
repositories {
maven { url = 'http://maven.modmuss50.me' }
}
dependencies {
classpath 'com.openmodloader:OpenGradle:0.0.11-SNAPSHOT'
}
@Frontrider
Frontrider / CPU.java
Created October 30, 2018 17:30 — forked from unnikked/CPU.java
Tiny RISC Virtual Machine - Read README first!
import java.util.HashMap;
import java.util.Scanner;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class CPU {
public String[] ram;
private HashMap<String, Instruction> rom;
private double accumulator;
private int instructionPointer;
import com.google.gson.JsonObject
import hu.frontrider.gearcraft.Gearcraft
import hu.frontrider.gearcraft.api.recipes.IDismantlerRecipe
import net.minecraft.inventory.Inventory
import net.minecraft.item.ItemStack
import net.minecraft.recipe.Ingredient
import net.minecraft.recipe.Recipe
import net.minecraft.recipe.RecipeSerializer
import net.minecraft.tag.Tag
import net.minecraft.util.*
def resourceDir = "generatedResources/"
def resourceBuildDir = "build/resourceSource/"
mkdir(file(resourceDir))
mkdir(file(resourceBuildDir))
sourceSets {
main {
resources {
srcDirs "src/main/resources", resourceBuildDir
/**
* Allows for any block to be farmland, if it's tagged correctly.
*/
@Mixin(CropBlock.class)
public abstract class CropBlockMixin {
@Inject(method = "Lnet/minecraft/block/CropBlock;canPlantOnTop(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Z",
at = @At("HEAD"))
---- Minecraft Crash Report ----
// Quite honestly, I wouldn't worry myself about that.
Time: 9/22/19 9:55 AM
Description: Loading entity NBT
java.lang.AbstractMethodError: net.minecraft.server.network.ServerPlayerEntity.getServer()Lnet/minecraft/server/MinecraftServer;
at net.minecraft.server.network.ServerPlayerEntity.readCustomDataFromTag(ServerPlayerEntity.java:228)
at net.minecraft.entity.Entity.fromTag(Entity.java:1583)
at net.minecraft.server.PlayerManager.loadPlayerData(PlayerManager.java:296)
@Frontrider
Frontrider / command.java
Last active October 28, 2019 18:39
crash-report.txt
import com.mojang.brigadier.CommandDispatcher;
import com.mojang.brigadier.arguments.IntegerArgumentType;
import com.mojang.brigadier.context.CommandContext;
import net.minecraft.command.arguments.*;
import net.minecraft.server.command.CommandManager;
import net.minecraft.server.command.ServerCommandSource;
import net.minecraft.text.LiteralText;
public class InventoryCommand {