var countdown = 100; //this is in "ticks", where one tick = 1/20th of a second
function modTick() { //this is called every 1/20th of a second by ModPE Scripts
countdown--; //subtract 1 from countdown
if (countdown == 0) { //100 ticks elapsed
clientMessage("DOCTOR OCTAGONAPUS BLAAAAAAARGH"); //send the message
countdown = 100; //reset the countdown
}
}
var countdown = 100; //this is in "ticks", where one tick = 1/20th of a second
function modTick() { //this is called every 1/20th of a second by ModPE Scripts
countdown--; //subtract 1 from countdown
if (countdown == 0) { //100 ticks elapsed
clientMessage("DOCTOR OCTAGONAPUS BLAAAAAAARGH"); //send the message
countdown = 100; //reset the countdown
}
}
So if i add this in there just like this it would work ? & Thanks
Rollback Post to RevisionRollBack
If i helped you or you like me our my mods / clan Subscribe ! Alot of cool and fun videos !
var countdown = 200; //this is in "ticks", where one tick = 1/20th of a second
function modTick() { //this is called every 1/20th of a second by ModPE Scripts
countdown-- 2; //subtract 1 from countdown
if (countdown == 1) { //100 ticks elapsed
clientMessage("DOCTOR OCTAGONAPUS BLAAAAAAARGH"); //send the message
}
else if(blockId==87)//Tap Nether Rack
{
spawnPigZombie(x, y, z, 87, "mob/zombie.png");
clientMessage("MOB SPAWNER ACTIVATED");
setNightMode(14500);
spawnPigZombie(x, y, z, 87, "mob/zombie.png");
spawnPigZombie(x, y, z, 87, "mob/cow.png");
spawnPigZombie(x, y, z, 87, "mob/zombie.png");
spawnPigZombie(x, y, z, 87, "mob/zombie.png");
spawnPigZombie(x, y, z, 87, "mob/Zombie.png");
clientMessage(" ·€¢ Made By: ShaderGameing ¢€ ");
setTile(x, y, z ,0)
countdown = 100; //reset the countdown
}
}
Rollback Post to RevisionRollBack
If i helped you or you like me our my mods / clan Subscribe ! Alot of cool and fun videos !
var countdown = 200; //this is in "ticks", where one tick = 1/20th of a second
function modTick() { //this is called every 1/20th of a second by ModPE Scripts
countdown-- 2; //subtract 1 from countdown
if (countdown == 1) { //100 ticks elapsed
clientMessage("DOCTOR OCTAGONAPUS BLAAAAAAARGH"); //send the message
}
else if(blockId==87)//Tap Nether Rack
{
spawnPigZombie(x, y, z, 87, "mob/zombie.png");
/* we are running in modTick, not useItem, so we don't have access to the variables of useItem:
you can't get x, y, z, blockId, all that.
what you could do is to define some variables that would hold those numbers when you run useItem,
and, in modTick, use those saved numbers.
Check Codecademy for tutorials on this.
*/
clientMessage("MOB SPAWNER ACTIVATED");
setNightMode(14500);
spawnPigZombie(x, y, z, 87, "mob/zombie.png");
spawnPigZombie(x, y, z, 87, "mob/cow.png");
spawnPigZombie(x, y, z, 87, "mob/zombie.png");
spawnPigZombie(x, y, z, 87, "mob/zombie.png");
spawnPigZombie(x, y, z, 87, "mob/Zombie.png");
clientMessage(" ·€¢ Made By: ShaderGameing ¢€ ");
setTile(x, y, z ,0)
countdown = 100; //reset the countdown
}
}
I user that to learn PhP & Java Script ! But right now my pc id acting up sooo !! & do u think u can edit it for me ? !! Please lol ! I've been very busy and im new to " Modding "
Rollback Post to RevisionRollBack
If i helped you or you like me our my mods / clan Subscribe ! Alot of cool and fun videos !
I user that to learn PhP & Java Script ! But right now my pc id acting up sooo !! & do u think u can edit it for me ? !! Please lol ! I've been very busy and im new to " Modding "
Learn more JavaScript: I'm not the author of your mod; you are. I think that working through more of the tutorials would be helpful. When I learned JavaScript, the tutorials didn't let you try code on the page itself - so you actually get to learn faster.
I suggest that you take a look at the tutorials: you'll learn loops, functions, variables, and all sorts of cool stuff that will help you understand others' scripts and write your own.
As for coding without a PC: I believe there are text editors you can download for Android that are fairly good at editing code. The great iOS modder C0deh4cker codes entirely on his iPad. I'm not that l337 yet, so I still use a computer for development.
Learn more JavaScript: I'm not the author of your mod; you are. I think that working through more of the tutorials would be helpful. When I learned JavaScript, the tutorials didn't let you try code on the page itself - so you actually get to learn faster.
I suggest that you take a look at the tutorials: you'll learn loops, functions, variables, and all sorts of cool stuff that will help you understand others' scripts and write your own.
As for coding without a PC: I believe there are text editors you can download for Android that are fairly good at editing code. The great iOS modder C0deh4cker codes entirely on his iPad. I'm not that l337 yet, so I still use a computer for development.
Anyways, good luck!
Thanks alot
Rollback Post to RevisionRollBack
If i helped you or you like me our my mods / clan Subscribe ! Alot of cool and fun videos !
God's sake, Shadergameing.
Look, I offer help to you and I said I can help you over the weekend.
But you just can't be patient and ask everyone else.
Look, if you want my help, be patient please.
Since this thread has removed the point of my help, I will not help you anymore unless otherwise.
It wastes my time. D:<
I want to compare !
But i just wanted to update the script sorry
Rollback Post to RevisionRollBack
If i helped you or you like me our my mods / clan Subscribe ! Alot of cool and fun videos !
Time then do this then wait the time stated then do this !
For my modpe script ! Please don't ask what I'm doing with the mod because u will try to take it >
http://www.minecraftforum.net/topic/1980313-hostile-mobs-spawner-modpe-script-shaders-mods-new-mobs-bosss/
^
|
|
Thats my modpe script soo thanks !!
-
View User Profile
-
View Posts
-
Send Message
Curse Premiumvar countdown = 100; //this is in "ticks", where one tick = 1/20th of a second function modTick() { //this is called every 1/20th of a second by ModPE Scripts countdown--; //subtract 1 from countdown if (countdown == 0) { //100 ticks elapsed clientMessage("DOCTOR OCTAGONAPUS BLAAAAAAARGH"); //send the message countdown = 100; //reset the countdown } }So if i add this in there just like this it would work ? & Thanks
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumTry to understand it first. You might need to, for example, change it so it only counts down when you start it. That is up to you
var countdown = 200; //this is in "ticks", where one tick = 1/20th of a second function modTick() { //this is called every 1/20th of a second by ModPE Scripts countdown-- 2; //subtract 1 from countdown if (countdown == 1) { //100 ticks elapsed clientMessage("DOCTOR OCTAGONAPUS BLAAAAAAARGH"); //send the message } else if(blockId==87)//Tap Nether Rack { spawnPigZombie(x, y, z, 87, "mob/zombie.png"); clientMessage("MOB SPAWNER ACTIVATED"); setNightMode(14500); spawnPigZombie(x, y, z, 87, "mob/zombie.png"); spawnPigZombie(x, y, z, 87, "mob/cow.png"); spawnPigZombie(x, y, z, 87, "mob/zombie.png"); spawnPigZombie(x, y, z, 87, "mob/zombie.png"); spawnPigZombie(x, y, z, 87, "mob/Zombie.png"); clientMessage(" ·€¢ Made By: ShaderGameing ¢€ "); setTile(x, y, z ,0) countdown = 100; //reset the countdown } }-
View User Profile
-
View Posts
-
Send Message
Curse PremiumNo: see my comments.
Also, if you need to learn more about variables, see http://www.codecademy.com/courses/getting-started-v2/4/1?curriculum_id=506324b3a7dffd00020bf661
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumLearn more JavaScript: I'm not the author of your mod; you are. I think that working through more of the tutorials would be helpful. When I learned JavaScript, the tutorials didn't let you try code on the page itself - so you actually get to learn faster.
I suggest that you take a look at the tutorials: you'll learn loops, functions, variables, and all sorts of cool stuff that will help you understand others' scripts and write your own.
As for coding without a PC: I believe there are text editors you can download for Android that are fairly good at editing code. The great iOS modder C0deh4cker codes entirely on his iPad. I'm not that l337 yet, so I still use a computer for development.
Anyways, good luck!
Thanks alot
I want to compare !
But i just wanted to update the script sorry
How can i use modticks by stepping on a block
-
View User Profile
-
View Posts
-
Send Message
Curse Premiumfunction modTick(){
if(Level.getTile(Player.getX(), Player.getY()-2, Player.getZ())==YourId){
//Your Code
}
}
Thank you very much