Added: Magnet feature for bags. Suck in nearby items.
'/havenbags magnet <on|off>' - 'havenbags.magnet'
Code (YAML):
# Should players be able to magnify their bags? # If enabled, nearby drops will move towards the player. magnet:
enabled: true
range: 5.0
speed: 0.1
require-autopickup: false
only-autopickup-items: false
# If the bag has magnet enabled. # %magnet% - bag-magnet-on or bag-magnet-off, depending on on/off. bag-magnet: '&7Magnetic
: %magnet%' bag-magnet-on: '&aOn'
bag-magnet-off: '&cOff'
# Should the be hidden if 'off' ? bag-magnet-off-hide: false
Added: Refilling feature for bags.
When the player places down the last block in their hand, the same item is taken from the bag if any, and given to the player.
'/havenbags refill <on|off>' - 'havenbags.refill'
# If the bag has refill enabled. # %refill% - bag-refill-on or bag-refill-off, depending on on/off. bag-refill: '&7Refilling
: %refill%' bag-refill-on: '&aOn'
bag-refill-off: '&cOff'
# Should the be hidden if 'off' ? bag-refill-off-hide: false
Added: Support for ItemModel.
config.yml:
Code (YAML):
# Item Model if the bag-type is 'ITEM' bag-item-model: ''
Other configs may have been changed too, if you wish to use ItemModel, please check the default configs on github.
Added: Command '/havenbags clearcontent <all/player/bag-uuid>'
Removes the content of all bags, chosen player's bags, or a specific bag.
This command can only be run from the console, and cannot be undone.
Added: Command feedback for '/havenbags autosort <on|off>' and '/havenbags autopickup <filter>'.
Code (YAML):
# Message sent when the player toggles auto-pickup. auto-pickup-command: '&fAuto-pickup has been set to
: %value%.'
# Message sent when the player toggles auto-sorting. auto-sort-command: '&fAuto-sort has been set to
: %value%.'
Added: Inventory Lock, prevent players from getting rid of their bag by normal means.
Code (YAML):
# Should bags always remain in the player's inventory? # Good to use alongside Soulbound, otherwise death will drop the item. inventory-lock: false
Changed: Updated the '/havenbags help' list.
Honestly forgot to update it, and I have no clue if I updated it correctly.
Good luck!
Changed: Custom Bags now store their lore and name on the item, in order to not be overwritten by the lore update function.
Changed/Fixed: Updated the severely outdated BagDamagePrevention to newer code, and missed compatibility with non-HEAD bags.
Fixed: An error is no longer thrown, if a player attempts to open a bag item where the data is removed.
Fixed: An issue where the HavenBagsPreview on the bag refused to update upon closing the bag.
Fixed: An issue where using the quiver while wielding a shield, would cause animations to overlap or break entirely.
Code (YAML):
# Should bags be able to used as quivers? # Will prioritize offhand over inventory. quiver-bags: true
# Holding a shield while using the quiver feature tends to bug out. # Here are a few fixes you can choose: # 0 - No fix # 1 - Semi fix, shield animation blocked and arrow gets drawn, but bow/crossbow isnt charged. # 2 - Quivers are disabled if holding a shield. quiver-shield-fix: 2
Fixed: Some other minor issues, but I forgot to write them down, so i lost track.