Go to file
Lars Mueller 3f531ea892 rolling-2 2020-04-25 13:17:54 +02:00
Readme.md rolling-2 2020-04-25 13:17:54 +02:00
default_config.json Setup 2020-04-25 13:09:57 +02:00
init.lua Setup 2020-04-25 13:09:57 +02:00
main.lua Setup 2020-04-25 13:09:57 +02:00
mod.conf Setup 2020-04-25 13:09:57 +02:00

Readme.md

Cycle Limit (cycle_limit)

Makes switching between inventory slots take time.

About

Cycle Limit only depends on modlib. Code by Lars Mueller aka LMD or appguru(eu) and licensed under the MIT license.

Part of the Limit Series: item_limit, place_limit and cycle_limit

Features

  • When switching between inventory slots, the item you are switching to will be "hidden"
  • A bar appears showing you the time left, and after it's over (or if you switch again) the hidden items reappear
  • During switching you can only use your hand
  • Hidden items are not lost if the server crashes

Known issues:

  • The item is temporarily removed from the inventory
    • Can't be circumvented because else get_wield_item would return item that is being switched to
    • Accordingly, it can't be seen

Screenshot

Screenshot

Configuration

Configuration can be found under <worldpath>/conf/cycle_limit.json.

Default configuration:

{
    "name": "Switching",
    "duration": 2,
    "color": "545AA7"
}
  • name is the timer name
  • duration is the time it takes to switch in seconds
  • color is a hex color (but without #)