Cuberite Forum
ItemCommander - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Plugins (https://forum.cuberite.org/forum-1.html)
+--- Forum: Plugin Releases (https://forum.cuberite.org/forum-2.html)
+--- Thread: ItemCommander (/thread-2648.html)

Pages: 1 2


ItemCommander - xoft - 11-30-2016

Allows users to bind commands to items, then executes the command when the player clicks with the item in hand.

Source / download: https://github.com/madmaxoft/ItemCommander

Commands

General
  • /itemcommand clear left - Clears the command to execute when left-clicking with the current item in hand
    Permission required: itemcommand.clear

    /itemcommand clear right - Clears the command to execute when right-clicking with the current item in hand
    Permission required: itemcommand.clear

    /itemcommand set left - Sets the command to execute when left-clicking with the current item in hand
    Permission required: itemcommand.set

    /itemcommand set right - Sets the command to execute when right-clicking with the current item in hand
    Permission required: itemcommand.set


Permissions
  • - itemcommand.clear -
    • Commands affected:
      - /itemcommand clear left
      - /itemcommand clear right
    - itemcommand.set -
    • Commands affected:
      - /itemcommand set left
      - /itemcommand set right



RE: ItemCommander - xoft - 11-30-2016

Note that this command is currently in very early stage and has some bugs, some of which are unknown whether they can be fixed:
- Left-clicking only works when looking at a block
- Right-clicking may execute the command multiple times


RE: ItemCommander - NiLSPACE - 11-30-2016

You can use the HOOK_PLAYER_ANIMATION hook for left clicking: https://github.com/cuberite/WorldEdit/blob/master/Classes/ToolRegistrator.lua#L307-L316


RE: ItemCommander - ShadowCone - 12-01-2016

I think this should be integrated into essentials as "powertool" or an extended version of it.


RE: ItemCommander - denwo - 12-02-2016

it would be cool if you added a new feature, where you could access multiple servers and such, would it be accessed by a lua window? or should it be right click boom you are in a lobby?


RE: ItemCommander - NiLSPACE - 12-02-2016

I think that deserves it's own plugin.


RE: ItemCommander - xoft - 12-02-2016

I only created this plugin because I needed it in the Gallery server (try setting the same metadata for 50+ areas manually Smile ) and I don't plan on developing it (much) more. Perhaps I'll fix those two bugs, if ever I get time, but it's unlikely I'll do anything else. Sorry.


RE: ItemCommander - NiLSPACE - 12-02-2016

The right click firing twice isn't because of the blockface being BLOCK_FACE_NONE right?


RE: ItemCommander - xoft - 12-02-2016

It's actually firing three times, once with BLOCK_FACE_NONE and twice with proper coords and face.


RE: ItemCommander - NiLSPACE - 12-02-2016

Strange, that would mean the right-click compass in WE is broken as well.