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

Solved How can I change the description of an item

Discussion in 'Plugin Help' started by Znightmare123, Aug 7, 2020.

  1. Znightmare123

    Znightmare123 Spider Jockey

    Messages:
    25
    Hello forum!! Again xD

    Now I wonder if it is possible to change the description of an item, imagine a sword, see the blue box where it explains the damage of this?
    What I want to know is how to modify this part, or if you can, I will appreciate your answers!! :D
     
  2. GodWeedZao

    GodWeedZao Zombie Pigman

    Messages:
    401
    GitHub:
    godweedzao
    Hello again xD (just me asking your questions in forum Lmao).

    for change description of item use this code
    PHP:
    $Bow Iteg::get(Item::BOW); //getting bow
    $Bow->setLore(["GodWeedZao's Bow"]); //set item desc to what ever you want.
    $player->getInventory()->addItem($Bow);
    //DONE
    NP, set prefix to SOLVED ;)
     
    Znightmare123 likes this.
  3. Znightmare123

    Znightmare123 Spider Jockey

    Messages:
    25
    Wow You're beating yourself ahahaha and thank you very much
     
  4. Znightmare123

    Znightmare123 Spider Jockey

    Messages:
    25
    Else
    You could solve the Geometry problem??
     
  5. GodWeedZao

    GodWeedZao Zombie Pigman

    Messages:
    401
    GitHub:
    godweedzao
    geometry for what? skin?
     
  6. GodWeedZao

    GodWeedZao Zombie Pigman

    Messages:
    401
    GitHub:
    godweedzao
    Why? xD
     
  7. GodWeedZao

    GodWeedZao Zombie Pigman

    Messages:
    401
    GitHub:
    godweedzao
    Explain your question and problem.
     
  8. Znightmare123

    Znightmare123 Spider Jockey

    Messages:
    25
  9. GodWeedZao

    GodWeedZao Zombie Pigman

    Messages:
    401
    GitHub:
    godweedzao
    its a word, its not explain your problem / code / question!
     
  10. Znightmare123

    Znightmare123 Spider Jockey

    Messages:
    25
    Ahahahaha Sorry XD, I was very distracted, it's about whether you can add textures /items/objects/created by blockbench :D
     
  11. GodWeedZao

    GodWeedZao Zombie Pigman

    Messages:
    401
    GitHub:
    godweedzao
    Oh, sorry i tried a lot to learn how to work with block bench but i didnt learn it Lol, its a bit hard to work and idont know how it works sorry, but i think there is toturials in youtube.com ?
     
  12. Znightmare123

    Znightmare123 Spider Jockey

    Messages:
    25
    Okay, don't worry, thanks!!
     
  13. GodWeedZao

    GodWeedZao Zombie Pigman

    Messages:
    401
    GitHub:
    godweedzao
    np :p
     
  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.