Difference between revisions of "Tutorial:Loot 164"

From MineTweaker 3
Jump to: navigation, search
(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...")
 
m (2 revisions imported)
 
(One intermediate revision by one other user not shown)
Line 15: Line 15:
  
 
Both items and ore dictionary entries work, as does the wildcard pattern to remove everything (<*>).
 
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 ==
 
== Seeds ==
Line 24: Line 26:
  
 
This functionality existed in ModTweaker before and has now been integrated into MineTweaker.
 
This functionality existed in ModTweaker before and has now been integrated into MineTweaker.
 +
 +
Use /mt seeds to see what's already registered.

Latest revision as of 14:36, 12 September 2023

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.