[mod] inv_quickswap

Post Reply
User avatar
recluse4615
Member
Posts: 21
Joined: Thu Sep 01, 2022 18:52
GitHub: recluse4615

[mod] inv_quickswap

by recluse4615 » Post

inspired by xisumavoid's recent video about inventory management, inv_quickswap is a (very wip, maybe broken, here be dragons etc) mod to add a "quick swap" functionality!

wow, look, there's a demo video here!

how it works:
  • hold an item
  • press SNEAK + AUX_1 (default: SHIFT + E)
  • if the item has a valid "grouping", a formspec will show up with all other items in the grouping you have
  • select an item in the grouping
  • wow! your held item is the one you selected!
this needs to be utilised by mod developers & implementers to function properly, no groupings are available by default!

github: https://github.com/recluse4615/inv_quickswap

caveats:
  • each node should only appear once
  • each grouping should only be defined with up to 9 nodes (1 node for 1st param, 8 nodes for 2nd param)
it should Just Work (tm) on servers

i will upload this to contentdb when it's in a more "complete" state :)

aliefrizkymellyanda
Member
Posts: 15
Joined: Sat Oct 08, 2022 10:38

Re: [mod] inv_quickswap

by aliefrizkymellyanda » Post

recluse4615 wrote:
Tue Oct 04, 2022 11:55
inspired by xisumavoid's recent video about inventory management, inv_quickswap is a (very wip, maybe broken, here be dragons etc) mod to add a "quick swap" functionality!

wow, look, there's a demo video here!

how it works:
  • hold an item
  • press SNEAK + AUX_1 (default: SHIFT + E)
  • if the item has a valid "grouping", a formspec will show up with all other items in the grouping you have
  • select an item in the grouping
  • wow! your held item is the one you selected!
this needs to be utilised by mod developers & implementers to function properly, no groupings are available by default!

github: https://github.com/recluse4615/inv_quickswap

caveats:
  • each node should only appear once
  • each grouping should only be defined with up to 9 nodes (1 node for 1st param, 8 nodes for 2nd param)
it should Just Work (tm) on servers

i will upload this to contentdb when it's in a more "complete" state :)
mmm, can i test the mod please?

Post Reply

Who is online

Users browsing this forum: No registered users and 10 guests