Solved Is it possible to add resource pack inside the plugin?

Discussion in 'Development' started by Rex350, Mar 28, 2020.

  1. Rex350

    Rex350 Spider

    Messages:
    11
    GitHub:
    rex350
    Is it possible to add a resource pack inside the plugin so when I am going to make a Simple Form with images, and I don't want to make a resource pack zip because I am going to publish my plugin, I can just get it inside the plugin? Is it possible?
     
  2. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,400
    GitHub:
    HimbeersaftLP
    You don't need a custom resource pack for a Simple Form with images, load them from an URL.
     
  3. Rex350

    Rex350 Spider

    Messages:
    11
    GitHub:
    rex350
    But when I used the URL, the image doesn't show, it is just loading even the link is a pure image and not HTML.
    Code:
    $form->addButton("Red Creeper Cape", 1, "https://i.imgur.com/QHzHCZS.png");
     
  4. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,400
    GitHub:
    HimbeersaftLP
    Try this: https://github.com/Muqsit/FormImagesFix
     
    GamakCZ and yuko fuyutsuki like this.
  5. Rex350

    Rex350 Spider

    Messages:
    11
    GitHub:
    rex350
    What am I going to do, I am going to copy the code or use it like the Form API? Do I just need to put it on my plugins folder?
     
    Last edited: Mar 31, 2020
  6. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,400
    GitHub:
    HimbeersaftLP
    Read the readme............

     
  7. Rex350

    Rex350 Spider

    Messages:
    11
    GitHub:
    rex350
    I already read it but it is still loading. The images show but it takes so long before it show. Is that normal when I installed the plugin? Or the images must instantly show
     
    Last edited: Apr 1, 2020
  8. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,400
    GitHub:
    HimbeersaftLP
    Does it show up when you run the /plugins command?
    Maybe your images are just very big?
     
  9. Rex350

    Rex350 Spider

    Messages:
    11
    GitHub:
    rex350
    Yes, the FormImagesFix plugin shows up on /plugins command.
    The image size is 256x256 pixels.
    iron_golem.png
     
  10. Muqsit

    Muqsit Chicken

    Messages:
    1,549
    GitHub:
    muqsit
    I just pushed an update to the plugin, can you check if the latest poggit build fixes it?
     
    HimbeersaftLP likes this.
  11. Rex350

    Rex350 Spider

    Messages:
    11
    GitHub:
    rex350
    It works now! Thank you!
     

Share This Page

  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.