promotional bannermobile promotional banner

MoonPhaseReactor

Abandoned
Change the world based on the phase of the moon!

Change the world based on the phase of the moon!

Description

This plugin allows you to select blocks in the world. The selected block(s) will have two states: a normal state and a special state. The normal state is what will be seen most of the time. The special state will become active when certain circumstances regarding the moon occur.

Commands

/mpr (alias: mpblock) - shows the help
/mpr [moon phase] [normal block] [special block]
Moon phase: the phase of the moon (see moon phases). You can also type 'infer' and it will use the current state of the moon
normal block: the normal block material (like stone or air). You can also type 'infer' and it will select the material of the clicked block
special block: the special block materia. Can also be inferredl
This command will turn on block selection mode. You then right click blocks to select them. To finish, type /mpr off.
/mpr remove - Turns on removal mode. Click blocks to stop them from being affected by the moon phase.
/mpr off(|done) - Turns off selection mode
If you place a block with selection mode on, the placed block will be the block that is changed by the moon.

Moon Phases

  • daytime
  • cloudy (raining, storming, snowing, etc
  • new-moon
  • waxing-crescent
  • first-quarter
  • waxing-gibbous
  • full-moon
  • waning-gibbous
  • last-quarter
  • waning-crescent

Permissions

mpblock.use - Allows use of this plugin

Source

Find the source here.

API

This plugin produces a moon phase changed event, which might be useful. Read my incredibly in-depth documentation here.

WARNING

I can't guarantee that this plugin will work well when other plugins muck with the time. I know it works fine when setting the time and adding time, so things should work well.

Uses Persistence

This means that you can modify the info in your bukkit.yml to have this plugin use a mysql database instead of sqlite if you want. By default, it uses sqlite, and will complain in the log that 'ebean.properties is not found'. You don't need to worry about this. If you want it to go away though, make an empty 'ebean.properties' file in the same dir that your craftbukkit.jar is located.

If you want to use mysql, replace your current database configuration in your bukkit.yml with this:

database:
    username: {Mysql_user}
    driver: com.mysql.jdbc.Driver
    password: {Mysql_password}
    url: jdbc:mysql://{mysql_host}:{mysql_port}/{database_name}
    isolation: SERIALIZABLE

Be sure to plug in the correct database credentials!

The MoonPhaseReactor Team

profile avatar
Owner
  • 18
    Projects
  • 84.3K
    Downloads

More from IrozmirView all

  • MagicCompass project image

    MagicCompass

    • 4.5K
    • Bukkit Plugins

    Gives players the ability to control where their compass points to.

    • 4.5K
    • July 3, 2016
    • Bukkit Plugins
  • StaffMonitor project image

    StaffMonitor

    • 5.4K
    • Bukkit Plugins

    Keep tabs on those sly admins

    • 5.4K
    • April 11, 2016
    • Bukkit Plugins
    • +2
  • BukkitLCS project image

    BukkitLCS

    • 365
    • Bukkit Plugins

    Command Parsing Library

    • 365
    • April 7, 2015
    • Bukkit Plugins
  • Homes project image

    Homes

    • 8.3K
    • Bukkit Plugins

    Simple Yet Powerful Homes Plugin

    • 8.3K
    • April 7, 2015
    • Bukkit Plugins
  • MagicCompass project image

    MagicCompass

    • 4.5K
    • Bukkit Plugins

    Gives players the ability to control where their compass points to.

    • 4.5K
    • July 3, 2016
    • Bukkit Plugins
  • StaffMonitor project image

    StaffMonitor

    • 5.4K
    • Bukkit Plugins

    Keep tabs on those sly admins

    • 5.4K
    • April 11, 2016
    • Bukkit Plugins
    • +2
  • BukkitLCS project image

    BukkitLCS

    • 365
    • Bukkit Plugins

    Command Parsing Library

    • 365
    • April 7, 2015
    • Bukkit Plugins
  • Homes project image

    Homes

    • 8.3K
    • Bukkit Plugins

    Simple Yet Powerful Homes Plugin

    • 8.3K
    • April 7, 2015
    • Bukkit Plugins