gaucho-matrero / altoclef

Plays block game
MIT License
688 stars 175 forks source link

ignored gear #125

Open GaiaB0t opened 3 years ago

GaiaB0t commented 3 years ago

Bug Description

the bot ignores already provided netherite gear to make iron gear for some reason on all modes

Steps to Reproduce (as best as you can)

have netherite gear, doa command like @gamer or something

Expected Behavior

utilize the provided gear

Actual Behavior

completely ignore the provided gear and make iron tools

Crashlogs and Screenshots (if applicable)

TacoTechnica commented 3 years ago

Fix Idea (Personal Noes for when I fix this later)

gearSatisfied(Slot) -> returns whether a gear of a certain material or better is in that slot. From now on use that whenever checking for gear equipment.

EquipArmorOrBetterTask -> Keep EquipArmorTask, but have this extra option where it will equip the best armor in our inventory and use gearSatisfied to determine if it has enough gear to equip.

GaiaB0t commented 3 years ago

btw this applies to tools also

JamesGreen31 commented 2 years ago

I believe that this has been applied for tools. Possibly armor.