on script load:
import "org.bukkit.event.player.PlayerFishEvent"
on "org.bukkit.event.player.PlayerFishEvent":
if "%event.getState().name()%" is "CAUGHT_FISH":
chance of 50%:
message "&bSweet, sparkling surprise! That's a diamond!" to event.getPlayer()
give 1 diamond named "&bDiamond" with lore "&ctest" to player
broadcast "&b%player% just caught a diamond"
I want to make it so when a player catches a fish it gives the player a diamond and broadcasts it to the server I am using skript with Skript-Mirror ADDON
import "org.bukkit.event.player.PlayerFishEvent"
on "org.bukkit.event.player.PlayerFishEvent":
if "%event.getState().name()%" is "CAUGHT_FISH":
chance of 50%:
message "&bSweet, sparkling surprise! That's a diamond!" to event.getPlayer()
give 1 diamond named "&bDiamond" with lore "&ctest" to player
broadcast "&b%player% just caught a diamond"
I want to make it so when a player catches a fish it gives the player a diamond and broadcasts it to the server I am using skript with Skript-Mirror ADDON