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

Solved Custom texture possiblity?

Discussion in 'Development' started by 7awariGamer, Jun 4, 2019.

  1. 7awariGamer

    7awariGamer Baby Zombie

    Messages:
    120
    GitHub:
    7awariGamer
    Can I change any block or item texture using plugin? And how to code it?

    /texture
    |
    The grass texture changes
    |
    (For example)
     
  2. radondev

    radondev Silverfish

    Messages:
    21
    GitHub:
    radondev
    As far as I know, changing textures is just possible using texturepacks. Not quite sure about this
     
  3. neb16

    neb16 Witch

    Messages:
    71
    GitHub:
    developerneb101
    No its possible inside php, you just need the texture file and some knowledge on vector3
     
  4. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    What in the world are you talking about?? You can't change client sided textures without sending a texture pack to the client.

    Yes you can. As stated above, it's done using texture packs. Currently, there is no API to add a custom pack to the stack without using some hacks, so thats exactly what needs done.
    All the code shown in the onEnable function does what you want if the mcpack file is in the plugin's resources area (internal to the phar).
     
  5. 7awariGamer

    7awariGamer Baby Zombie

    Messages:
    120
    GitHub:
    7awariGamer
    Thx
     
  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.