GroovyStages
No reviews yet
A quality of life add-on for GroovyScript for working with GameStages.
Includes quality of life improvements and small tweaks to enhance and customize gameplay.
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
GroovyStages
This is a mod provides GroovyScript extenders for working with GameStages. It allows pack makers to add/remove/check stages on players more intuitively.
How to use
This mod adds game stage related methods to the EntityPlayer class, pack makers can simply call the methods as if they were a part of the class.
The methods are as follows:
| GroovyStages method | GameStages method | Functionality |
|---|---|---|
hasStage(String) |
hasStage(EntityPlayer, String) |
Returns true or false, checks if the player has a game stage. |
hasAnyStage(String...) |
hasAnyOf(EntityPlayer, String...) |
Returns true or false, checks if the player has any of the game stages provided. |
hasAllStages(String...) |
hasAllOf(EntityPlayer, String...) |
Returns true or false, checks if the player has all game stage provided. |
addStage(String) |
addStage(EntityPlayer, String) |
Adds the provided game stage to the player. |
addAllStages(String...) |
Adds all the provided game stages to the player. | |
removeStage(String) |
removeStage(EntityPlayer, String) |
Removes the provided game stage from the player. |
removeStage(String...) |
Removes all the provided game stages from the player. | |
syncStages() |
syncPlayer(EntityPlayer) |
Synchronizes game stages between client and server. Provided mostly as an emergency. |
Example usage
import net.minecraftforge.event.entity.player.PlayerEvent.BreakSpeed
event_manager.listen { BreakSpeed ev ->
if (ev.getEntityPlayer().hasStage("advancedMining"))
ev.setNewSpeed(ev.getOriginalSpeed() + 1.5f)
}
Cleanroom Support
Yes, this mod is cleanroom compatibile, all versions of the mod marked as -cleanroom are made to run on cleanroom specifically and therefore require the Relauncher and Fugue, the forge versions are unmarked.
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