Roanoke Development
  • Home
  • Terms and Conditions
  • Product Pricing
  • Mods
    • Lazy NPC
      • Molang
        • Player Methods
    • Oxygen
      • Player Warps
        • Commands & Permissions
      • Commands & Permissions
        • Configured TP (CTP)
      • RTP (Random Teleport)
        • Configured RTP (Admin Command)
      • Migrating from EEssentials
    • WonderTrade
      • Announcements
      • Commands & Permissions
      • Trade Pool(s)
    • Teams
    • Tournaments
      • Time Limits
    • CobbledSpawners
      • Config
      • Spawners
      • Spawn Groups
      • Commands & Permissions
    • ScavengerHunts
    • PPokedex
      • Commands
      • Configurable GUI
      • Configuration
      • Items
      • Ranks
      • Pokedex
    • GGyms
      • Gym Rewards
      • Gym Requirements
      • Commands & Permissions
    • BetterBreeding
      • Egg Encryption
      • Pasture Based Breeding
      • Configurable Items
      • Commands & Permissions
      • GUIs
      • Breeding Configuration
    • Research Tasks
    • Roanoke Library (Rib)
      • Placeholders
        • Pokemon Placeholders
        • Player Placeholders
      • Rewards
      • Item Builder
      • Custom GUI
      • Requirements
        • Multiple Requirements Requirement
        • Pokemon Party Requirements
        • Registering Custom Requirements
        • Permission Requirement
      • Quests
        • Other Quests
        • Placeholder Quests
        • Cobblemon Quests
        • Minecraft Quests
        • Registering Custom Quests
      • PokeMatch
        • IVs/EVs
    • GiftBox
      • Quick Start
      • Commands & Permissions
      • Player Groups
      • Gift Definitions
    • Cobblemon Bank
      • Commands & Permissions
      • Bank Transactions
      • Bank Config
    • Boosters
      • Commands & Permissions
Powered by GitBook
On this page
  1. Mods

ScavengerHunts

We've been working on the basics for this for a while, but rushed it out so that it's ready for Easter. Expect more features soon!

Scavenger Hunts is a Fabric 1.20.1 Sidemod that does exactly what it sounds like. You can configure blocks as "Scavenger Blocks" that players must search for. In the current version, you can configure "pools" of blocks (i.e. common, rare, super-rare) with different pools of rewards (similar to our Trivia mod, but this supports commands and items).

When a player right clicks a Scavenger Block, a title (configurable) appears and the level up sound plays. They are then given a random reward from the Scavenger Blocks pool (defined when you setup the blocks).


How do rewards work? When you first run Scavenger Hunts, a file called "rewards.json" will be created under config/ScavengerHunt

It will have a similar JSON structure to this by default

{
  "easy": [
    {
      "item_name": "cobblemon:poke_ball",
      "display_name": "Poke Balls",
      "quantity": 3
    },
    {
      "item_name": "cobblemon:slate_ball",
      "display_name": "Slate Balls",
      "quantity": 3
    }
  ],
  "medium": [
    {
      "command": "pokegiveother {player} random shiny=yes",
      "display_name": "A random Shiny!",
      "quantity": 1
    }
  ],
  "rare": [
    {
      "item_name": "cobblemon:exp_candy_xl",
      "display_name": "Exp Candy XL",
      "quantity": 16
    }
  ]
}

However, you don't need to have three groups of rewards. You could just have "general", and put all rewards under there. Or you could have a thousand.

The key thing to note here is the rewards themselves. In the medium category, instead of having "item_name", it has "command". As such, the mod will execute the value of this, replacing {player} with the players name. This could be used for giving Pokemon, or any other mod related thing, such as Flan claim blocks.

The reward pool titles will show up in the command when you setup the blocks, which you're about to find out about.


How do you setup the blocks? Any block can be used as a scavenger block. Once you've placed a block, do the command:

/scavenger addBlock <pool> <name>

Where pool is the reward pool/group we discussed earlier, and name is a unique identifier for this specific block. The name is never displayed to the players, so don't worry about it being pretty.

Once you've ran that command, it'll ask you to right click the block to set it up. You'll get a confirmation message once you have.

What if you mess up the right click? No worries, you can remove a Scavenger Block like this:

/scavenger delBlock <name>

The names will be suggested to you. Things are automatically saved, so no need to touch anything.


I've setup the blocks, how do I enable the hunt? By default, the hunt is off - meaning players right clicking the blocks will do nothing. To toggle this, do the command:

/scavenger toggleActive

The state of the hunt (active/not active) will persist across server restarts.


Where is the player info stored? If a player is reporting a bug, or you just want to test things are saving before posting an announcement, check the file under config/ScavengerHunt/foundBlocks.json

{
  "3b301363-10c8-4930-982b-c333402e3190": [
    "egg1",
    "egg2",
    "egg3"
  ]
}

You'll see data like this, where the key is the player's UUID, and the list is the block names they've already found.


PreviousCommands & PermissionsNextPPokedex

Last updated 9 months ago