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

Create image

Discussion in 'Development' started by Kyd, Apr 27, 2017.

  1. Kyd

    Kyd Zombie Pigman

    Messages:
    678
    GitHub:
    boi1216
    How to do this?
    upload_2017-4-28_15-33-41.png
     
  2. falk

    falk Slime Poggit Reviewer

    Messages:
    75
    GitHub:
    falkirks
    Muqsit and SOFe like this.
  3. Smarticles101

    Smarticles101 Silverfish

    Messages:
    22
    GitHub:
    Smarticles101
    When was this added to the game? I've not been around a lot the past year or two and haven't seen this before
     
    jasonwynn10 likes this.
  4. Kyd

    Kyd Zombie Pigman

    Messages:
    678
    GitHub:
    boi1216
    Picture with changed image I think they added Picture in 0.13?
     
  5. Kyd

    Kyd Zombie Pigman

    Messages:
    678
    GitHub:
    boi1216
    So, When I have converted image to byte array how to add to painting then? I using AddPaintingPacket
    PHP:
    $pk = new AddPaintingPacket();
    $pk->eid 1450;
    $pk->111;
    $pk->66;
    $pk->113;
    $pk->direction 3;
    $pk->title "??";
    $p->dataPacket($pk);
     
  6. dktapps

    dktapps Administrator Staff Member PMMP Team

    Messages:
    774
    GitHub:
    dktapps
    Maps were added in 0.14, January last year. I reversed the encoding of ClientboundMapItemDataPacket a few weeks ago, hence why everyone now has custom billboards.
     
    Muqsit, Smarticles101 and jasonwynn10 like this.
  7. falk

    falk Slime Poggit Reviewer

    Messages:
    75
    GitHub:
    falkirks
    You can only do that with maps, for paintings you will need a texture I believe.
     
  8. Kyd

    Kyd Zombie Pigman

    Messages:
    678
    GitHub:
    boi1216
    They dont have texture and have this
    EDIT: i forgotten it is Nukkit not pocketmine on screenshot but when is is possible on nukkit i think on pocketmine too?
     
  9. Sandertv

    Sandertv Zombie Pigman Poggit Reviewer

    Messages:
    786
    GitHub:
    Sandertv
    What you see there is not a painting, but item frames with maps that have custom data on them. I doubt paintings can even have custom textures managed with packets at all, I think they're hardcoded by Mojang.
     
    Last edited: Apr 27, 2017
  10. Kyd

    Kyd Zombie Pigman

    Messages:
    678
    GitHub:
    boi1216
    Ok, but how to add map to Item frame?
     
  11. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    Paintings can have different pictures if the server has a texture pack
     
    Sandertv likes this.
  12. xBeastMode

    xBeastMode Shog Chips

    Messages:
    0
    Just tap the item frame with the item in hand and it should be added. :p why would you need an explanation for this anyway?
     
  13. Kyd

    Kyd Zombie Pigman

    Messages:
    678
    GitHub:
    boi1216
    I want add map with image
    I tap item frame with map and i have only this
    upload_2017-4-28_18-44-21.png
    How I add image now when i have converted data to byte array?
    My image is 127x127
     
  14. xBeastMode

    xBeastMode Shog Chips

    Messages:
    0
    Did you fill the map?
     
  15. Kyd

    Kyd Zombie Pigman

    Messages:
    678
    GitHub:
    boi1216
    Edited
    I dont know how :D
     
    Last edited: Apr 27, 2017
  16. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    Are you a noob to minecraft itself?? Have you never used a map before??
     
    Muqsit, dktapps and Sandertv like this.
  17. Kyd

    Kyd Zombie Pigman

    Messages:
    678
    GitHub:
    boi1216
    No I dont have used map before
     
  18. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    maybe you should try to in vanilla before trying to on a server
     
  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.