Tutorial:Loot 164

From MineTweaker 3
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 (<*>).

Use /mt loot to dump the list of chests and their contents.

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.

Use /mt seeds to see what's already registered.