Developer API
There are two things that are required to register custom clue steps.
Firstly, if you are using a custom Forge EventBus for your mod/plugin then you need to register that when the server starts like so:
Event Converters
Event converters are used to convert events into players, so that we can then determine if the player has a clue scroll in their inventory.
Therefore, if you want to use a previously undefined event for a clue step you need to register a custom event converter on the server start. You can find an example below.
Custom Clue Step Types
Clue step types are config classes that allow the end user to give information about how the clue step should generate, and look. These do not need to be registered as the class path needs to be specified in the config.
Below you can find an example clue step type
Context
Clue step context is used for storing the generated data from the clue step type on the clue scroll item. They also don't need to be registered as they are directly referenced from the clue step type class. Below you can find the Integer context which is most commonly used.
Last updated
Was this helpful?