• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
  • Minecraft 1.16.220 Update + Bug/Crash Fixes
    Added MCPE 1.16.220 version and fixed crashes for multiple plugins. You can view the full changelist here.
  • Forum Updates - 4/11/2021
    Various changes have been made to the forums and a few categories. You can view the full changelist here.

Item Info command

Warning!
Hello , there have been no replies in this thread for more than 30 days.
Please make sure you have a valid reason before you reply to this thread or you may face moderation action.

Skylar

Staff Member
Community Team
#1
Just in case you want your own version of /ii.

ItemInfo:
/cmd create ii id from a item
/cmd add ii let %id% = playerhand(%p%)
/cmd add ii let %name% = %id%[\"name\"]
/cmd add ii let %ii% = %id%[\"id\"]
/cmd add ii let %im% = %id%[\"variant\"]
/cmd add ii let %slot% = %id%[\"invslot\"]
/cmd add ii let %tel% = %id%[\"count\"]
/cmd add ii if %ii% = 0 then message %p% §cYou are not holding an item!
/cmd add ii if %ii% = 0 then exit
/cmd add ii message %p% §eName:§b %name%
/cmd add ii message %p% §eItemID: §b%ii%:%im%
/cmd add ii message %p% §eCount:§b %tel%
/cmd add ii message %p% §eInventorySlot: §b%slot%


Author: Unknown
 
Last edited: