Advertisement
peacestorm

getTexture(texture);

Jun 13th, 2015
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //if you set the image of something to getTexture("redstone_sword"), it will have the texture of a Redstone Sword
  2. function getTexture(texture){
  3. if(texture=="redstone_sword"){
  4. return android.graphics.BitmapFactory.decodeStream(ModPE.openInputStreamFromTexturePack("images/items-opaque/redstone_sword_0.png"));
  5. }
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement