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
log:
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
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"
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)
list plugin: CoreProtect, InvSeePlusPlus, InvSeePlusPlus_Clear, InvSeePlusPlus_Give, LuckPerms, Matrix, ProtocolLib, RHLeafDecay, SkBee, SkinsRestorer, Skript, Sleeper, spark, TAB