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!

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

Script Lucky Blocks 1.0

Create your very own Custom Lucky Blocks in Vanilla Minecraft!

  1. iCodeDreams
    Contributors:
    iCodeDreams
    Supported Minecraft Versions:
    • 1.15
    png-min.png

    Welcome to the BEST Lucky Block Script
    Created with the mindset for full customization with a single file startup!
    Have you ever wanted to create your very own lucky block but don't know where to start off? We have guides on how you can get started to create your very own Lucky Block!

    [​IMG]

    [​IMG]

    [​IMG]
    [​IMG]

    [​IMG]

    [​IMG]

    [​IMG]

    [​IMG]
    Code (Text):
    1. {
    2.     "Prefix": "&eLucky Block&6> &7",
    3.     "Version": "1.0",
    4.     "ServerID": "00000000000000000000",
    5.     "AdminID": "00000000000000000000",
    6.     "Debug": false,
    7.     "Auto Update": false,
    8.     "Hologram Delay": 4.0,
    9.     "Resource Pack": "https://www.dropbox.com/s/ivvrlc1nhuy0p63/luckyblocks.zip?dl=1",
    10.     "Lucky Blocks": {
    11.         "Spiral Lucky Block": {
    12.             "Unlucky": "BLACK TERRACOTTA",
    13.             "Normal": "LIGHT GRAY TERRACOTTA",
    14.             "Super": "GRAY TERRACOTTA"
    15.         }
    16.     },
    17.     "Messages":{
    18.         "Reload": "&aReloaded Lucky Blocks!",
    19.         "Debug Menu Alert": "&b/debugmenu &3- &rOpen your Debug Menu",
    20.         "Resource Pack": "&7Sending &eWorld Specific Resources&7...",
    21.         "No Updates": "No updates found!",
    22.         "Updated": "Successfully installed [Version]!"
    23.     },
    24.     "Debug Menu":{
    25.         "Drop Info": "WRITABLE BOOK",
    26.         "Item Drop": "PAPER",
    27.         "Player Command": "OBSERVER",
    28.         "Console Command": "OBSERVER",
    29.         "Send Message": "KNOWLEDGE BOOK",
    30.         "Broadcast Message": "KNOWLEDGE BOOK",
    31.         "Structure": "BLACK GLAZED TERRACOTTA",
    32.         "Hologram": "NAMETAG"
    33.     },
    34.     "Discord Integration": {
    35.         "Bot Token": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
    36.         "Bot ID": "Lucky Block Bot",
    37.         "Channel ID": "00000000000000000000",
    38.         "Embed Color": "Yellow"
    39.     }
    40. }
    Easily Setup and Configure Lucky Blocks in the config.json that is automatically generated in plugins/iCodeDevelopment/LuckyBlocks/config.json !

    • Easily Set Custom Resource Packs
    • Create Unlimited Lucky Blocks
    • Create Unlimited Drop Files
    • Easily Set Debug Menu Icons
    • Customize Messages
    • Create your own Discord Bot
    [​IMG]

    /luckyblock [Reload / Info / Update]
    Reload the Lucky Block System, View your Current Version, and Update the System through in-game commands!
    Permission Node: command.luckyblock

    /debugmenu
    Open the In-Game Debug Menu!
    Permission Node: command.debugmenu

    [​IMG]
    [​IMG]

    [​IMG]

    Learning the Folder Setup
    Code (Text):
    1. Navigate to the plugins/iCodeDevelopment/LuckyBlocks/ Directory on your Server
    2.  
    3. 1) Create a Folder named `MY-LUCKY-BLOCK` replacing spaces for `-` with all Capital Letters.
    4. 2) Within your new Lucky Block Folder there can be 3 categories:
    5.     > Unlucky Lucky Block
    6.     > Normal Lucky Block
    7.     > Super Lucky Block
    8. *Theses are there own blocks and are opened separately from each other.*
    9. 3) Within each Lucky Block Type you have 3 tiers.
    10.     > High Drop Value
    11.     > Medium Drop Value
    12.     > Low Drop Value
    13. *Each Tier is its own Folder in which you will place drop files inside.*
    14. 4) Create Drop Files within each Category by naming the file `drop_#.json`then follow the tutorial below to edit Drop Files!
    Learning Drop Files
    Example Drop File:
    Code (Text):
    1. {
    2.     "key":"drop_1",
    3.     "author":"iCodeDreams",
    4.     "Items": {
    5.       "GRENADE_LAUNCHER": {
    6.          "Name": [
    7.             "&6Grenade Launcher"
    8.          ],
    9.          "Lore": [
    10.             "&7Right-Click to Launch Grenade!"
    11.          ],
    12.          "Material":{
    13.             "Item": "diamond hoe",
    14.             "NBT": "{CustomModelData:1}"
    15.          },
    16.          "amount": 1
    17.       },
    18.        "DAGGER": {
    19.          "Name": [
    20.             "&6[Player]&6's Dagger"
    21.          ],
    22.          "Lore": [
    23.             "&7Right-Click to Throw Dagger!"
    24.          ],
    25.          "Material":{
    26.             "Item": "diamond hoe",
    27.             "NBT": "{CustomModelData:2}"
    28.          },
    29.          "amount": "[Random](1-10)"
    30.       }
    31.     },
    32.    "Commands": {
    33.      "Player": [
    34.         "make",
    35.         "me",
    36.         "run"
    37.      ],
    38.      "Console": [
    39.         "this",
    40.         "command",
    41.         "pls"
    42.      ]
    43.    },
    44.     "SendMessage": [
    45.         "&7Test to Player"
    46.     ],
    47.     "BroadcastMessage": [
    48.         "&6Test to ALL"
    49.     ],
    50.     "Structure": [
    51.         "WELL"
    52.     ],
    53.     "Hologram": [
    54.         "&fLine 1",
    55.         "&7Line 2"
    56.     ]
    57.  }
    Drop File Term Information:
    (Descriptions of the Inputs used in the JSON File System)
    Code (Text):
    1. "key" specifies what Drop # corresponds with your drops. It is used to identify when the randomized drop is selected in-game.
    2. "author" specifies the creator of the drop.
    3. "Items" is a JSON Stage in which you are able to specify unlimited amounts of items beneath this stage.
    4. "GRENADE_LAUNCHER" is an example of an ID for the Item. Beneath this line you will find the attributes that are put on for that drop.
    5. "Name" specifies the Custom Name of the Item using Minecraft Color Codes. (Supports Color Codes)
    6. "Lore" specifies the Custom Lore of the Item using Minecraft Color Codes. (Supports Color Codes)
    7. "Material" specifies the Item Type, Amount, and its Custom NBT Data.
    8. "Commands" is a JSON Stage in which you are able to specify unlimited amounts of commands beneath this stage by specifying it into 1 of the following sections. (Player or Console)
    9. "Player" is a section that is below the Commands Stage, this section allows you to run commands as if you were the player. Any command specified will be ran through the player as OP. (Return Messages will still appear if applicable.)
    10. "Console" is a section that is below the Commands Stage, this section allows you to run commands through the Server Console.
    11. "SendMessage" is a JSON Stage in which you are able to specify unlimited amounts of messages that will be sent to the Player who broke the Lucky Block. (Supports Color Codes)
    12. "BroadcastMessage" is a JSON Stage in which you are able to specify unlimited amounts of messages that will be sent to all the player's in the Arena of the player who broke the block (Supports Color Codes)
    13. "Structure" is a JSON Stage in which you are able to specify a Structure using the Vanilla Minecraft Structure Blocks to Save the Structure!
    14. "Hologram" is a JSONStage in which will spawn a Hologram Above the Lucky Blocks Location when broken! (Supports Color Codes)
    Drop File Placeholders:
    Code (Text):
    1. [Player] - Replaced with Player's Name
    2. [PlayerUUID] - Replaced with Player's UUID
    3. [BlockLocation] - Replaced with the Lucky Block's Location
    4. [PlayerLocation] - Replaced with Player's Location
    5. [Random](#-#) - Replaced with a Random Number
    6. [RandomList](First,Second,Third) - Replaced with a Random Input from the List.
    [​IMG]
    1. Download the lbconfig.sk File from this Post
    2. Install the Dependencies by downloading them Here
    3. Restart your Server
    *The Basic Spiral Lucky Block has now been installed and your server is ready to have custom lucky blocks created on it!*

    [​IMG]

    Want to see a server running the Lucky Block Script?
    Check out PLAY.POPULARMMOS.NET!

    [​IMG]


    Created by: iCode Development

    [​IMG]

    - CreeperTV

    - OG_Waffle

    - Lubcubs Gaming

    [​IMG]

    Follow me on Twitter @iCodeDreamsMC
    Subscribe to me on YouTube @iCodeDreams
    Join my Discord by clicking here!​

    [​IMG]

    [​IMG]

    Join the Discord for the Fastest Support!