Tutorial:Loot 164

From MineTweaker 3
Revision as of 18:22, 31 August 2014 by Stan (Talk) (Created page with "== Chest Loot == Since 3.0.8, it is possible to change any kind of dungeon loot. Loot can be changed for dungeon chests, mineshaft chests or any other kind of vanilla or mod...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Chest Loot

Since 3.0.8, it is possible to change any kind of dungeon loot. Loot can be changed for dungeon chests, mineshaft chests or any other kind of vanilla or mod chest.

This line would make diamonds very likely to appear:

vanilla.loot.addChestLoot("dungeonChest", <item.diamond>.weight(100));

// Spawn 1-5 sticks with a probability of 100
vanilla.loot.addChestLoot("dungeonChest", <item.stick>.weight(100), 1, 5);

It's also possible to remove chest loot:

vanilla.loot.removeChestLoot("dungeonChest", <minecraft:enchanted_book>);

Both items and ore dictionary entries work, as does the wildcard pattern to remove everything (<*>).

Seeds

You can now also modify the seeds that are dropped when you break tall grass:

vanilla.seeds.addSeed(<tile.wood>.weight(100));
vanilla.seeds.removeSeed(<Natura:barley.seed:*>);

This functionality existed in ModTweaker before and has now been integrated into MineTweaker.