Jump to content

not your gen


De_Shroob

Recommended Posts

on place:
  if tool of player is hay bale named "&8HAY GEN" with lore "&7The first step.":

    add location of event-block to {GLOCATION %player's uuid%::%event-block%}
      message "&7Succesfully placed &8HAY GEN"

 

on leftclick:
  if event-block is hay bale
    if {GLOCATION %player's uuid%::%event-block%} contains location of event-block:
      set block to air
      message "Broke Hay Gen"
    else:
      cancel event
      message "NOT YOUR GEN"

 

 

 for some reason it keeps saying not your gen even though i placed it 

 

 

edit:

I made a command that tells me what is added to my gens, and the location isn't even added, fix please 

Edited by De_Shroob
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...