Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Mod(displayName = "Fast Use")
- public class FastUse extends Module
- {
- @EventTarget
- private void onUpdate(final UpdateEvent event) {
- if (event.getState() == Event.State.PRE && ClientUtils.player().getItemInUseDuration() == 16 && !(ClientUtils.player().getItemInUse().getItem() instanceof ItemBow) && !(ClientUtils.player().getItemInUse().getItem() instanceof ItemSword)) {
- for (int i = 0; i < 17; ++i) {
- ClientUtils.packet(new C03PacketPlayer(true));
- }
- ClientUtils.packet(new C07PacketPlayerDigging(C07PacketPlayerDigging.Action.RELEASE_USE_ITEM, BlockPos.ORIGIN, EnumFacing.DOWN));
- }
- }
- }
Add Comment
Please, Sign In to add comment