TotomRegister
No reviews yet
This is a mod that allows you to register totem events for specified items.
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
Compatibility
Supported Environments
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
About
Description
This is a mod that allows you to register totem events for specified items, and it has been open-sourced on GitHub.
You can register items using TotemRegister.register(Item item). In addition, you can set the event to trigger after activation and whether to overwrite the original event for specified items:
TotemRegister.register(Item totem, BiConsumer<ServerPlayer, ItemStack> runnable);
TotemRegister.register(Item totem, BiConsumer<ServerPlayer, ItemStack> runnable, boolean overwrite);
If you want to register multiple items at once, you can use TotemRegister.register(Class<?> clazz) to register all variables of type Item within a specified class, for example:
TotemRegister.register(Items.class);
Note: This function may throw InstantiationException and IllegalAccessException exceptions. Please use try-catch blocks to catch these exceptions.
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