i made a skript that changes loottables in fishing, and instead of dropping anything, it just gives xp, why?
skript:
#verdant koi item variable
set {verdantkoi} to salmon with lore "&7It looks as if it's made of lilypads." and "&8Material"
enchant {verdantkoi} with mending
set item model of {verdantkoi} to "custom:verdant_koi_model"
set name of {verdantkoi} to "&r&fVerdant Koi"
enchant {verdantkoi} with mending
add hide enchantments to item flags of {verdantkoi}
# Mossy crate item variable
set {mossycrate} to moss block with lore "&7Right Click to open!"
set item model of {mossycrate} to "custom:mossy_crate_model"
set name of {mossycrate} to "&fMossy Loot Crate"
set {cod} to cod with lore "&7You know what that means." and "&8Material"
set {salmon} to salmon with lore "&7It's got a high omega-3 count... mmm..." and "&8Material"
set {string} to string with lore "&7How exactly do you harvest this from spiders?" and "&8Material"
set {lilypad} to lily pad with lore "&7Not a sponsor (smh)" and "&8Material"
set {shoe} to green dye with name "&7Soggy Shoe" with lore "&8Who threw a shoe into the pond?"
set item model of {shoe} to "custom:old_shoe_model"
set {tire} to black dye with name "&7Old Tire" with lore "&8Wait, a tire? How did this get here?"
set item model of {tire} to "custom:tire_model"
#---------------\/ loot tables \/-----------------------------------------
set {badloot::*} to {shoe} and {tire}
set {rareloot::*} to {mossycrate} and {verdantkoi}
set {regularloot::*} to {cod}, {salmon}, {string} and {lilypad}
on fish catch:
chance of 20%:
set item of event-entity to random element of {rareloot::*}
chance of 50%:
set item of event-entity to random element of {regularloot::*}
chance of 30%:
set item of event-entity to random element of {badloot::*}