/* Watch mod by: MattdaveMatt made for TBPM Modpack
* Do NOT Distribute!
*/
var ini=false;
function selectLevelHook()
{
if(!ini)
{
ModPE.setItem(452, "clock_item", 0, "Watch");
Item.setCrafRecipe(452, 1, 0, [265, 1, 0, /*Iron ingot */, 348, 1, 0, /*Glowstone*/ 264, 1, 0, 334, 1, 0 /*Leather*/]);
}
}
var on=false;
function modTick()
{
if(Player.getCarriedItem()==452&&!on)
{
var ctx=com.mojang.minecraftpe.MainActivity.currentMainActivity.get();
var text = new android.widget.TextView(ctx); //First define a variable
text.setTextSize(10); //Set the size of the text
text.setText("test"); //Set the text
}
}
/* Watch mod by: MattdaveMatt made for TBPM Modpack * Do NOT Distribute! */ var ini=false; function selectLevelHook() { if(!ini) { ModPE.setItem(452, "clock_item", 0, "Watch"); Item.setCrafRecipe(452, 1, 0, [265, 1, 0, /*Iron ingot */, 348, 1, 0, /*Glowstone*/ 264, 1, 0, 334, 1, 0 /*Leather*/]); } } var on=false; function modTick() { if(Player.getCarriedItem()==452&&!on) { var ctx=com.mojang.minecraftpe.MainActivity.currentMainActivity.get(); var text = new android.widget.TextView(ctx); //First define a variable text.setTextSize(10); //Set the size of the text text.setText("test"); //Set the text } }Thanks!
Want GUI Templates? Done!
https://github.com/BeATz-UnKNoWN/ModPE_Scripts/wiki/ModPE-Script-Templates
P.S. Feel free to follow me so you know when I post "awesome" content and make the MCForums a brighter place (totally).
If you need to contact me you can either shoot a Kik message to beatz_unknown or send an email to [email protected]