Break block using player's tool

  • 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.

Farid

Active Member
Feb 5, 2017
179
11
18
23
I'm trying to break the block using player's tool.


but I found this in skellett syntaxes

code_language.skript:
- '[skellett] break %block% [naturally] [(with|using) %-itemstack%]'

and also found this

code_language.skript:
break targeted block naturally


Skellett breaks bedrock, I didn't check the randomsk (don't have it), I know I can check if the mined block is bedrock, but I want an effect that will make the player mine it, not the addon.
 
So you want the skript make the player break the block with their tool?

Not sure what your event is, but you could try something like this:

code_language.skript:
on rightclick with diamond pickaxe:
    set {_block} to targeted block
    loop 10 times:
        show block break stage loop-number at {_block}
        wait 10 ticks
    break {_block}
 
So you want the skript make the player break the block with their tool?

Not sure what your event is, but you could try something like this:

code_language.skript:
on rightclick with diamond pickaxe:
     set {_block} to targeted block
     loop 10 times:
         show block break stage loop-number at {_block}
         wait 10 ticks
     break {_block}
code_language.skript:
on click with diamond pickaxe:
    loop 10 times:
        show block break stage loop-index at targeted block
        wait a tick
    skellett break clicked block naturally using player's tool
 
So you want the skript make the player break the block with their tool?

Not sure what your event is, but you could try something like this:

code_language.skript:
on rightclick with diamond pickaxe:
    set {_block} to targeted block
    loop 10 times:
        show block break stage loop-number at {_block}
        wait 10 ticks
    break {_block}

Yea, I want the player mine the block not the addon, just like the code
make victim damage attack except make player mine block etc.

code_language.skript:
on click with diamond pickaxe:
    loop 10 times:
        show block break stage loop-index at targeted block
        wait a tick
    skellett break clicked block naturally using player's tool

Skellett breaks bedrock, I know I can check what the block is and the proceed to mine it, but I don't want to do that.
 
Status
Not open for further replies.