Hello, im trying to make a Auto Fishing skript, and need a little help with something. Im not sure how i can make a player right click. I have the code to make the player left click, but not right click. If anyone knows how to do this. Please let me know.
Thanks!
~Matt
Thanks!
~Matt
Code:
option NMS:
get:
return 4th element out of ((class "org.bukkit.Bukkit").getServer().getClass().getPackage().getName() split at ".")
import:
net.minecraft.server.{@NMS}.PacketPlayOutAnimation
effect make %players% (attack|swing) [for %-players%]:
trigger:
loop exprs-1:
set {_handle} to loop-value.getHandle()
set {_packet} to new PacketPlayOutAnimation({_handle}, 0)
loop exprs-2 ? all players:
loop-value-2.getHandle().playerConnection.sendPacket({_packet})