Hello guys!
I wanted to know if i can render an entity like a block. I know there is a command to do it, BUT, I have one BIG problem. I don`t know how to place textures on that block. For example i have a script that changes players look and makes him to be like block, BUT this block DOESN`T HAVE TEXTURES. Please help me and tell how to put textures when rendering Entity like a block if you can. Thanks!
function useItem(x, y, z , itemId, blockId, side)
{
if(itemId == 0) //If Item is your hand
{
var P = Level.spawnMob(x, y+1, z, 32); //Spawn a zombie with his default texture
Entity.setRenderType(P,20); //Set its render too a block
}
}
Make sure you follow me on twitter! @DarkDiaMiner IF I post a mod download it and give me a +1 if you appreciate.
Make sure you give me a suggestion at my WIP topic darkPE
Make sure you click on that +1 button if I help you! ---------------->
function useItem(x, y, z , itemId, blockId, side)
{
if(itemId == 0) //If Item is your hand
{
var P = Level.spawnMob(x, y+1, z, 32); //Spawn a zombie with his default texture
Entity.setRenderType(P,20); //Set its render too a block
}
}
Click that green button if i helped you
I knew that code already... I need to change the texture of the block, because it is white. I`ll EXPLAIN, i need a zombie that is a block, but the block has a texture
I wanted to know if i can render an entity like a block. I know there is a command to do it, BUT, I have one BIG problem. I don`t know how to place textures on that block. For example i have a script that changes players look and makes him to be like block, BUT this block DOESN`T HAVE TEXTURES. Please help me and tell how to put textures when rendering Entity like a block if you can. Thanks!
function useItem(x, y, z , itemId, blockId, side) { if(itemId == 0) //If Item is your hand { var P = Level.spawnMob(x, y+1, z, 32); //Spawn a zombie with his default texture Entity.setRenderType(P,20); //Set its render too a block } }Click that green button if i helped you
IF I post a mod download it and give me a +1 if you appreciate.
Make sure you give me a suggestion at my WIP topic darkPE
Make sure you click on that +1 button if I help you! ---------------->
I knew that code already... I need to change the texture of the block, because it is white. I`ll EXPLAIN, i need a zombie that is a block, but the block has a texture
-
View User Profile
-
View Posts
-
Send Message
Curse Premium