More Events
Adds more cancellable events to the ECS by overriding the class files that Hytale associates with certain interactions.
About More Events
More Events
Since Hytale doesn't support certain cancellable events yet, I've made a mod that adds them!
With this mod you can treat events like :
Gathering
Harvesting
Filling Buckets
Placing Fluids
Changing block styles
As you would other cancellable events like breaking or placing blocks without interfering with the ability of other mods to customize the behavior of those events.
This is pretty neat because if, for example, you wanted to modify an interaction behavior across two plugins using only class registration overrides the logic of BOTH plugins would have to go into one, as the override is a server-wide (not plugin-specific) setting.
How to use it
Download MoreEvents
Move MoreEvents.jar into your plugin dependency folder (the same folder as the Hytale.jar your plugin references for dependencies)
Mark MoreEvents.jar as a compile-only dependency in build.gradle.kts (or your equivalent) :
dependencies { compileOnly(files("libs/HytaleServer.jar")) compileOnly(files("libs/MoreEvents-1.0.jar")) } Add MoreEvents to your mod's manifest.json as a dependency in the format :
"Dependencies" : { "Mods:MoreEvents" : ">=1.0.0" } Import the event you'd like to use
Register a system with the imported event! Ex :
public class YourPlugin extends JavaPlugin { @Override protected void setup() { getEntityStoreRegistry().registerSystem( new PlaceFluidEventSystem(PlaceFluidEvent.class)); } }
public class PlaceFluidEventSystem extends EntityEventSystem<EntityStore, PlaceFluidEvent> { public PlaceFluidEventSystem(@Nonnull Class<PlaceFluidEvent> eventType) { super(eventType); }
@Override public void handle(int i, @Nonnull ArchetypeChunk<EntityStore> archetypeChunk, @Nonnull Store<EntityStore> store, @Nonnull CommandBuffer<EntityStore> commandBuffer, @Nonnull PlaceFluidEvent placeFluidEvent) { }
@Nullable @Override public Query<EntityStore> getQuery() { return Player.getComponentType(); } }
Don't see the event you want?
There are now generic events you can listen for when a player hits or interacts (F Key) with a block and process down to your specific event.
If you'd like to request that a specific kind of event be added so you don't have to filter so many, just ask and I'll see if I can add it.
Categories
Need a Server?
Run More Events on a dedicated Hytale server with easy mod management.
Get Hytale HostingFrequently Asked Questions
What is More Events?
Adds more cancellable events to the ECS by overriding the class files that Hytale associates with certain interactions.
How do I download More Events?
You can download More Events for free from CurseForge. Click the "Download on CurseForge" button on this page to go directly to the download page.
Who created More Events?
More Events was created by SimpleSeer. The mod has been downloaded 79 times.
Is More Events compatible with Hytale servers?
More Events is designed for Hytale and can be used on both single-player and multiplayer servers. Check the mod page on CurseForge for specific compatibility information.
How do I install More Events?
To install More Events: 1) Download the mod from CurseForge, 2) Place the file in your Hytale mods folder, 3) Restart the game. The mod should load automatically.
Related Qol Mods
View all modsEyeSpy
DarkhaxDev
Adds a HUD that displays information about what you're looking at!
Advanced Item Info
Buuz135
Adds a searchable GUI that displays all the items and the game and displays extra properties they have
Overstacked
DarkhaxDev
Increases the maximum stack size of items.
Violet's Wardrobe
VioletsWorkshop
Adds more customisation options in the form of craftable cosmetics
Item Magnet
Jaredlll08
Adds a magnet that attracts items towards the player.
Endgame & QoL - Boss & Elite Update (3.0.0 in a week)
Lewaii
Endgame & QoL v2.2: Face the Alpha T-Rex & Void Spectres! Unlock Backpack IV & Void Gliders. Restore unused content and challenge stronger, rebalanced bosses!