Jump to content

Skript no break block


Zuixik

Recommended Posts

How do I save the location of the block but then it could not be destroyed? 

Here is the script but it does not work. I don't know how to fix it

  1.  
    on break:
        {crates::NAME::locations*} is set
        {crates::NAME::locations*} contains location of event-block
        add 1 to {crates::NAME::progress}
        cancel event
        # play sound
    
    command /crate <string>:
        trigger:
            add location of target block to {crates::%argument 1%::locations::*}
            message "added crate %argument 1%"
Link to comment
Share on other sites

1 hour ago, Zuixik said:

How do I save the location of the block but then it could not be destroyed? 

Here is the script but it does not work. I don't know how to fix it

  1.  

     

It may not work i haven't tried. But the indention should be like this from my knowledge:
 

on break:
    {crates::NAME::locations*} is set:
        if {crates::NAME::locations*} contains location of event-block:
            add 1 to {crates::NAME::progress}
            cancel event
            # play sound

command /crate <string>:
    trigger:
        add location of target block to {crates::%argument 1%::locations::*}
        send "added crate %argument 1%"

 

Edited by ItsKirby

2021-06-09_20_22_08.jpg.422c39613f8b72de894e5ec1f3377dca.jpg

Yo who actually reads these

[Vip] - 12/29/2020
[Pro] - 1/25/2022
 

 

 

Link to comment
Share on other sites

16 minutes ago, ItsKirby said:

It may not work i haven't tried. But the indention should be like this from my knowledge:
 

on break:
    {crates::NAME::locations*} is set:
        if {crates::NAME::locations*} contains location of event-block:
            add 1 to {crates::NAME::progress}
            cancel event
            # play sound

command /crate <string>:
    trigger:
        add location of target block to {crates::%argument 1%::locations::*}
        send "added crate %argument 1%"

 

The block can still be destroyed

Link to comment
Share on other sites

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