1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

fish

Discussion in 'Skript' started by skanto123, Feb 6, 2018.

Thread Status:
Not open for further replies.
  1. skanto123

    skanto123 Active Member

    Joined:
    Jan 8, 2018
    Messages:
    70
    Likes Received:
    0
    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
     
  2. ChisleLP

    ChisleLP Well-Known Member

    Joined:
    Jan 26, 2017
    Messages:
    789
    Likes Received:
    60
    why are you creaeting 2x post? For better formel or therad you can just use the "Edit" button right below you post.

    Btw use the code Tags. so someone can read it better. (The Code tags can be found in "+" symbol)
     
Thread Status:
Not open for further replies.

Share This Page

Loading...