var tick = 200;
function(useItem, side, itemId,blockId){
function modTick(){
tick--;
if(tick == 0){
clientMessage("Ten seconds left");
i forgot 2 } oops
Umm... That won't work I guess.. Try this:
var tick = 200;
var tickStart = false;
function useItem(x, y, ,z, itemId, blockId, side){
tickStart = true;
}
function modTick(){
if(tickStart){
tickStart = false;
tick--;
}
if(tick == 0){
clientMessage("Ten seconds left");
}
}
Rollback Post to RevisionRollBack
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! ---------------->
Im finnaly back so whats new I know that darth did the 50 line challenge for biome creatorSo every 20 ticks its one secondOk I think instead of the gui
Ima do a console.log that says available items so I just say /apple buy or/apple sell
Using .cmd function but ima need help doing thatSo far this is my code
function attackHook(attacker, victim)
{
if(Entity.getEntityTypeId(victim) == 36)
{
if(getCarriedItem() == 264)
{
preventDefault();
clientMessage("New Trade Has Begun")
}
}
}
var mob = null; //new global variable called mob
function deathHook(murderer, victim) //new hook and the parameters
{
if(Entity.getEntityTypeId(victim) == 36)
{
clientMessage("A Villager Has Died."); //client message
}
}
var vill;
var tick=1200;
function modTick(){
tick--;
{
if(tick==0){
var yyy= Math.floor((Math.random()*75)+50);
var xxx= Math.floor(Math.random()*256);
var zzz= Math.floor(Math.random()*256);
vill= Level.spawnMob(xxx,yyy,zzz,36,"mob/char.png");
Entity.setNameTag(vill,"Villager");
Entity.setRenderType(vill, 3);
tick=20;
}
}
}
var tick = 200; function(useItem, side, itemId,blockId){ function modTick(){ tick--; if(tick == 0){ clientMessage("Ten seconds left");i forgot 2 } oopsUmm... That won't work I guess.. Try this:
var tick = 200; var tickStart = false; function useItem(x, y, ,z, itemId, blockId, side){ tickStart = true; } function modTick(){ if(tickStart){ tickStart = false; tick--; } if(tick == 0){ clientMessage("Ten seconds left"); } }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! ---------------->
Game dev and Minecraft modder.
Twitter: @jv110br_
P.S. I'm brazilian
Game dev and Minecraft modder.
Twitter: @jv110br_
Ima do a console.log that says available items so I just say /apple buy or/apple sell
Using .cmd function but ima need help doing thatSo far this is my code
function attackHook(attacker, victim) { if(Entity.getEntityTypeId(victim) == 36) { if(getCarriedItem() == 264) { preventDefault(); clientMessage("New Trade Has Begun") } } } var mob = null; //new global variable called mob function deathHook(murderer, victim) //new hook and the parameters { if(Entity.getEntityTypeId(victim) == 36) { clientMessage("A Villager Has Died."); //client message } } var vill; var tick=1200; function modTick(){ tick--; { if(tick==0){ var yyy= Math.floor((Math.random()*75)+50); var xxx= Math.floor(Math.random()*256); var zzz= Math.floor(Math.random()*256); vill= Level.spawnMob(xxx,yyy,zzz,36,"mob/char.png"); Entity.setNameTag(vill,"Villager"); Entity.setRenderType(vill, 3); tick=20; } } }function rideAnimal(player,target);you could also regenerat health with this function
function setPlayerHealth(18);