ManualGrassSpread

This project is abandoned and its default file will likely not work with the most recent version of Minecraft. Whether this project is out of date or its author has marked it as abandoned, this project is no longer maintained.

This plugin lets players spread grass manually.

This is typically designed for Creative servers with natural grass spread disabled by WorldGuard or similar, in order to use dirt as a legitimate building block (for instance, to draw road paths).

Server admin info

This mod simulates Block placement events. Therefore this will not spread grass in regions where a player does not normally have edit permission, and if the server has a block modification logger such as Logblock, it will log the appropriate successful events.

Therefore it is ideal for Creative servers with a Community aspect, where not every single player has WorldEdit access.

Demonstration

Applying grass spread

For grass to spread, the player with manualgrasspread.simple permission will select an item (configuration file default: Wheat), and the grass will spread upon right clicking any surface that has adjacent grass blocks, on a certain radius.

The grass spread is different from WorldEdit green command. For grass to spread:

  • The dirt blocks eligible for growth must receive at least one unit of sunlight on their top surface, except if the block above is liquid.
  • The grass blocks eligible for spread must receive at least one unit of sunlight on their top surface, except if the block above is liquid.
  • The eligible dirt will grow only if there is eligible grass in at least one on its 26 neighbors (= anything in the 3x3x3 volume).
  • Grass will spread once per right click.
  • Holding right click will perform the spread multiple times.
  • Eligible blocks are only present in a cylinder which dimensions are defined in the configuration file.

By default, the cylinder dimensions is intentionally low, as spreading grass on large areas may contaminate legitimate dirt.

Triple spread mode

The Triple spread mode triples the radius and the height of the cylinder. Triple spread mode is only available to users with permission manualgrasspread.triple, and toggled by the users using the /grasstriple command. Triple mode disables when that user leaves the server.

Because of the extended radius and size, use of that mode can result in spread of grass onto legitimate dirt, so players should use that mode with extreme caution, only if no legitimate dirt is present at all in the region.

Notes

  • This mod does not transform all dirt to grass, it only does on certain condition as noted above.
  • For grass to spread, there needs to be grass next to the patch of dirt.
  • Grass can spread diagonally.
  • Walls of dirt cannot change to grass, only the topmost blocks of the wall can eventually.
  • Grass present in invalid places (such as: under the dirt) will not cause grass spread.

Permissions, Commands and Configuration

Permissions:
  • manualgrassspread.simple Simple mode.
    • Allows user to spread grass with the tool.
    • Not allowed users see no error when using the tool.
    • If an allowed user tries to use the tool, but the block change event is cancelled by some plugin, no error message is shown by ManualGrassSpread. Instead, the plugin responsible for blocking the change may show its own error once.
  • manualgrassspread.triple Triple mode.
    • Allows user to use Triple mode. Such users must also have Simple mode permission.
Commands
  • /grasstriple Toggle triple mode
    • Toggles Triple mode on one's self.
    • If Triple mode permission is revoked after Triple mode have been enabled, Triple mode effects will immediately cease to work on that player.
Configuration
  • grass_spread.item: 296
    • Item ID to use as the tool.
  • grass_spread.radius: 6
    • Radius of the cylinder. The diameter will be equal to (radius * 2 + 1)
  • grass_spread.height_of_split: 2
    • Half of the total height of the cylinder. The total height will actually be equal to (height_of_split * 2 + 1)

The configuration requires a plugin restart (or a server restart) for changes to be applied.

Source

If you have a github account, you are encouraged to send tickets on github instead of bukkitdev https://github.com/Hurricaaane/BKK-ManualGrassSpread


Comments

Posts Quoted:
Reply
Clear All Quotes

About This Project

Categories

Members

Recent Files