1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

to bid an item give

Discussion in 'Development' started by JblusMC, Aug 14, 2018.

  1. JblusMC

    JblusMC Spider

    Messages:
    14
    hello, I know how to charm an item, in mpon code I have to put '$ players-> getInventory () -> setChestplate (Item :: get (Item :: DIAMOND_CHESTPLATE))', here I am, I would like to give an item and the enchant directly, how to do?
     
  2. corytortoise

    corytortoise Skeleton

    Messages:
    825
    GitHub:
    corytortoise
    You can add an enchantment using this example. If you want to add the enchantment in the Item::get() method, the last parameter needs to be NBT data. This may be helpful for that.
     
  3. JblusMC

    JblusMC Spider

    Messages:
    14
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.