Script question


By soulplexis 25 February 2019 18:39

Donator · 244 comments

How do you make the player do some things, such as...
How do you make the player use the item in hand? (Eat/block)
How do you make the player do something upon swinging your arm? (example if player swings, jump)
How do you detect if the player is damaged, damages an entity, etc.? and then perform an action ? for example, to make a criticals hack, or to make a autoleave hack or something (i know these are already existing but im experimenting shh)



By Shiv3R 25 February 2019 19:00

Member · 146 comments

if (mc.thePlayer.hurtTime > 0)

Use item:
if (mc.thePlayer.isUsingItem())

It dont work if player swings it jump, it just swing when jump



By icewormy3 25 February 2019 19:10

Member · 411 comments

also, you can use mc.thePlayer.swingItem