nickrobson / skillmmo

A Fabric mod for Minecraft that adds unlockable skills to the game
MIT License
5 stars 1 forks source link

Armor Equip Restriction Can Be Bypassed #9

Open SourcePyX opened 10 months ago

SourcePyX commented 10 months ago

Describe the bug You can bypass the armor restrictions by either Shift clicking inside the player inventory or by setting the armor into a dispenser and having it dispensed on the player.

Minecraft and Fabric version minecraft - 1.20.1 fabric - 0.15.3 (api 0.91.0)

Config changes no

Other mods installed same result with/without any additional mods

To reproduce Steps to reproduce the behavior:

  1. Go into creative
  2. Give yourself a leather helmet
  3. Go into survival
  4. Press E to open inventory
  5. Hold Shift and Left click on the helmet
  6. You have now equipped the helmet

Expected behavior Not equip the locked armor

Samuel-Lewis commented 4 months ago

Maybe a change in mechanics would simplify this?

Can always equip armor/tools/weapons, but their effectiveness is zero. eg, can equip some diamond armour, but it provides no damage resistance/reduction, weapons and tools would be equivalent to an empty hand. TBD if it takes durability or not.

Tradeoff is that it would make it less obvious to a Player that they are under levelled. Maybe when you get hit, the armour is unequipped? Some brainstorming required there.