Look at this code I just made: PHP: class Wallet extends Item{ public function __construct($meta=0,$count=1) { $this->block=BlockAPI::get(329); parent::__construct(329,0,$count,"Wallet"); $this->maxStackSize=1; $this->isActivable=true; } public function onActivate(Level $l,Player $p,Block $b,Block $t,$face,$fx,$y,$z) {//drop money ServerAPI::request()->api->entity->drop( new Position($target->x+0.5,$target->y+1,$target->z+0.5,$target->level), $this); $p->removeItem(329,$this->meta,1,true); } public function setMoney($amount) { $this->meta=$amount;; } public function increaseMoney($amount) { $this->meta+=$amount; } public function getMoney() { return $this->meta; } public static function equipChange($data) {//called from the Plugin if($data["item"] instanceof Wallet and EconFactionsLoadable::wantWalletMsg($data["player"]->username)){ $data["player"]->sendChat("You are holding a wallet containing $".$data["item"]->getMoney()*100); } }} This code uses the unused saddle object to replace a wallet (similarly leather) and saves data in its damage value. Would this kind of custom items succeed? (yes and I know that the max money to be in a wallet is $1500 and must be multiples of $100 but I don't need to if()else() it because it is only called from my own code or otherwise, just not from players' hands)
Or if I have to save more money I will need to make two kinds of wallets with same/similar texture, but I can't find any.
Wait... I suddenly realized that I could submit this for the plugin contest. Can I still submit the whole plugin after this partial release of part of the code? @shoghicp ?
You can however, since it's not possible to get a texture to it, he decided to use the saddle, which is currently unused in PocketMine and MCPE itself I believe. This is a pretty cool idea really!
Actually, it is possible to edit the texture of an unused block or item and set the texture for the item that you created to the texture of the unused item or block. To edit the textures you would need to replace the source images for Minecraft PE with your own textures. For ios you can only replace source images on ios 5 and below using a program called iexplorer or a program similar to iexplorer
Hey Pemapmodder! I'm Jake70112 (You know me lol) I would like to tell you that The Butter Network is willing to work with you with other owner of servers. We would be very gald that you are willing to work with us. Please message that you want to work with us at the The Butter Network forums. Thanks! By Cheston Tan
No, you can't just burst off topic without at least having something to do with the topic in the first place.