Skip to content

Instantly share code, notes, and snippets.

{
"H": {
"name": "Hydrogen",
"protons": 1,
"neutrons": 0
},
"D": {
"name": "Deuterium",
"protons": 1,
"neutrons": 1
@idcppl
idcppl / oredicts.zs
Last active October 29, 2021 06:38
#priorty 1000
<ore:gregWrenches>.addItems([
<gregtech:meta_tool:8>.withEmptyTag(),
<gregtech:meta_tool:29>.withEmptyTag(),
<gregtech:meta_tool:30>.withEmptyTag(),
<gregtech:meta_tool:31>.withEmptyTag()
]);
<ore:gregSaws>.addItems([

Flags

Flags are used to generate/filter some materials and recipes.

A list of all flags

O = Ore Prefix, M = Material, F = FluidMaterial, D = Dust Material, S = Solid Material, G = GemMaterial, I = IngotMaterial, RS = RoughSolidMaterial

  • ENABLE_UNIFICATION [O]
  • SELF_REFERENCING [O]

Bracket Handler

The importance of Bracket Handler

Item's metadata can change from patch to patch. So to avoid that you will use <metaitem:item>, <meta_tile_entity:machine>, and <ore:oreDict>.

metaitem's

This is usually an item that is not a tile entity and does not have an auto generated oreDict. You can get this by holding the item and calling for the command /gt util hand.

import crafttweaker.event.CommandEvent;
import crafttweaker.player.IPlayer;
import crafttweaker.item.IItemStack;
import crafttweaker.liquid.ILiquidStack;
import mods.gregtech.recipe.RecipeMap;
import mods.gregtech.recipe.ChancedEntry;
import crafttweaker.oredict.IOreDict;
/*
Made it so you can even do buckets for liquid recipes.