Shop item query is not working.

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

TSBeatz

New Member
Apr 26, 2017
9
1
3
Skript Version: Skript 2.2 dev31c
Skript Author: Bensku
Minecraft Version: 1.12


The query cannot find the items in the chest.
It's about a shop system.

Can someone help me?


code_language.skript:
            loop all blocks in radius 1 of event-block:
                loop all items in the inventory of loop-block:
                    loop-item's id is {_itemid}
                    inventory of loop-block contains {_anzahl} of loop-item
                    set {_a} to 1
                    exit loop
            if {_a} is 0:
                message "Der Shop ist ausverkauft."
                play custom sound pack "info.error" to player with volume 0.5
                stop
 
Last edited:
Status
Not open for further replies.