promotional bannermobile promotional banner

React (abandoned)

Script reactions to events
Back to Files

React-1.12-1.2.0.jar

File nameReact-1.12-1.2.0.jar
Uploader
CoolSquidCoolSquid
Uploaded
Feb 18, 2018
Downloads
263
Size
73.0 KB
File ID
2532516
Type
R
Release
Supported game versions
  • 1.12.2

What's new

General

  • Fixed the player_spawn event.
  • Added a compact log mode, which can be enabled by adding the "compact=true" parameter to the log action. This strips unnecessary information from the log, and saves disk space.
  • Bug fixes.

Actions

  • spawn_mob: Spawns a mob. Possible parameters are mob_type (e.g. "minecraft:blaze"), x, y, and z.
  • spawn_item: Spawns an item in the world. Possible parameters are item (e.g. "minecraft:diamond"), meta, nbt, x, y, and z.
  • set_block: Places a block at the specified location. Possible parameters are block (e.g. "minecraft:stone"), meta, x, y, and z.
  • explode: Ignites an explosion at the specified location. Possible parameters are strength, flames, x, y, and z.

These actions can take their locations from the action target. For example, the following script spawns a sheep five blocks above any player who sends a chat message that contains the word "sheep":

server_chat=[
    {
        action=spawn_mob
        target=player // The location will be based on the player's location.
        parameters {
            mob_type="minecraft:sheep"
            y=~5 // Changes the y-coord relative to the player's location.
        }
        conditions {
            message=".*sheep.*"
        }
    }
]

Events

  • pre_explosion: Fires before an explosion. Includes an "exploder" target (i.e. the mob that ignited the explosion).
  • explosion: Fires during an explosion. Includes an "exploder" target (i.e. the mob that ignited the explosion).
  • mob_update: Fires whenever a mob updates. Mostly intended for internal debugging.

Target properties

For worlds:

  • id: The dimension ID, e.g. 1.
  • seed: The world seed.
  • time: The current in-game world time.
Type
Name
Game Versions
Size
Downloads
Uploaded