Solved not working fishing skript

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

drewax

Member
Nov 3, 2023
3
0
1
23
I wrote a script to change the loot in fishing and faced the problem that it does not work, although everything seems to be correct and the skbee addon is installed
Code:
on fish:
    if fish state = caught fish:
        chance of 30
        set item of caught entity to dirt named "2"

    chance of 30%:
        set item of caught entity to diamond named "1"
log:
Code:
skript reload all
[23:37:08 INFO]: [Skript] Reloading the config, aliases and all scripts...
[23:37:12 INFO]: Loaded 232506 aliases in 4295ms
[23:37:12 INFO]: Line 4: (scr.sk)
[23:37:12 INFO]: Can't understand this condition/effect: set item of caught entity to dirt named "2"
[23:37:12 INFO]: Line: set item of caught entity to dirt named "2"
[23:37:12 INFO]:
[23:37:12 INFO]: Line 7: (scr.sk)
[23:37:12 INFO]: Can't understand this condition/effect: set item of caught entity to diamond named "1"
[23:37:12 INFO]: Line: set item of caught entity to diamond named "1"
[23:37:12 INFO]:
[23:37:12 INFO]: [Skript] Encountered 2 errors while reloading the config, aliases and all scripts! (4308ms)
version: git-Paper-263 (MC: 1.20.2)
list plugin: CoreProtect, InvSeePlusPlus, InvSeePlusPlus_Clear, InvSeePlusPlus_Give, LuckPerms, Matrix, ProtocolLib, RHLeafDecay, SkBee, SkinsRestorer, Skript, Sleeper, spark, TAB
 
This post is marked as "Solved", but just in case, your issue is that you need MorkazSk (besides SkBee) and the corrected code is:
Code:
on fish:
    if fish state is CAUGHT_FISH:
        chance of 30%:
            set item of caught entity to dirt named "2"
        chance of 30%:
            set item of caught entity to diamond named "1"
 
  • Like
Reactions: drewax
This post is marked as "Solved", but just in case, your issue is that you need MorkazSk (besides SkBee) and the corrected code is:
Code:
on fish:
    if fish state is CAUGHT_FISH:
        chance of 30%:
            set item of caught entity to dirt named "2"
        chance of 30%:
            set item of caught entity to diamond named "1"
yeah work