RockinChaos / ItemJoin

Get custom items on join.
https://www.craftationgaming.com/
GNU Lesser General Public License v3.0
139 stars 36 forks source link

HELP #530

Closed ImSmoch closed 1 year ago

ImSmoch commented 1 year ago

How can I make the item change by left-clicking so that the text changes and the command to be executed changes as shown in the following images?

I used ItemJoin v5.2.5-RELEASE-b850

Spigot 1.8.8

2023-04-01_10 31 25

2023-04-01_10 31 29

2023-04-01_10 31 30

RockinChaos commented 1 year ago

As per the wiki the swap-item command feature will do this. Example;

  example-1:
    id: DIAMOND_SWORD
    interact:
      - 'console: say command1'
      - 'console: say command2'
      - 'swap-item: example-2'
    enabled-worlds: world
  example-2:
    id: STONE_SWORD
    interact:
      - 'console: say command3'
      - 'console: say command4'
      - 'swap-item: example-1'
    enabled-worlds: world
ImSmoch commented 1 year ago

How can I make it so that only the left-click changes the item and the right-click opens the menu? I'm getting this error as shown in the video.

https://imgur.com/a/qGhAFhO

RockinChaos commented 1 year ago

As per the wiki; https://github.com/RockinChaos/ItemJoin/wiki/Creating-Items#establishing-itemcommands

interact-left for left and interact-right for right.