This was one of the first plugins I ever made, but I haven’t had a clue how to make it work in Sponge, and hope someone who can make sense of the inventory /slot handling can pull this off for 1.11(.2)
I would like to see a plugin that behaves such as when a player is placing blocks, if their hand goes empty from placing the last block in the stack, the rest of their inventory is examined, and if they are holding another itemstack elsewhere, it automatically relocates that itemstack to the same slot as their hand is currently using.
For example, if I am placing a huge amount of diorite out, and my inventory looks like the inset below, with the GREEN slot being my active hand slot as I place all the diorite out… then the plugin should look at the rest of the inventory, where there are 3 stacks of diorite (1 other stack in my hotbar, 2 in the pocket inventory).
Preferrably, it should take from the pocket inventory first, be it forwards or backwards I dont care, but if working ‘backwards’ then it would take the first stack which is 16 and place it into my green slot as soon as I place that last block; then when that is finished, take the other 64 stack from the pocket inventory, then when that is consumed, take from the higher-numbered hand slot and put it into the green slot.
Must be exact same stuff - not ‘any color wool’ - orange wool only to replace orange wool, white glass to replace white glass, purple flowers to replace just purple flowers, oak planks to replace oak planks.
Ideally, the itemstack should also have the same displayname, etc ie if I have a stack of diorite that has a displayname of “Salt” it should not use it. But thats just bonus icing on the cake.
==
It would also be good for the plugin to use a related mechanism regarding tools - in this case, when I finish using and break my first slot pickaxe, I have the exact same tool type elsewhere in my inventory, and it can auto-replace it.
With bukkit, there were a bunch of problems making tools work right this way, and it required having to throw it away with 1 life point still left in it and make a toolbreak sound, sponge may require a similar treatment.