Solved Inventory 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 comminuty!

    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.

Donut

Well-Known Member
Mar 27, 2017
1,336
177
0
U.S.
I'm trying to set the inventory name of a chest but can't figure it out. Here's the code:
code_language.skript:
on place of a chest:
    set inventory name of event-block's inventory to "hi"
    broadcast "%inventory name of event-block's inventory%"
No errors but the chest's inventory name isn't changed, and when I broadcast the inventory name it says "container.chest"
 
I'm trying to set the inventory name of a chest but can't figure it out. Here's the code:
code_language.skript:
on place of a chest:
    set inventory name of event-block's inventory to "hi"
    broadcast "%inventory name of event-block's inventory%"
No errors but the chest's inventory name isn't changed, and when I broadcast the inventory name it says "container.chest"
The inventory name is the tile entity's custom name, if you want change it you should use:
code_language.skript:
add "{CustomName:""whatever""}" to nbt of event-block
 
Status
Not open for further replies.