Skip to content

Latest commit

 

History

History
100 lines (90 loc) · 3.51 KB

README.md

File metadata and controls

100 lines (90 loc) · 3.51 KB

Pebble's Lootcrate

Pebble's Lootcrate mod for Fabric Minecraft version 1.19.2

Make sure you have Fabric Language Kotlin installed!

If you would like to migrate from AdvancedCrates to Pebble's Crate, this will help speed things up a little:
https://pebblescrate.sethi.tech/

Modrinth Project Page: https://modrinth.com/mod/pebbles-crate

Permissions

For all admin commands, if you have LuckPerm installed, the following is required:
pebbles.admin.crate

Available Commands

/padmin crate Displays all available crate in the config and lets you grab a crate transformer/crate key
/padmin getcrate <name> Get a crate transformer
/padmin givekey <player> <amount> <cratename> Gives cratekey to a specific player

How to use?

Come and try out the crate in a server running Cobblemon: dynastymc.org

After installing the mod, you may navigate to your /config/pebbles-crate/cratesthen create a file, for example example.json
You may use the follow example as reference for the structure:

{
  "crateName": "Vanilla Items Crate",
  "crateKey": {
    "material": "minecraft:tripwire_hook",
    "name": "&#FFBF00Vanilla Key",
    "lore": [
      "&#FFDC73• Opens a Vanilla Items Crate"
    ]
  },
  "prize": [
    {
      "name": "&#63BC5DDiamond",
      "material": "minecraft:diamond",
      "amount": 1,
	  "nbt": "{species:\"cobblemon:bulbasaur\",aspects:[\"shiny\"]}",
      "commands": [
        "give {player_name} minecraft:diamond 1"
      ],
      "broadcast": "&6{player_name} &fhas received {prize_name} &ffrom {crate_name}",
      "messageToOpener": "&6[Pebble's Crates] &f&lYou got {prize_name} &f&lfrom Vanilla Items Crate",
      "lore": [
        "Chance of getting the drop: {chance}%"
      ],
      "chance": 40
    },
    {
      "name": "&rElytra",
      "material": "minecraft:elytra",
      "amount": 1,
      "commands": [
        "give {player_name} minecraft:elytra 1"
      ],
      "broadcast": "&6{player_name} &fhas received {prize_name} &ffrom {crate_name}",
      "messageToOpener": "&6[Pebble's Crates] &f&lYou got {prize_name} &f&lfrom Vanilla Items Crate",
      "lore": [
        "Chance of getting the drop: {chance}%"
      ],
      "chance": 5
    },
    {
      "name": "&rGolden Apple",
      "material": "minecraft:golden_apple",
      "amount": 1,
      "commands": [
        "give {player_name} minecraft:golden_apple 1"
      ],
      "broadcast": "&6{player_name} &fhas received {prize_name} &ffrom {crate_name}",
      "messageToOpener": "&6[Pebble's Crates] &f&lYou got {prize_name} &f&lfrom Vanilla Items Crate",
      "lore": [
        "Chance of getting the drop: {chance}%"
      ],
      "chance": 55
    }
  ]
}

Note that the mod supports legacy formatting (e.g. &#63BC5D, &4, &f, &r) as demonstrated in the example.

Supporters

Thanks to these kind folks from Cobblemon Server discord commissioning this free mod:
Fiddy: Souls Network
Cube: PokeCubed
Ghoul/Rain: Poke Meadows
Ojcastillo29: Treasure Network
Frosteffects: Lunar Legends

Todo

  • Global customisable options (UI elements such as arrow for next/previous)
  • Comment in classes
  • Further optimise the mod
  • Admin UI for editing the loot in-game
  • Finish writing todos