#Data-Driven Luck on Entities

1 messages · Page 1 of 1 (latest)

magic wigeon
#

Relating to https://discord.com/channels/523663022053392405/1200784584506364004, there's actually a minecraft:luck component, too. People had previously only thought this was possible on Java Edition (Potion of Luck, for example). You can set this on an entity with a specified value and actually use it.

Luck is expressed in loot tables via the quality and bonus_rolls properties. You can, for example, add bonus rolls to an entity death loot table, and if the killer has additional luck, their level of luck would be multiplied for those properties for additional drops.

Discord

Discord is the easiest way to communicate over voice, video, and text. Chat, hang out, and stay close with your friends and communities.

shell cosmos
#

does it effect chest loot tables?

magic wigeon
#

I didn't note it before. I'll test it soon.

shell cosmos
#

ok

#

if it does that would be soo cool

magic wigeon
shell cosmos
#

oof

#

what other components are there?

magic wigeon
#

Oh, and I should also note that bad luck is a thing by using negative values of luck.

agile pawn
#

Huh? Seriously? LUCK?

barren geyser
#

This is a massive game changer
I'm already thinking of how I can integrate this into my addon 🤣

toxic crest
#

Just did some testing with luck, Quality does work on loot tables outside of fishing

shell cosmos
#

quality is the luck of the sea type effect right?

#

where it can make an item appear more commonly

shell cosmos
toxic crest
#

i tested custom loot tables
no vanilla mc table ( to my knowledge ) has the quality component on it outside of fishing

#

the player's luck is also zero by default

shell cosmos
#

oh alright

#

i'll check if adding the quality component to vanilla loot table can change how it works