Back to mods
Scavenge project artwork

Modrinth · Minecraft mod

Scavenge

Apply a custom Rightclick behavior to any block!

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which Scavenge release should I use?

Updated 5 months ago
Latest stable file 2.0.2
Game version 1.21
Loader NeoForge

Scavenge 2.0.2 targets 1.21 with NeoForge. Installation on the client is optional. Installation on the dedicated server is optional. No extra mods listed for this file.

Where it goes

Is Scavenge required on the client, server, or both?

Installation on the client is optional. Installation on the dedicated server is optional.

Client Optional
Dedicated server Optional
Loader for this release NeoForge
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

The source marks this as usable on both the client and server.

What else does Scavenge 2.0.2 need?

2.0.2. Change the file and its required mods may change too.

No extra mods listed for this file

This file does not list any required mods. Do not add a library just because a different file uses it.

Carbon Config Optional for Scavenge 2.0.2
optional
Matching file found Matched file: 2.0.2

We only count dependency files that match this setup. A file for another loader does not fill the gap.

Before you install it

Add Scavenge without breaking your instance.

Built for Scavenge 2.0.2. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 2.0.2. It targets 1.21 with NeoForge; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    This file does not list any required mods. Do not add a library just because a different file uses it.

  3. 03

    Put it on the correct side

    Installation on the client is optional. Installation on the dedicated server is optional.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside 2.0.2. It opens that exact file at the source.

About this project

What does Scavenge add?

Scavenge is a mod that allows you to apply custom RightClick/LeftClick behaviors to any Block.
On top of that you can add LootPools to these behaviors that are dropped when the conditions are met.
These things are loaded from JsonFiles and act closely to a Scripting language.

On top of that you can add certain unque features/conditions when rightclicking these blocks.

For example:   

  • Player has to sneak,
  • Player has to have a Diamond in his hands
  • The block is unbreakable
  • The block disapears after 5 uses
  • etc.

Tutorial:

If you want a good example tutorial on how to write Scavenge Scripts,
Xaikii made one, which can be found Here

Documentation

Documentation is now part of the mod.
Which can be generated by setting the "printExamples" in the config section and start the game.
Addons should be supporting this too.
Said generated docs will be in the game folder and in the "scavenge_doc" folder.
The documentation is sorted by Plugin -> TypeOfProperty -> PropertyName.

This is done to simplify the process of finding the documentation and keep it preserved.

Dumping Scripts

Scavenge supports dumping ingame loaded scripts.
Which can be done by setting the "dumpScripts" to true.
This was done to make debugging easier, due to now being able to see what got loaded and what got discarded due to errors in the source script.
Script dumping happens directly after scavenge scripts get reloaded.
(So no game restart required)

Datapacks

How to add a Scavenge Script:

Scavenge now works with Datapacks. It will automatically load all files that are in the "datapacks/DATAPACK_NAME/data/DOMAIN/scavenge_scripts" folder.
And will automatically reload them on resource packs reload. They will be automatically synced over to the client so no more "server->client" manual Syncing. Its done automatically.

Since the tool has a JEI plugin i had to install a JEI hack that reloads JEI 1 tick after scripts got reloaded because JEI does not support any mod that has recipe/data autosyncing. (This can get fast into the 2-3 digit reload range if jei does not fix this problem)

What has Changed outside of ResourcePacks now:

  • Effects are now only executed on server, while conditions are tested both on server & client. So there can be desyncs if you store data unsynchronized.
  • Math Operations/Conditions are now a lot more enforced then before because more flexibility even if  the code is bigger.
  • Error Messages can now be directly added into Conditions so no longer the separate section with messages. And for effects there is a Message Effect.
  • Conditions can by default now be inverted. (Addons can not be guaranteed to support that)
  • Scavenge now uses Vanilla LootPools and you can just link them to the lootpool. It will try to show them in JEI but accuracy for more random/complex loot may not look as good.
  • Math Operations/Conditions have now bit support.
  • Examples for everything are generated. (Again Addons can not guaranteed to support that)

Project description from Modrinth.

Pick your setup

Scavenge by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

5 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

Scavenge versions and loaders

8 of 8 releases match

Looking for an older file? The official Modrinth project page is in Resources.