gave the tools some random damage

This commit is contained in:
Pyritie 2025-09-09 22:10:22 +01:00
parent d6fcdb7931
commit be3669a17d

View file

@ -34,7 +34,7 @@ function registerPrimitiveCreaturesLoots(event) {
Item.of('tfc:food/strawberry', 4),
Item.of('tfc:food/wintergreen_berry', 5)])
.addAlternativesLoot(
LootEntry.of('gtceu:cobalt_brass_hoe').when(c => c.randomChance(0.1)),
LootEntry.of('gtceu:cobalt_brass_hoe').damage([0.3, 0.9]).when(c => c.randomChance(0.1)),
LootEntry.of('sns:straw_basket').when(c => c.randomChance(0.3)),
LootEntry.of('primitive_creatures:totem_0').when(c => c.randomChance(0.05)),
LootEntry.of('primitive_creatures:totem_3').when(c => c.randomChance(0.05)),
@ -52,7 +52,7 @@ function registerPrimitiveCreaturesLoots(event) {
.removeLoot(ItemFilter.ALWAYS_TRUE)
.addWeightedLoot([3,4], ['gtceu:tricalcium_phosphate_dust'])
.addAlternativesLoot(
LootEntry.of('gtceu:cobalt_brass_mortar').when(c => c.randomChance(0.3)),
LootEntry.of('gtceu:cobalt_brass_mortar').damage([0.3, 0.9]).when(c => c.randomChance(0.3)),
LootEntry.of('primitive_creatures:totem_0').when(c => c.randomChance(0.05)),
LootEntry.of('primitive_creatures:totem_3').when(c => c.randomChance(0.05)),
LootEntry.of('firmalife:beeswax'))
@ -70,7 +70,7 @@ function registerPrimitiveCreaturesLoots(event) {
.addWeightedLoot([0,2], ['minecraft:flint'])
.addWeightedLoot([1,3], ['minecraft:bone'])
.addAlternativesLoot(
LootEntry.of('gtceu:cobalt_brass_shovel').when(c => c.randomChance(0.5)),
LootEntry.of('gtceu:cobalt_brass_shovel').damage([0.3, 0.9]).when(c => c.randomChance(0.5)),
LootEntry.of('minecraft:skeleton_skull').when(c => c.randomChance(0.3)),
LootEntry.of('primitive_creatures:grh')) // battered wool
event.addEntityLootModifier('primitive_creatures:iloger_3')
@ -87,7 +87,7 @@ function registerPrimitiveCreaturesLoots(event) {
.addWeightedLoot([8,12], LootEntry.of('minecraft:tipped_arrow')).addPotion("poison")
.addWeightedLoot([4,8], ['firmalife:food/nightshade_berry'])
.addAlternativesLoot(
LootEntry.of('minecraft:bow').when(c => c.randomChance(0.5)),
LootEntry.of('minecraft:bow').damage([0.3, 0.9]).when(c => c.randomChance(0.5)),
LootEntry.of('primitive_creatures:totem_0').when(c => c.randomChance(0.05)),
LootEntry.of('primitive_creatures:totem_2').when(c => c.randomChance(0.05)),
LootEntry.of('sns:quiver'))
@ -123,7 +123,7 @@ function registerPrimitiveCreaturesLoots(event) {
.addWeightedLoot([1,2], ['primitive_creatures:f_1']) // primitive explosives
.addWeightedLoot([1,3], ['minecraft:gunpowder'])
.addAlternativesLoot(
LootEntry.of('gtceu:cobalt_brass_mortar').when(c => c.randomChance(0.3)),
LootEntry.of('gtceu:cobalt_brass_mortar').damage([0.5, 0.9]).when(c => c.randomChance(0.3)),
LootEntry.of('primitive_creatures:totem_2').when(c => c.randomChance(0.05)),
LootEntry.of('primitive_creatures:totem_3').when(c => c.randomChance(0.05)),
LootEntry.of('primitive_creatures:grh')) // battered wool
@ -140,7 +140,7 @@ function registerPrimitiveCreaturesLoots(event) {
.removeLoot(ItemFilter.ALWAYS_TRUE)
.addWeightedLoot([0,2], ['primitive_creatures:grh']) // battered wool
.addAlternativesLoot(
LootEntry.of('gtceu:cobalt_brass_butchery_knife').when(c => c.randomChance(0.3)),
LootEntry.of('gtceu:cobalt_brass_butchery_knife').damage([0.3, 0.9]).when(c => c.randomChance(0.3)),
LootEntry.of('primitive_creatures:totem_0').when(c => c.randomChance(0.05)),
LootEntry.of('primitive_creatures:totem_3').when(c => c.randomChance(0.05)),
LootEntry.of('minecraft:lead'))
@ -172,7 +172,7 @@ function registerPrimitiveCreaturesLoots(event) {
.removeLoot(ItemFilter.ALWAYS_TRUE)
.addWeightedLoot([1,2], ['minecraft:emerald'])
.addAlternativesLoot(
LootEntry.of('gtceu:cobalt_brass_knife').when(c => c.randomChance(0.3)),
LootEntry.of('gtceu:cobalt_brass_knife').damage([0.3, 0.7]).when(c => c.randomChance(0.3)),
LootEntry.of('primitive_creatures:totem_2').when(c => c.randomChance(0.05)),
LootEntry.of('primitive_creatures:totem_3').when(c => c.randomChance(0.05)),
LootEntry.of('primitive_creatures:grh')) // battered wool)
@ -188,10 +188,10 @@ function registerPrimitiveCreaturesLoots(event) {
event.addEntityLootModifier('primitive_creatures:nahida')
.removeLoot(ItemFilter.ALWAYS_TRUE)
.addWeightedLoot([
Item.of('gtceu:cobalt_brass_spade'),
Item.of('gtceu:cobalt_brass_sickle'),
Item.of('gtceu:cobalt_brass_mining_hammer'),
Item.of('gtceu:cobalt_brass_sword')])
Item.of('gtceu:cobalt_brass_spade').damage([0.85, 1]),
Item.of('gtceu:cobalt_brass_sickle').damage([0.85, 1]),
Item.of('gtceu:cobalt_brass_mining_hammer').damage([0.85, 1]),
Item.of('gtceu:cobalt_brass_sword').damage([0.85, 1])])
event.addEntityLootModifier('primitive_creatures:nahida')
.addWeightedLoot([
Item.of('sns:leather_sack'),