mirror of
https://github.com/GTNewHorizons/ModTweaker.git
synced 2026-11-13 16:54:03 +00:00
RemoveAll function for loot tiers
This commit is contained in:
1 parent
69a449a6bc
commit
b699a3a176
1 file changed
+15
@@ -51,6 +51,21 @@ public class Loot {
|
||||
public static void removeRareLoot(IItemStack stack) {
|
||||
MineTweakerAPI.apply(new Remove(WeightedRandomLoot.lootBagRare, InputHelper.toStack(stack)));
|
||||
}
|
||||
|
||||
@ZenMethod
|
||||
public static void removeAllCommonLoot(IItemStack stack) {
|
||||
MineTweakerAPI.apply(new RemoveAll(WeightedRandomLoot.lootBagCommon));
|
||||
}
|
||||
|
||||
@ZenMethod
|
||||
public static void removeAllUncommonLoot(IItemStack stack) {
|
||||
MineTweakerAPI.apply(new RemoveAll(WeightedRandomLoot.lootBagUncommon));
|
||||
}
|
||||
|
||||
@ZenMethod
|
||||
public static void removeAllRareLoot(IItemStack stack) {
|
||||
MineTweakerAPI.apply(new RemoveAll(WeightedRandomLoot.lootBagRare));
|
||||
}
|
||||
|
||||
public static class Remove extends BaseListRemoval {
|
||||
|
||||
|
||||
Reference in new issue
Block a user