#Durability item modifiers with unbreaking
1 messages · Page 1 of 1 (latest)
<@&1201956957406109788>
💬 While you wait, take this time to provide more context and details.
🙇 If nobody has answered you by <t:1726394011:t>, feel free to use the Summon Helpers button to ping our helper team.
✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve
Don't forget to close or resolve your old questions once you're done with them. It makes our lives much easier! :D
Open question: #1282200600989138974
not perfect but the simplest way:
[
{
"function": "minecraft:set_damage",
"damage": -0.25,
"add": true,
"conditions": [
{
"condition": "minecraft:random_chance_with_enchanted_bonus",
"enchantment": "minecraft:unbreaking",
"unenchanted_chance": 1,
"enchanted_chance": 0.5
}
]
}
]
Seems like that's not working. I afterwards read the wiki and it states that random chance + enchanted bonus only works when I attack something (i.e. Looting).
Yeah I think it requires a specific loot context
why doesn't this game have something as simple as 'damage durability by an absolute x'
outside of enchantments
now to think about 8 predicates for main hand + offhand x 4 levels of unbreaking, and 128+ lines of durability code...
oh yeah I think I made it...
now to discard the item once it's used up its durability
okay it is finished thank you all for watching