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!
You can always check out skUnity Downloads for downloads and any other information about Skript!
on place of dirt named "&atest":
set {dirt::%event-block's location%}
on break of dirt:
if {dirt::%event-block's location%} is set:
send ":)"
delete {dirt::%event-block's location%}
Placed blocks do indeed have names, if you rename a dispenser (or any type of container) in an anvil, place down that container and open it, you'll see that instead of saying the container's regular name, it says what you renamed it do. Their name is stored in NBT DataPlacked blocks don't have names.
Try:
Code:on place of dirt named "&atest": set {dirt::%event-block's location%} on break of dirt: if {dirt::%event-block's location%} is set: send ":)" delete {dirt::%event-block's location%}
Not workingCode:break of dirt: if name of event-block is "&atest": send ":)"
I don't want variable for this.Placked blocks don't have names.
Try:
Code:on place of dirt named "&atest": set {dirt::%event-block's location%} on break of dirt: if {dirt::%event-block's location%} is set: send ":)" delete {dirt::%event-block's location%}
Placed blocks do indeed have names, if you rename a dispenser (or any type of container) in an anvil, place down that container and open it, you'll see that instead of saying the container's regular name, it says what you renamed it do. Their name is stored in NBT Data
Then why did you ask for help?I don't want variable for this.
It it possible withouth variables?We were talking about dirt, not containers (which btw. are entities).
Then why did you ask for help?
It should beCode:break of dirt: if name of event-block is "&atest": send ":)"
on break of dirt:
if name of event-block is "&atest":
send ":)"
The "on" part is optionalIt should be
Code:on break of dirt: if name of event-block is "&atest": send ":)"
That'd be the inventory name, not block namePlaced blocks do indeed have names, if you rename a dispenser (or any type of container) in an anvil, place down that container and open it, you'll see that instead of saying the container's regular name, it says what you renamed it do. Their name is stored in NBT Data