EventBlocks API
No reviews yet
API for modpacks, which allows you to add custom blocks, which will generate random event from added list every noon
Forge is a popular mod loader for versions 1.1+ of Minecraft.
Community voices
Reviews
Click once to include, again to exclude, again to clear
No reviews yet. Be the first to review this project!
Get it on
Available Platforms
About
Project Details
For authors
Embed Badge
If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.
Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.
Identifiers
Platform IDs
Resources
External Links
About
Description
EventBlock API
Description:
EventBlock API is a Minecraft Forge mod for 1.20.1 that adds special blocks that generate random events every in-game noon. These blocks can add excitement and unpredictability to your world, making them perfect for adventure maps, custom worlds, or modpacks.
Features:
- Blocks that trigger a random event every in-game noon.
- When block is placed - it will take texture, sounds, model and other properties of block beneath it (for now only works with: stone, dirt, diorite, snow block, granite, andesite, grass block and sand)
- Fully configurable: modpack creators can add custom events.
- Works seamlessly with other Forge mods.
For Modpack Creators:
To add a custom event to a block’s event list:
-
Import the
RandomBlockclass:import com.creatorsindrome.eventblock.common.block.RandomBlock; -
Register your event using the static method:
RandomBlock.regBlockEvent(new BlockEvent() {
@Override
public void run(BlockState blockstate, ServerLevel world, BlockPos pos) {
// Your custom event code here
}
});
The run method receives the following arguments:
BlockState blockstate— the state of the block triggering the eventServerLevel world— the server-side worldBlockPos pos— the position of the block
Usage:
Simply place the Random Event Block in your world. Every in-game noon, it will execute one of the registered events. Combine multiple blocks for more complex behaviors.
Recommended For:
- Adventure maps
- Custom servers
- Modpacks looking to add dynamic world events
Screenshots
Gallery
Versions
Files
Relations
Project Relations
More like this
Similar Mods
Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.
On ModDex
Community snapshot
By the numbers
Statistics
Want to reach Minecraft players?
We're looking for a server hosting partner to feature here and other parts of the site. Interested? Send us a message!
Get in touchGet it on
Available Platforms
On ModDex
Community snapshot
By the numbers
Statistics
Resources