1. We are planning scheduled maintenance on this website on Friday 5 March (tomorrow) at 4:00 am UTC. It is estimated that this maintenance will last 15 minutes. You can view this time in your local timezone here. Thanks.
    Dismiss Notice

Christmas Presents 1.0.2

Add a little holiday spirit to your server with this fun Skript!

  1. HashtagRetweet
    YOU CAN NOW USE THIS RESOURCE ON SERVERS THAT DO NOT HAVE ESSENTIALS INSTALLED!

    IN ORDER FOR THIS TO WORK, YOU MUST HAVE SKQUERY AND SKRIPT INSTALLED!
    [​IMG]
    Add a little holiday spirit to your server! This Presents Skript allows your players a chance of gaining presents (full of amazing rewards) by breaking ice/snow blocks. If you've been given a present, right-click it - there are some special rewards!

    You may edit the Skript to your liking (chances, messages, etc).
    [​IMG]
    /present give <player>
    - presents.admin
    [​IMG]
    Code (Text):
    #Version: 1

    #In order for this feature to work, you MUST have Skript installed on your server.
    #I recommend using a text editor such as Notepad++ to edit this file.
    #If you experience any errors, be sure to let me know.

    on break of snow or ice: #<--- You can edit what players must break in order to get a present!
        chance of 1%: #<--- You can edit the chances of getting a present!
            send player title "&r❄ &2&oH&4&oa&2&op&4&op&2&oy &4&oH&2&oo&4&ol&2&oi&4&od&2&oa&4&oy&2&os&4&o!&r ❄" with subtitle "&f&oRight-click to open your present!" for 3 seconds
            broadcast "&8[&2P&4r&2e&4s&2e&4n&2t&4s&8] &2%player% &7found a present! &2&oH&4&oa&2&op&4&op&2&oy &4&oH&2&oo&4&ol&2&oi&4&od&2&oa&4&oy&2&os&4&o!"
            set block to air
            make console execute command "/give %player% 397:3 1 player:MHF_Present1 name:&2H&4o&2l&4i&2d&4a&2y_&2P&4r&2e&4s&2e&4n&2t lore:&e&oRight-click_to_redeem!"

    on right click with head:
        name of player's tool is "&2H&4o&2l&4i&2d&4a&2y &2P&4r&2e&4s&2e&4n&2t"
        cancel the event
        remove 1 of tool from tool
        chance of 30%: #<--- You can edit the chances!
            wait 1 tick
            make console execute command "/give %player% coal 32" #<--- You can edit what players get from their present!
            broadcast "&8[&2P&4r&2e&4s&2e&4n&2t&4s&8] &2%player% &7got &232 coal&7!" #<--- Make sure to edit the broadcast to what present their getting
            stop
        chance of 15%:
            wait 1 tick
            make console execute command "/give %player% enderchest 1"
            broadcast "&8[&2P&4r&2e&4s&2e&4n&2t&4s&8] &2%player% &7got an &2ender chest&7!"
            stop
        chance of 75%:
            wait 1 tick
            make console execute command "/give %player% diamond 5"
            broadcast "&8[&2P&4r&2e&4s&2e&4n&2t&4s&8] &2%player% &7got &25 diamonds&7!"
            stop
        chance of 20%:
            wait 1 tick
            make console execute command "/give %player% wolfegg 2"
            broadcast "&8[&2P&4r&2e&4s&2e&4n&2t&4s&8] &2%player% &7got &22 wolf eggs&7!"
            stop
        chance of 5%:
            wait 1 tick
            make console execute command "/give %player% cd1 1"
            make console execute command "/give %player% cd2 1"
            make console execute command "/give %player% cd3 1"
            make console execute command "/give %player% cd4 1"
            make console execute command "/give %player% cd5 1"
            make console execute command "/give %player% jukebox 1"
            broadcast "&8[&2P&4r&2e&4s&2e&4n&2t&4s&8] &2%player% &7got a &2Christmas kit&7!"
            stop
        chance of 10%:
            wait 1 tick
            make console execute command "/give %player% cobblestone 32"
            make console execute command "/give %player% wood 32"
            make console execute command "/give %player% diamondsword 1"
            make console execute command "/give %player% diamondspade 1"
            make console execute command "/give %player% diamondaxe 1"
            make console execute command "/give %player% diamondpickaxe 1"
            broadcast "&8[&2P&4r&2e&4s&2e&4n&2t&4s&8] &2%player% &7got a &2Christmas kit&7!"
            stop
    command /present give [<player>]:
        permission: presents.admin
        trigger:
            if argument 1 is not set:
                message "&8[&2P&4r&2e&4s&2e&4n&2t&4s&8] &7Please specify a name."
            if argument 1 is set:
                make console execute command "/give %arg 1% 397:3 1 player:MHF_Present1 name:&2H&4o&2l&4i&2d&4a&2y_&2P&4r&2e&4s&2e&4n&2t lore:&e&oRight-click_to_redeem!"
    [​IMG]
    [​IMG]
    [​IMG]

    Please inform me of any issues!

Recent Reviews

  1. DfieldJr
    DfieldJr
    5/5,
    Version: 1.0.1
    Very Noice, used with a play time plugin to gift holiday gifts,
    <3333333333333333333333333333333333333333333333333333
    1. HashtagRetweet
      Author's Response
      Awesome, I'm glad you're enjoying it!!
  2. CureBeatz
    CureBeatz
    4/5,
    Version: 1.0.1
    Looks like a great plugin but.... How do i install this to my server? what other plugins do i need for this to work?
    1. HashtagRetweet
      Author's Response
      Thank you for the great compliment.

      In order for the resource to work, you must have Skript & SkQuery installed.

      Happy Holidays!
  3. Mister_Fix
    Mister_Fix
    3/5,
    Version: 1.0.1
    This skript pretty much depends on Essentials, since the this /give format belongs to essentials, which doesn't work for servers that don't run essentials.
    1. HashtagRetweet
      Author's Response
      I've updated the Skript so that now servers not running Essentials are able to use this unique feature. Happy Holidays!!