Create new Type of material with existing textures

Discussion in 'Plugin Development' started by VortexGmer, Jun 7, 2015.

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


    How do I do what the title said?
    SO basically a Lapis Lazuli BLock but when you break it wood particles come out and a different item gets picked up. And maybe it could be like Material.WOOD_LAPIS But something like that...
    If this is possible how would I do it?
  2. Offline


    You would have to adjust the Bukkit API to create new Enumerators. The first thing you were talking about, the particle and drop item thing, can be done with methods from the unmodified Bukkit API.

    World#dropItemNaturally(Location location, ItemStack itemstack) - Drops an item naturally.
    World#playEffect(Location location, Effect effect, Int data) - Plays an effect. The "data" part would be for the ItemID of the block you would like to play the particles of.
  3. Offline


    Adding new type of items/materials is impossible without client-side modifications, but as
    @Googlelover1234 said, what you appear to want can be done. Maybe use Block#setType(Material.AIR) in addition to what he said.
    Googlelover1234 likes this.
Thread Status:
Not open for further replies.

Share This Page