https://github.com/frklan/randomgrowth
A hacky way to get a bit more randomness in Bamboo plants in Minecraft
https://github.com/frklan/randomgrowth
java minecraft-plugin spigot-plugin
Last synced: over 1 year ago
JSON representation
A hacky way to get a bit more randomness in Bamboo plants in Minecraft
- Host: GitHub
- URL: https://github.com/frklan/randomgrowth
- Owner: frklan
- License: other
- Created: 2019-12-28T19:36:52.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-11-08T11:13:17.000Z (over 5 years ago)
- Last Synced: 2025-01-21T18:11:49.436Z (over 1 year ago)
- Topics: java, minecraft-plugin, spigot-plugin
- Language: Java
- Size: 24.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: code-of-conduct.md
Awesome Lists containing this project
README
# RandomGrowth
[](https://www.spigotmc.org/wiki/spigot/)
[](https://github.com/frklan/RandomGrowth/releases)
[](https://github.com/frklan/RandomGrowth/issues)
[](https://github.com/frklan/RandomGrowth/blob/master/LICENSE)
A (now a bit less) hacky way to get a bit more randomness in Bamboo plants in Minecraft
All Bamboo growth events are monitored and canceled when the plant reaches a random height between 3 and 16 blocks, we'll also set the BlockData parameter Stage is set to '1' and Leaves are set to 'LARGE' on the topmost bamboo block. Setting Stage to '1' prohibits further growth.
**Note** The server will throw an java.lang.IllegalArgumentException if we spam the bamboo plant with bone meal; unless I misunderstand the traceback and the Minecraft server source code; the bone meal interaction is handled asynchronously and sometimes the action is trying to grow the block we just canceled. Is this a bug or what am I missing?
Be aware that the plugin might trash your server..
## Compiling
### Prerequisites
* Java 8 SDK
* Apache Maven
### Compiling
To compile issue the following commands
````bash
git clone git@github.com:frklan/RandomGrowth.git
cd RandomGrowth
mvn RandomGrowth
````
## Running
### Prerequisites
* Java 8
* A [SpigotMC](https://www.spigotmc.org/wiki/spigot/) server
### Installing
Compile and copy the jar file to your server's plugin folder and restart the server.
## Permissions
Since the plugin does not offer any player interactions, there is permission settings.
## Plugin Stats
No telemtry specific to this plugin is sent to anyone.
## Contributing
Contributions are always welcome!
When contributing to this repository, please first discuss the change you wish to make via the issue tracker, email, or any other method with the owner of this repository before making a change.
Please note that we have a code of conduct, you are required to follow it in all your interactions with the project.
## Versioning
We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/frklan/[TBD]/tags).
## Authors
* **Fredrik Andersson** - *Initial work* - [frklan](https://github.com/frklan)
## License
This project is licensed under the CC BY-NC-SA License - see the [LICENSE](LICENSE) file for details.