cancel stone breaking animation ?

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Claver01

Member
Mar 22, 2018
44
0
0
27
is there any way to cancel the animation when you break stone ? or in general so you cant break it, and the animation is cancel ?
 
Last edited:
1. You can stop people breaking the stone but you can't cancel the animation.

2. How to cancel people breaking stone:
code_language.skript:
on break of stone:
    cancel event
3. How to just you can break stone: (other people cant)
code_language.skript:
on break of stone:
    if player has permission "*":
         stop
    else:
         cancel event
 
There are some ways i think...
1. apply mining fatigue to player when he start mine, wait some time and set that block to air and drop etc. stone..
2. you can use packets: Just on breaking animation set stage of animation to lovest wait some time and then set stage to higher.. and it should works..
 
wont help, the animation is still there
[doublepost=1529181344,1528547991][/doublepost]anyone ?
 
I don't think that's possible, unless you use this (this lags a lot, and doesn't work 100% of the time)
I don't recommend using this, but you can set the gamemode of players to adventure and give them items to only break *block* (NBT tags)

code_language.skript:
on any move:
    if targeted block is stone:
        set gamemode of player to adventure
    else:
        set gamemode of player to survival

on right click:
    if targeted block is stone:
        set gamemode of player to adventure
    else:
        set gamemode of player to survival

on left click:
    if targeted block is stone:
        set gamemode of player to adventure
    else:
        set gamemode of player to survival
 
Just cancel the block damage event if the event-block is stone.
i still see the block break animation ? how do i cancel that
[doublepost=1529363911,1529363868][/doublepost]
I don't think that's possible, unless you use this (this lags a lot, and doesn't work 100% of the time)
I don't recommend using this, but you can set the gamemode of players to adventure and give them items to only break *block* (NBT tags)

code_language.skript:
on any move:
    if targeted block is stone:
        set gamemode of player to adventure
    else:
        set gamemode of player to survival

on right click:
    if targeted block is stone:
        set gamemode of player to adventure
    else:
        set gamemode of player to survival

on left click:
    if targeted block is stone:
        set gamemode of player to adventure
    else:
        set gamemode of player to survival
well its not a stupid.... but i know you can do it. Just need someone with packet animation knowledge
[doublepost=1529403653][/doublepost]
I don't think that's possible, unless you use this (this lags a lot, and doesn't work 100% of the time)
I don't recommend using this, but you can set the gamemode of players to adventure and give them items to only break *block* (NBT tags)

code_language.skript:
on any move:
    if targeted block is stone:
        set gamemode of player to adventure
    else:
        set gamemode of player to survival

on right click:
    if targeted block is stone:
        set gamemode of player to adventure
    else:
        set gamemode of player to survival

on left click:
    if targeted block is stone:
        set gamemode of player to adventure
    else:
        set gamemode of player to survival
nvm, i found out how to do it
 
Status
Not open for further replies.