New Luanti mod: Yet Another Magnet
I saw in the recently added mods list on ContentDB a mod named Magical Magnet. I love the idea of being able to pull dropped items towards me, and also the ability to blacklist items (like cobbled deepslate). I wasn't interested in the magic mods depends on or additional ores added, so I hard-forked this mod for myself!
I set up a battery inventory and MCL and MTG support. I expect I had more fun writing this than I will have using it.
It is now available in Internal ContentDB (scm)
Description
This mod adds a craftable magnet that drags dropped items towards you. It takes batteries, which get used faster if you set the magnet radius larger! This mod is tested in the following Luanti games.
Using
Craft a magnet and also some batteries. Right-click while wielding a magnet to open the formspec, and install batteries in the battery inventory.
While wielding the magnet, left-click to turn it on. It starts using batteries, which last 3.75 seconds on radius 10, and scaling up to 37.5 seconds on radius 3. Leave the turned-on magnet in your inventory for it to continue to pull dropped items to you. You do not need to wield the magnet for it to work; just being in the main inventory is enough.
Screenshots
Settings
None. Each magnet is configured individually.
Current weaknesses
The battery consumption when trying to use multiple magnets can get weird. Also, the combined blacklist of multiple magnets might not work so well. Overall, while more than one magnet should work, they don't really.
Alternatives
This mod is a hard fork of mod Magical Magnet which provided the original inspiration, but depends on some magic mods this author did not wish to use.






Comments