High Tier saws can silk harvest ice (#3019)

* High Tier saws can silk harvest packed ice

* Update changelog
This commit is contained in:
Nebby 2026-02-10 08:53:48 -03:00 committed by GitHub
parent d122cba3f5
commit a7a01a96b7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 53 additions and 2 deletions

View file

@ -1,6 +1,9 @@
// priority: 0
"use strict";
/**
*
* @param {Internal.LootModificationEventJS} event
*/
function registerTFCLoots(event) {
// Hostile animals
@ -352,8 +355,15 @@ function registerTFCLoots(event) {
event.addBlockLootModifier('minecraft:ice')
.removeLoot(ItemFilter.ALWAYS_TRUE)
event.addBlockLootModifier('minecraft:ice')
.not(n => n.matchMainHand("#tfg:silk_harvest_ice"))
.addLoot('firmalife:ice_shavings')
event.addBlockLootModifier('minecraft:ice')
.matchMainHand("#tfg:silk_harvest_ice")
.addLoot('minecraft:ice');
event.addBlockLootModifier('minecraft:packed_ice')
.not(n => n.matchMainHand("#forge:tools/saws"))
.addWeightedLoot([4, 6], ['firmalife:ice_shavings'])