Ei kuvausta

luarocks 3c6f246fc1 Add Mineclone autodetection 1 vuosi sitten
images 4c005b1955 Add multi-names 1 vuosi sitten
LICENSE cec70b7678 Init 1 vuosi sitten
README.md 8175783814 Update readme 1 vuosi sitten
handlers.lua cec70b7678 Init 1 vuosi sitten
init.lua 3c6f246fc1 Add Mineclone autodetection 1 vuosi sitten
mod.conf c466fbbb1c Squash 1 vuosi sitten
screenshot.png b5528fd0d5 Fix screenshot 1 vuosi sitten
settingtypes.txt 3c6f246fc1 Add Mineclone autodetection 1 vuosi sitten

README.md

Coolbar

Originally I made a simple mod that separates inventory from a bar, allowing you to move things between them by shift-click, like in Minecraft. But because of some technical specifics of the Minetest engine my mod was not really simple and require significant changes to all mods that interact with inventory.

So I had the idea of a new mod (which you see now) that automatically manage your inventory, removing all trash from the bar and putting your preferred items on it, without affecting inventory structure, which makes it much mores compatible with other mods.

As a result, it turned out to be very comfortable and easier than manual shift-clicking!

demo

Explanation of the mod behavior

  • The mod has a preferences that specifies one or more types of items for each slot on the bar. However, these settings can also be empty.
  • The mod doesn't work when moving items FROM player's inventory within the formspeck, which allows a player to move things between the bar and the rest of the inventory manually.
  • Adding items to the bar manually temporarily replaces the slot settings with this item until it disappears from the bar for any reason.
  • If an item not specified in the preferences ends up on the bar, it is moved to the inventory.
  • If the number of items on the bar decreases, the mod tries to fill shortage from the inventory.

Compatibility notes

For i3 users I recommend to check all checkboxes in its settings:

demo

Mineclone users needs to change bar_size from 8 to 9 and inv_start from 9 to 10 in the mod settings.

Please, be very careful changing these numbers. If the mod crashed, check twice if these numbers was correct before reporting a bug!

What can be improved

  • The order of items in the settings is currently irrelevant. Maintaining a strict order is not easy task, requiring to rewrite half the code backwards.
  • Would be cool to add the ability to automatically change settings depending on the loaded game.

This mod was created in Minetestia Forge.

All my mods uses Minetest LSP-API annotations, StyLua and Luacheck.