Solved How to get the name of chest

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

Leah

Member
Mar 20, 2017
3
0
0
help please
 

Attachments

  • 2017-03-22_16.06.29.png
    2017-03-22_16.06.29.png
    7.6 KB · Views: 534
You can do this the same way you would get the name of anything else... (in my example {_c} is the chest)
code_language.skript:
set {_n} to name of inventory of {_c}
remember skript is english, so you can probably use what comes to mind for the simpler things (weird wording in this case though)

edit: looks like something changed, fixed code
 
Last edited by a moderator:
code_language.skript:
On rightclick on chest:
    Message "%name of chest%"
result = <nune>
Any other way?
 
Status
Not open for further replies.