Skip to content

Instantly share code, notes, and snippets.

View TeamDman's full-sized avatar
🌜
o/

TeamDman

🌜
o/
View GitHub Profile
@TeamDman
TeamDman / MCWorld.java
Last active September 27, 2019 05:00
ZS No such member
package zentriggers.zentriggers.wrappers;
import crafttweaker.annotations.ZenRegister;
import net.minecraft.world.World;
import stanhebben.zenscript.annotations.ZenClass;
import stanhebben.zenscript.annotations.ZenGetter;
import stanhebben.zenscript.annotations.ZenSetter;
import zentriggers.zentriggers.ZenTriggers;
@ZenRegister
@TeamDman
TeamDman / interactions-recipefix.zs
Created March 17, 2019 00:27
Replacing components of recipes
recipes.removeRecipeByName("minecraft:golden_hoe");
recipes.removeRecipeByName("mekanism:plasticblock_0");
recipes.removeRecipeByName("mekanism:plasticblock_4");
recipes.removeRecipeByName("mekanism:plasticblock_3");
recipes.removeRecipeByName("mekanism:plasticblock_2");
recipes.removeRecipeByName("mekanism:plasticblock_1");
recipes.removeRecipeByName("thaumcraft:redstoneinlay");
recipes.removeRecipeByName("advancedrocketry:compositionsensor");
recipes.removeRecipeByName("randomthings:escaperope");
recipes.removeRecipeByName("mekanism:plasticblock_8");
@TeamDman
TeamDman / crafttweaker-raw.log
Last active March 13, 2019 21:27
Time profile of FTB Interactions scripts
This file has been truncated, but you can view the full file.
[PREINITIALIZATION][CLIENT][INFO] Current loaders after merging: [[preinit]]
[PREINITIALIZATION][CLIENT][INFO] Loading scripts for loader with names [preinit]
[PREINITIALIZATION][CLIENT][INFO] [preinit | SIDE_CLIENT]: Skipping file {[999:crafttweaker]: _activeStages.zs} as we are currently loading with a different loader
[PREINITIALIZATION][CLIENT][INFO] [preinit | SIDE_CLIENT]: Skipping file {[998:crafttweaker]: _Global.zs} as we are currently loading with a different loader
[PREINITIALIZATION][CLIENT][INFO] [preinit | SIDE_CLIENT]: Skipping file {[998:crafttweaker]: _oreDict.zs} as we are currently loading with a different loader
[PREINITIALIZATION][CLIENT][INFO] [preinit | SIDE_CLIENT]: Skipping file {[0:gregtech]: _gregtechMaterials.zs} as we are currently loading with a different loader
[PREINITIALIZATION][CLIENT][INFO] [preinit | SIDE_CLIENT]: Skipping file {[0:crafttweaker]: ActuallyAdditions.zs} as we are currently loading with a different loader
[PREINITIALIZATION][CLIENT][INFO] [preinit | SIDE_CLIEN
@TeamDman
TeamDman / paginator.js
Created February 12, 2019 00:55
A basic paginator for Discord.js
createPaginator = async (sourceMessage, message, next, prev) => {
const emojinext = "▶";
const emojiprev = "◀";
const emojistop = "❌";
try {
await message.react(emojiprev);
await message.react(emojinext);
// await message.react(emojistop);
let handle = (reaction, user) => {
if (reaction.message.id !== message.id)
@TeamDman
TeamDman / Tips.java
Last active January 9, 2021 20:22
Java Tips
import java.io.IOException;
import java.util.Random;
import java.util.Scanner;
public class Tips {
private static final Scanner in = new Scanner(System.in);
private static final Random rand = new Random(System.currentTimeMillis());
// Never reassigned => should be final
public static void main(String[] args) {
@TeamDman
TeamDman / Board Schematic
Last active December 6, 2016 18:35
Failed compile for STM32 Firefly
http://i.imgur.com/dcpbT9j.png