Home›Java›Mods›Christmas Presents
Christmas Presents
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]
Spoiler: Broadcast
[​IMG]
Spoiler: Present
[​IMG]

Please inform me of any issues!
Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Christmas Presents is a free Minecraft Java mod. Downloaded 1,072 times (via Spigot). Download it and open it directly in the game.

Explore more