Jump to content

Really Weird Solution To Cancel Block Damage


belac136

Recommended Posts

So I was trying to figure out how to stop block breaking animations with certain blocks. I'm using skript-gui and I found a rather strange solution to this problem.

on block damage:
    if event-block is spruce planks:
        create a gui with virtual chest inventory with 1 rows
        open the last gui for the player
        close player's inventory

For some reason this works perfectly and I am yet to find any bugs or issues with this piece of code. It doesn't stop sprint or flash a gui or anything. Plus I haven't seen any other way to do this. So, you're welcome I guess...

Link to comment
Share on other sites

  • 4 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...