Minecraft Data Packs / Game Mechanic

Supply Drops [1.21]

    • 1,606 views, 5 today
    • 174 downloads, 0 today
    • 9
    • 5
    • 1
    rwh4's Avatar rwh4
    Level 9 : Apprentice Engineer
    0
    This was my first data pack attempt and I have since updated it slightly. This is meant for a specific map I'm working on, however, the loot table can be modified to whatever you want. This was made intended for mini-games and not for survival mode.


    Features:
    • Supply drops that fall from the sky
    • Modifiable timer for how long it takes for a supply drop to arrive
    • Toggles for the smoke flare and chat alert
    • Modifiable single loot table
    • Scoreboard keeping track of supply drops opened (SupplyDrops_Opened).

    How to Use
    • Run command "/function supplydrops:_dev/help" to receive a book that is used for initial setup
    • The flare is meant to be distributed throughout a survival game map or sold by villagers for different game modes

    Functions
    • /function supplydrops:_dev/help
        A written book that contains all the functions as executable text
    • /function supplydrops:_dev/give_flare
        Gives a "Supply Drop Flare" that will call for a supply drop when placed
    • /function supplydrops:_dev/toggle_flare
        Turns on/off the smoke flare left from calling in supply drops
    • /function supplydrops:_dev/toggle_message
        Turns on/off chat alert for incoming supply drops  
    • /function supplydrops:_dev/modify_timer
        Gives you chat prompt for customizing timer
        Can be edited using scoreboard commands:
          /scoreboard players set limit SupplyDrops_Minutes #
          /scoreboard players set limit SupplyDrops_Seconds #
    • /function supplydrops:_dev/land_all
        Landsall pending supply drops
    • /function supplydrops:_dev/uninstall
        Removes all scoreboards in the case you wish to remove the datapack

    Limitations
    • The way I have it set up, the loot table is specific to my map (however it can be modified)
    • Supply drops are limited to the 9-slots of a dispenser
    • The flare is uncraftable
    • There is no randomly-spawning supply drop feature

    Modifying Loot Table
    • Navigate to "SupplyDrops\data\supplydrop\loot_table\"
    • Open file "supply_drop_loot.json"
    • Modify/replace existing loot table to fit your needs


    This data pack was made using mcbuild
    CompatibilityMinecraft 1.21
    Tags

    1 Update Logs

    1.21 Support, Optimization, Feature Changes : by rwh4 07/14/2024 6:03:27 pmJul 14th

    I updated it to support 1.21
    • The data pack now uses no ticking commands
    • Supply drop flare changed from feather you drop on the ground, to blaze powder you right-click/place on the ground
    • changed the name of scoreboard objectives to potentially avoid any complications with other datapacks

    Create an account or sign in to comment.

    Brostick Gamer
    05/27/2024 12:31 am
    Level 10 : Journeyman Miner
    Brostick Gamer's Avatar
    hmm you can use block bench to make 3d model for flare
    2

    Welcome