We will use this method:
ModPE.setItem (id, "texturename" texturedata, "itemname");
let's use an example?
if I use this texture pack:
we can see that the slime ball is blue.
Lets get started!
"ModPE.setItem(500,"slimeball", 0, "Blue Ball");"
slimeball---is a name of a texture.We can find these names on this site: http://zhuoweizhang.net/mcpetexturenames/
I created the item Blue Ball,using a texture we can modify items.
You can create various items.
How we can create edible items?
ModPE.setFoodItem(Id,"texturename",texturedata,hearts,"item name")
Example:
"ModPE.setItem(501,"slimeball", 0, "Edible Ball");"
Now the blue ball is edible...
Nenhum comentário:
Postar um comentário