Cookieclicker where cookies come out.

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

Cupex

Member
Feb 16, 2020
43
1
8
26
Suggested name: cookieclicker

Spigot/Skript Version: 1.19.4/2.7.0-beta2

What I want:
Good day,
I wanted to make a cookie clicker where if you click on the cookie block, cookies come out as an item that cannot be collected and disappear individually after a second. The cookie system itself is already finished. The only thing missing is the cookie drop feature. This is a part of the code:
Code:
on left click on player head:

    if location of event-block is {cookie.loc}:
        if {cookie::afk::%uuid of player%} is not set:
            add 1 to {cookies::%uuid of player%}
            send action bar "§6§lCOOKIECLICKER §8• §7Du hast derzeit &6%regex({cookies::%uuid of player%})% §7Cookies" to player
            play sound "entity.generic.eat"
            set {_x} to cookie named "&6&lCookieclicker Cookies"
            drop {_x} at {cookies::drop}
on pickup of cookie:
    if name of event-item contains "&6&lCookieclicker Cookies":
        cancel event
What's missing is that the cookies disappear individually after a second.
I also have a video of what it should look like.

Kind regards


Ideas for commands:
/

Ideas for permissions:
/

When I'd like it by: As soon as someone has the time and desire to help me