Hi there! Thank you for checking out PickMoreBlocks!
PickMoreBlocks is a client-side Fabric mod that attempts to fix what I believe to be small gaps in the vanilla middle mouse click functionality, making the creative and survival experience that little bit smoother! Currently, it affects the behaviour of falling blocks, TNT, fire, nether portals and liquids, with more to come in the future!
Getting Started
Due to the use of BlockPickInteractionAware
and EntityPickInteractionAware
interfaces to make this mod compact, you will need to download Fabric API in order to use it. Once you have, simply drag both the Fabric API and PickMoreBlocks into your mods folder.
There is no configuration menu at this stage, since I don't deem the features of this mod to be obvious nor plentiful enough for you to want to disable them. However, if you play on a server, consider contacting your server admin to make sure they don't consider this mod to be a cheat.
Feature List
TNT & Gravity-Affected Blocks
In vanilla, gravity-affected blocks like sand can only be pickblocked when they are stationary, in block form. PickMoreBlocks fixes this to work with fallingBlock entities too!
For the sake of inclusion, TNT has also been fixed in the same way. I'd imagine this is only really useful for technical players who work with TNT, a group far larger than 0 these days!
Water & Lava
Ever since this mod released, I have wanted to add this feature! If you're aiming your crosshair at a liquid without selecting a block behind it, you will be given the bucket that corresponds to the liquid--a water bucket for water, and a lava bucket for lava.
Fire & Portals
In PickMoreBlocks, Fire and portals can give you flint and steel when middle-mouse clicked. The reason why this is so complicated is because flint and steel is not the only way to start a fire in Minecraft, so if the game cannot find flint and steel in your inventory but it can find a fire charge, it will give that to you instead!
If you have neither flint and steel nor a fire charge in your creative mode inventory, you will be given a fully repaired flint and steel.
For the nerds who want to know how the code for this works, click here!
public class CustomPickLogic { public static ItemStack onPickFire(PlayerEntity player) { for (int i = 0; i < player.getInventory().size(); i++) { ItemStack getStackAtSlot = player.getInventory().getStack(i);
Iteratively check every slot in the player's inventory.
if (getStackAtSlot.isOf(Items.FLINT_AND_STEEL) || getStackAtSlot.isOf(Items.FIRE_CHARGE)) return getStackAtSlot;
If the slot contains flint and steel or (at a lower priority) a fire charge, swap it with the mainhand slot...
} return new ItemStack(Items.FLINT_AND_STEEL);
...or if neither can be found, try to give the player a new flint and steel (fails outside of creative mode)!
} }
90% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+