wonka101

Inventory Weight (default config)

Mar 14th, 2021 (edited)
2,382
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 2.69 KB | None | 0 0
  1. # Maximum weight (once this limit is reached a player's speed will no longer decrease)
  2. # a higher value means there will be a higher variance in speed
  3. weightLimit: 500
  4. # If set to true, upon reaching [weightLimit], the player will be unable to walk
  5. # until their weight decreases.
  6. disableMovement: true
  7.  
  8. # Sets the walk speed when a player has an empty inventory(max) and when a player has weight greater than
  9. # or equal to the weight limit(min) (Note: .20 is the default walk speed in Minecraft)
  10. # values must be between 1.0 and 0.0 and min speed must be less than max speed
  11. maxWalkSpeed: .30
  12. minWalkSpeed: .05
  13.  
  14. # The % of the weight capacity that a player must reach before their speed begins to decrease
  15. # Up until this value the player will have the max walk speed. For example if the value is set to .50 . The player will
  16. # be at max speed of .30 until they reach 50% of the weight limit. Then it will begin to decrease.
  17. beginSlowdown: 0.0
  18.  
  19. # Time in seconds where the plugin will recalculate each player's weight
  20. # A lower number results in more frequent updates
  21. checkInventoryTimer: 2
  22.  
  23. # Include names of the worlds you would like to be affected by the plugin.
  24. # if you would like it to affect every world then leave this empty
  25. worlds:
  26. #  - world
  27. #  - otherWorldToEnable
  28.  
  29. # if set to true only the armor slots will be counted for a player's weight
  30. armorOnly: false
  31.  
  32. # Sets the default weight for all items not specified
  33. defaultWeight: 1.5
  34.  
  35. # List of materials and their weights, if a material is not listed then it assumes the default value
  36. # list of materials can be found here: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html
  37.  
  38. # PRIORITY ORDER loreTags >> customItemWeights >> materialWeights
  39.  
  40. # You can add a custom "lore tag" to the lore of an item and this plugin will determine the weight.
  41. # In this example if you have a line in the item lore that says "Weight: 110", the weight for that
  42. # item will be 110! The tag "Weight:" must be in the lore string for the plugin to pick it up.
  43. loreTag: 'Weight:'
  44.  
  45. # similar to the lore tag, capacity tag can be used to create items that
  46. # increase a player's max weight!
  47. capacityTag: 'Capacity:'
  48.  
  49. # example weight by material
  50. materialWeights:
  51.   - material: IRON_PICKAXE
  52.     weight: 5
  53.   - material: IRON_SWORD
  54.     weight: 10
  55.   - material: BROWN_MUSHROOM
  56.     weight: 0.5
  57.   - material: WHEAT_SEEDS
  58.     weight: 1.5
  59.   - material: DIAMOND_SWORD
  60.     weight: 5
  61.  
  62. # Weight by item name
  63. customItemWeights:
  64.   - name: Diamond Sword of Doom
  65.     weight: 20
  66.  
  67. # If true a player will be notified each time their inventory weight changes
  68. # Don't recommend using - this is mostly for development purposes
  69. showWeightChange: false
  70.  
Add Comment
Please, Sign In to add comment