Filled Swap Two Inventory / Hotbar Slots (by pressing 'F'?)

Discussion in 'Plugin Requests' started by iMikul, Apr 23, 2017.

Thread Status:
Not open for further replies.
  1. Offline

    iMikul

    Description: I need a Bukkit plugin that allows any person (opped or not) to swap two configurable slots, preferably one Hotbar slot and one inventory slot, by pressing F (item in offhand).
    This needs to work for ANY two items, not just the two in the example. They need to keep NBT, Damage, ID, etc.

    Version: 1.8.x - 1.11.2 please :)

    No time limit, just as soon as you can

    Example: this is an example of what want:
    (The clip is edited, of course just to show you what I mean)
     

    Attached Files:

    Last edited: Jun 24, 2017
  2. Offline

    DarkJohnson

    And how do you swap your off-hand Item them??? Only through inventory? If that is okays I can do it
     
  3. Offline

    termanator1128

    @iMikul And you can't do that in 1.8
     
  4. Offline

    iMikul

    Pressing 'F' will swap the item in your offhand with the one in your selected slot. I am looking for a plugin that detects this and swaps the selected slot with another configurable inventory slot as seen in the GIF attached to my request.
    If you don't want to config, then the last inventory slot (number 35 I believe) will do.

    Okay, 1.9 through 1.12 is acceptable

    -Thank you both for showing interest
     
    Last edited: Jun 24, 2017
  5. Offline

    iMikul

    Is nobody going to take this into consideration? I've seen no takers on this post, and I imagine it wouldn't be too difficult. (Of course, I'm here with limited coding experience asking for a plugin, so I don't really know...)
     
  6. Offline

    Horsey

    I can do this for you :)

    EDIT: Alright I'm done. Here's the link: https://www.dropbox.com/s/mws3obw6qluqsr0/SwapInv.jar?dl=0

    Just a few adjustments to the config, 'inv-slot' this is the first slot in the inventory. 'inv-slot2' this is the OPTIONAL second slot. if 'useMainHand' is set to true, 'inv-slot2' will be overriden, and the 'inv-slot' will be swapped with the item in main hand.

    It's kind of tricky to describe, but I hope you figure it out :)
     
    Last edited: Jun 24, 2017
  7. Offline

    iMikul

    Ah! I have just seen your comment, shame I didn't see it earlier. I'll test it out now!

    PERFECT! This is exactly what I wanted! Even a config and everything. Thank you so much for making this for me!
     
  8. Offline

    Machine Maker

    @iMikul If the plugin is completed, don't forget to mark this thread as filled.
     
  9. Offline

    iMikul

    @iMikul
    Oh, of course. Thank you.
    It is now marked as "Filled"
     
Thread Status:
Not open for further replies.

Share This Page