logo
banner
Rating
Voted0

Scavenge Mod (1.19.2) - modular generator of effects for clicking on a block of scripts

0
Mod version:1
Game version:1.19.2
The mod has been successfully tested for the absence of viruses
6221.22K221.58K
image

Minecraft

Report mod

  • image
modalImage

About This Mod

Scavenge Mod (1.19.2) is a mod that allows you to apply custom behavior to any block when you press the right/left mouse button. In addition, loot pools can be added to these actions, which drop when conditions are met. They are loaded from a Json file and work like a scripting language. Additionally, certain unique functions/conditions can be added by right clicking on these blocks: Json based script generator. This is a public API. It can be used as is and redistributed with add-ons only, although API files should not be included in add-ons unless the API is updated, as this may introduce bugs.


For example.

The player must sneak,

The player must have diamonds, the player must have diamonds, the player must have diamonds.

Blocks are indestructible.

Blocks disappear after five uses.

Etc.

Use.

Create a class that inherits from IScavengePlugin.class and has the @ScavengePlugin annotation. The plugin is loaded automatically; no mod file required.

Conditions and effects can be registered via ScavengeRegistry.class. To create, use the base class. (BaseScavengeCondition and BaseScavengeEffect).

The constructor now contains everything, not the implementation of the effect/condition. Serialization/deserialization/networking/documentation.

How to add Scavenge scripts:

Scavenge now works with resource packs, automatically loading all files in the "datapacks/DATAPACK_NAME/data/DOMAIN/" folder scavenge_scripts".

They are also automatically reloaded when the resource pack is reloaded. They are automatically synchronized with the client, so there is no need to manually synchronize the server->client. This is done automatically.

Since the tool has a JEI plugin, I had to install a JEI hack that reloads JEI one tick after the script is reloaded. (If JEI doesn't fix this issue, it may speed up reboots to the 2-3 digit range).

Similar Mods/Addons

Game Version *

1.19.2 (e2e2d9f4d735563e2177ade07eb32f15.jar)