Make exosuit upgrades drop only when killed by real player
This commit is contained in:
parent
6d40cc923f
commit
d8eef6db10
@ -143,12 +143,18 @@ fun addLootModifiers(it: LootModifiers) {
|
||||
))
|
||||
|
||||
it.add("wither_exosuit_upgrades", BasicLootAppender(
|
||||
arrayOf(LootTableIdCondition(EntityType.WITHER.defaultLootTable)),
|
||||
arrayOf(
|
||||
LootTableIdCondition(EntityType.WITHER.defaultLootTable),
|
||||
KilledByRealPlayerOrIndirectly,
|
||||
),
|
||||
ItemStack(MItems.ExosuitUpgrades.INVENTORY_UPGRADE_WITHER),
|
||||
))
|
||||
|
||||
it.add("ender_dragon_exosuit_upgrades", BasicLootAppender(
|
||||
arrayOf(LootTableIdCondition(EntityType.ENDER_DRAGON.defaultLootTable)),
|
||||
arrayOf(
|
||||
LootTableIdCondition(EntityType.ENDER_DRAGON.defaultLootTable),
|
||||
KilledByRealPlayerOrIndirectly,
|
||||
),
|
||||
ItemStack(MItems.ExosuitUpgrades.INVENTORY_UPGRADE_ENDER_DRAGON),
|
||||
))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user