Can I change block texture?

Discussion in 'Plugin Development' started by lucasdidur, Feb 6, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    lucasdidur

    Hello,

    I want create a chest, but with a Slab Texture, end when I right click on block, open the chest inventory.

    There some way that I can do this? Using Packets or some API?
     
  2. Offline

    MrTwiggy

    You can use ProtocolLib to replace chest block packets with stone slabs, or use a method of detecting chests and use the player.sendBlockChange to replace it with stone slabs client side. Or you can create a method in which stone slab 'chests' can be created, and when a player right clicks on them, it opens the internally stored inventory that is linked with that location.
     
  3. Offline

    lucasdidur

    Right, but I can't use Slab then cast to Chest to get the inventory? I want a simple way to change texture of a Chest.

    Clould you give me a exemple how to do this with sendBlockChange?
     
Thread Status:
Not open for further replies.

Share This Page