Block item name

  • Welcome to skUnity!

    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 community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

SoMuchWessel

Active Member
Apr 3, 2017
147
3
18
Hello guys,

I am working on a project where i need to make a named block when mined, it drops the same block with the same name.

Like you have a dirt block named "1" and you place that dirt block. But when mining that dirt block, it will drop a dirt block named "1" instead of just a normal dirt block. Every other dirt block still drops normal dirt.

Is this possible? If so, how?
 
Yes. do it with variables.

just on place events, set the name and locations to variables ({Bla::%location%} "%name%").

after on break events, check if location of variables set, if so, clear/cancel the drops, and give them a items with named. then delete variables.
 
Yes. do it with variables.

just on place events, set the name and locations to variables ({Bla::%location%} "%name%").

after on break events, check if location of variables set, if so, clear/cancel the drops, and give them a items with named. then delete variables.

Can you write an example for me?
 
Status
Not open for further replies.