Jump to content

Save location 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%"
     
Edited by Zuixik
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...