Skript Skript Egg Hunt Issue

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

Vini

Member
Apr 8, 2023
27
2
3
24
So this is my skript:
on right click on turtle egg:
if {foundeggs.%player%} contains "%location of event-block%":
send "&cYou've already found this egg!" to player
else:
if {eggcount.%player%} is not set:
set {eggcount.%player%} to 1
else if {eggcount.%player%} is 29:
add 1 to {eggcount.%player%}
send "&eYou've found all of the eggs! Here's a reward: /pv 1, 2 & /ec" to player
add "%location of event-block%" to {foundeggs.%player%}
console command "lp user %player% permission set essentials.enderchest true"
console command "lp user %player% permission set playervaults.amount.2 true"
else:
add 1 to {eggcount.%player%}
send "&aYou've found an egg! You now found %{eggcount.%player%}% out of 30 eggs!" to player
add "%location of event-block%" to {foundeggs.%player%}

command /reseteggcount [<player>]:
permission: op
trigger:
clear {eggcount.%player%}
clear {foundeggs.%player%}

And I tried making it so you can't spam the eggs every possible way but for some reason it doesn't work and there are no error messages, can someone help?
 
Hi. This is the section for tutorials, not for Skript help. If you click on "Forums" and head to the "Skript" section, you might find more people willing to help. Additionally, I'm not entirely sure what your problem is. If you'd be able to elaborate over there I'll be happy to help.