how to use...

Avatar

By Survi_G 10 February 2019 10:24

Member · 172 comments

how to use onUpdate setTimeout? for delay function

or sleep();

Last edited by Survi_G (10 February 2019 10:37)

Avatar

By Elelrxi 10 February 2019 11:25

Member · 217 comments

You can sleep(); with me QT

Avatar

By Survi_G 10 February 2019 11:42

Member · 172 comments
Elelrxi wrote

You can sleep(); with me QT

;v

Avatar

By Elelrxi 10 February 2019 12:07

Member · 217 comments
Survi_G wrote
Elelrxi wrote

You can sleep(); with me QT

;v

Is that a yes? axocouple

Avatar

By Shiv3R 10 February 2019 15:18

Member · 144 comments

for delay function you can use

amount = ticks
1tick = 1/20s

if (mc.thePlayer.ticksExisted % (amount) == 0)
{
}

Avatar

By Survi_G 10 February 2019 15:37

Member · 172 comments

thanks

Avatar

By Survi_G 10 February 2019 15:58

Member · 172 comments
Shiv3R wrote

for delay function you can use

amount = ticks
1tick = 1/20s

if (mc.thePlayer.ticksExisted % (amount) == 0)
{
}

Can you give me an example I did not understand?

Avatar

By je5442804 10 February 2019 16:12

Member · 14 comments

thank you!

Avatar

By Shiv3R 10 February 2019 16:12

Member · 144 comments

if (mc.thePlayer.ticksExisted % 6 == 0)
{
chat.print("you suck at java");
}

this will print at chat message after 300ms delay

Avatar

By Survi_G 10 February 2019 17:19

Member · 172 comments
Shiv3R wrote

if (mc.thePlayer.ticksExisted % 6 == 0)
{
chat.print("you suck at java");
}

this will print at chat message after 300ms delay

How can I always go in a straight line?
mc.thePlayer.setPosition(mc.thePlayer.posX + 0.2, mc.thePlayer.posY, mc.thePlayer.posZ)

In the teleport or in the movement.

how to make the player run faster

thanks bro for help me

Last edited by Survi_G (10 February 2019 17:35)