Skip to content

Instantly share code, notes, and snippets.

@EthanWall
EthanWall / egg_loot.zs
Created June 9, 2023 00:44
CraftTweaker script to add Dragon Mounts: Reborn eggs to dungeon loot
import crafttweaker.api.loot.condition.LootTableIdLootCondition;
import crafttweaker.api.loot.modifier.CommonLootModifiers;
import crafttweaker.api.loot.condition.LootConditions;
// Aether
loot.modifiers.register(
"aether_egg_dungeon_chest",
LootConditions.only(LootTableIdLootCondition.create("minecraft:chests/simple_dungeon")),
CommonLootModifiers.addWithChance(<item:dragonmounts:dragon_egg>.withTag({ItemName: "dragon_breed.dragonmounts.aether", BlockEntityTag: {HatchTime: 12000, Breed: "dragonmounts:aether"}}) % 20)
);