Jump to content

Gen skript


PixeledMango

Recommended Posts

I Am having a problem. whenever i break a block it gives me the stone gen. here is my skript

 

on place:

    if name of player's held item contains "&7Stone Generator":

        add location of event-block to {placed::gens::%player's uuid%::*}

        send "&aYou placed your stone gen!"

on break:

  loop all players:

    loop all blocks in radius 30 of loop-player:

      if loop-block is stone block:

        if {placed::gens::%loop-player's uuid%::*} contains location of loop-value-2:

          remove location of event-block from {placed::gens::%loop-player's uuid%::*}

          give player stone named "&7Stone Generator"

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