Refined Relocation

Refined Relocation

3M Downloads

Allow stuffed items to be removed

Dynious opened this issue ยท 5 comments

commented

Possible way; leftclicking the stuffed side.

commented

An issue with left clicking the stuffed side would probably be that the user would think that they were about to break the relocator, which it wouldn't, and instead items (Theoretically 1000s of items) would spill into the world.

My ideas:

  • If relocators actually store the item, perhaps we could open a GUI showing the items, and allow them to be removed from there as if the GUI was a chest. That does seem over complicated, though, since we'd need a scrollable chest GUI or something similar.
  • Allow linking a stuffed relocator to an inventory on the same relocator network, and we would pipe what items we could into that inventory.
commented

Well, when you break the Relocator the theoretical 1000 items will spill too. But my initial idea was to do it per 5 stacks, which would also fix the problem!

commented

Per 5 stacks seems good.. is there a way to directly add the items to a player's inventory, if there is room, instead of dropping on ground?

commented

I'm not sure, I still need to figure out how to detect a left click, but it's possible (barrels). Will probably look at it tomorrow.

commented

Working on this now, do you want me to open a pull request (even though the code isn't done.)?

Also, should we return the stuffed items when clicking anywhere on the relocator, or just the stuffed connection?

For now, I am not sure how to implement left-click functionality on Multiparts. Also, on the block, while I can stop the player from breaking the block, I can't seem to stop untextured particles appearing.