WhatsUp

WhatsUp

Allows datapacks to query external APIs and run functions based on the result

by
1.3K Downloads
forgequiltlibrarymanagementutility
Rent Server with this Mod

About this Mod

WhatsUp

Quilt version requires: QSL and GroovyDuvet

Forge version requires: GML

WhatsUp is a tool for datapacks that allows servers to query a provided web endpoint at a given frequency, and execute
functions (the normal .mcfunction type) based on the results returned by that endpoint.

WhatsUp defines both listeners and predicates. listeners are defined at data/<namespace>/whatsup/listeners/<name>.json,
and take the following structure:

  • endpoint - The URL to be queried by the listener
  • frequency - An integer representing how many seconds should pass between queries of the endpoint
  • actions - A list of actions to do based on the returned result of the endpoint. Each takes the following form:
    • predicate - The resource location of a predicate to check against the endpoint's result
    • function - The resource location of a function to execute if the predicate passes
    • levels - (Optional; defaults to ["overworld"]) A list of dimensions to run the provided function in
    • then - (Optional) a list of locations of other listeners to chain after this listener
    • storage - (Optional) a map of property names to resource locations specifying command data storage that the predicate has access to

Predicates are stored at data/<namespace>/whatsup/predicates/<name>.groovy, and are groovy scripts. The groovy environment
the predicates run in has access to the context variable, which has the following properties:

  • text - The unprocessed response text
  • json - The a Map of the response parsed as JSON, or null if the response is not a JSON object
  • storage - Contains a property for every command data storage specified in the action; data storages can be queried and mutated.
    This context object is also available as the delegate of the script, so a leading context. to access these properties is optional.

An example datapack can be found on the GitHub releases.

The mod also provides the /whatsup command for easily testing datapacks; this can be used to run any listener immediately.

Available Versions

1.2.0release
MC 1.20.1forge
August 21, 2023
1.2.0release
MC 1.20.1quilt
August 21, 2023
1.1.0release
MC 1.20.1forge
June 19, 2023
1.1.0release
MC 1.20.1quilt
June 19, 2023
1.0.0release
MC 1.19.4quilt
June 19, 2023

How to Install WhatsUp on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set forge Loader

In the panel under "Egg", select the forge loader and matching Minecraft version (1.20.1).

3

Install Mod

Open the mod browser in the dashboard and search for "WhatsUp". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.

Compatibility

Mod Loaders

forgequilt

Minecraft Versions

1.20.1, 1.19.4

Server-side

Required

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

WhatsUp server crashes on startup – what to do?

Most common cause: wrong forge version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.20.1). You can switch loaders with one click in the panel.

Is WhatsUp compatible with forge and quilt?

WhatsUp officially supports forge, quilt for Minecraft 1.20.1, 1.19.4. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with WhatsUp – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if WhatsUp consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.

Rent Modded Server

Install WhatsUp with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
GNU Lesser General Public License v3.0 or later
Server-side
Required

Supported Versions

1.20.11.19.4