This page lists all parameters which you can use in your drop file to change the way drop events work (see the Drop file page to learn about the anatomy of this file and how it should be structured).
The following parameters are available:
Conditional parameters determine whether the drop event should occur. (If using a drop group, these parameters — with one exception — may appear either inside the individual drops or outside the drop group.)
trigger:" (Alias -
trig:) parameter determines the means by which the drop event is triggered. (If using a drop group, the trigger must be placed outside the drop group; this is the only parameter not allowed inside a drop group.)
|BREAK:||Triggers when a block breaks or an entity is destroyed. (This is the default action trigger and doesn't need to be specified.)|
|LEFT_CLICK:||Triggers when you left-click a block/entity.|
|RIGHT_CLICK:||Triggers when you right-click a block/entity.|
|LEAF_DECAY:||Triggers when a LEAVES block decays naturally.|
|FISH_CAUGHT:||Triggers when a player catches a fish (you must specify "PLAYER" as the object)|
|FISH_FAILED:||Triggers when player finishes fishing with no catch|
|MOB_SPAWN:||Triggers when a mob spawns|
|HIT:||Triggers when the target is hit|
|BLOCK_PLACE||Triggers when a block is placed|
|POWER_UP||Triggers when a block receives a redstone signal|
|POWER_DOWN||Triggers when a block loses a redstone signal|
|PLAYER_MOVE||Triggers when a player moves over a specified block type (Warning - Don't overuse this)|
|PLAYER_JOIN||Triggers when a player joins the server|
|PLAYER_RESPAWN||Triggers when a player re-spawns|
|CONSUME_ITEM||Triggers when a player eats or drinks an item ("PLAYER" is the object; the fooditem is the tool)|
|BLOCK_GROW||Triggers when a block(Plants) grow a stage|
|PROJECTILE_HIT_BLOCK||Triggers when a projectile hits a block|
Plugins may also add their own actions (see API page for more info).
You may specify multiple actions using square brackets; for example, giving LEAVES a parameter of
trigger: [BREAK, LEAF_DECAY] would trigger either when a player broke the leaf block or it decayed naturally.
In the following condition parameters, you can specify multiple values using brackets and commas, such as
time: [DUSK, DAWN]. With most of the conditions, you may also create a negative match with a minus sign, such as
tool: [ANY_SWORD, -WOOD_SWORD]; in this example, any sword except a wood sword would trigger the drop event.
- The drop will trigger only for the specified tool(s) (see Tools page for usable values). Negative matches allowed. Default:
- World(s) in which this drop can trigger. Negative matches allowed. Default:
- WorldGuard region(s) in which this drop can trigger. Negative matches allowed. Default:
- Biomes in which this drop can trigger. Negative matches allowed. Default:
- The drop will only trigger for players with the specified permission(s). Negative matches allowed. Example:
permissions: [hunter, thief]would trigger only for players with one or both of the permissions nodes
- The drop will only trigger if there is a mob spawner within the specified range.
Example - (msir: 15)
- The drop will only trigger if there is
nota mob spawner within the specified range.
Example - (msir.not: 15)
- The drop can only trigger during the specified time of day (
DAY/NIGHT/DUSK/DAWN/DARKNESS, where DARKNESS is anything but DAY). Negative matches allowed. Default:
- The drop can only trigger in the specified weather conditions (
RAIN/SNOW/THUNDER/CLEAR/CLOUD/NONE/STORM, where NONE=Nether). Default:
- The drop can only be triggered if the player is using the specifically named item. (Ex.
lorename: SuperShovel) Can be combined with a tool parameter to require a specific tool being that name. Supports colors (eg. &a, etc) but you need to surround the name in quotes (eg.
- The drop can only trigger if the mob was spawned in this fashion. (Ex.
spawnedby: SPAWN_EGG) Check the Spawn Reason page for a list of other triggers.
- The drop can only trigger at the specified y-coordinate range. Examples (quotes are required):
- Similar to "height" above, but determines the light level (0-15) within which the drop can trigger.
- Similar to "height" above, but determines an attack range (i.e. when attacking a mob) within which the drop can trigger.
- Specifies one or more binary conditions that must hold (use the square bracket format to indicate multiple flag requirements). Currently supported flags:
- IN_MOB_ARENA allows the drop event to occur in MobArena arenas.
- UNIQUE prevents further drop event processing for the current object once this drop event processes successfully. Note that OtherDrops will evaluate drops flagged as UNIQUE first even if they aren't listed first in your drop file.
- If the action is
RIGHT_CLICK, this parameter restricts the trigger to a certain side of the block (UP, DOWN, NORTH, SOUTH, WEST, or EAST). Negative matches allowed. Alias:
Randomness and Delays
- Determines the odds that the drop will occur (specify as a percentage, eg.
50%). A chance of 100% (the default) will override the object's default drop (players aside) unless you also specify
drop: DEFAULTsomewhere for that object. Values below 1% are allowed (eg. 0.0000002%)
- Delays the drop by the specified number of ticks (20 ticks are generally equal to 1 second). This parameter is listed with conditions because it, too, is allowed inside a drop group; if used inside, it will delay only the sub-drop to which it pertains.
Result parameters determine the result of the drop event once it triggers. (If using a drop group, these parameters must be placed inside the drop group.)
Specify what (if anything) drops as a result of the drop event.
- Determines what drops (see Drops page for usable values, as well as how to specify multiple values). Special values worth mentioning here include
drop: NOTHING(to disable the default drop) and
drop: DENY(prevents the event from even happening at all; thus nothing gets dropped, and what normally would have happened gets canceled completely).
- The quantity to drop. You may specify a range (eg.
0-4) for a randomized drop quantity. Default:
- Specify an optional color or data value for the drop. Alternately, specify this with an @ sign after the drop name (eg.
drop: [email protected]). Alias:
color:. Data can also be represented as an integer drop value (eg. drop: [email protected])
- Enchantments can be added to item drops after the data value (eg. drop: [email protected]!damage_all#2) - use #x at the end for the enchantment level.
- The name of the dropped item can also be changed by specifying it with an @!~ after the drop name (ex.
drop:). If using data values or enchantments the lorename comes last.
[email protected]!~Raw Tuna
- Determines whether drop quantities greater than 1 are deposited individually (otherwise they will be grouped into a single stack when dropped). Can be set to
FALSE, or a percentage (eg.
50%) for randomized odds of dropping individually. Default:
- This can be set as an integer, or a percentage to remove a certain amount of money from a player. (i.e. "-5" will remove 5 points from a player, and "2%" will increase the player's asset by 2%.) Extensions of this parameter include ".victim" and ".steal", along with all the other standard extensions such as ".server".
The quantity and chance (chance is listed under "Conditions > Randomness and Delays," above) can be written inline with the drop in an abbreviated format using slash separators. Examples:
drop: [email protected]
drop: [email protected]/1-3
The following parameters execute some action when the drop event occurs.
|message:||Show a message to the player who triggered the action (alias: message.attacker)|
|message.victim:||Show a message to the player killed (or interacted with)|
|message.world:||Send a message to all players in the world in which the event occurred|
|message.server:||Send a message to all players on the server|
|message.radius:||Sends a message to all players within the radius set in otherdrops.config|
Enclose messages with quotation marks. To choose randomly from multiple message options, use brackets and commas (i.e.
message: ["Watch out!", "Boo!"]). Variables can also be used in lore and custom names. The following special values are supported:
|%loc.x||Displays the X coordinate of the player/drop|
|%loc.y||Displays the Y coordinate of the player/drop|
|%loc.z||Displays the Z coordinate of the player/drop|
|%loc.world||Displays the WORLD of the player/drop|
|%date||Displays the date|
|%time||Displays the time|
|%displayname||Shows the custom name of the tool or mob used|
|%deathmessage||Shows the death message for the tool or mob used|
|%t||Displays as the name of the tool used|
|%q||Displays as the drop quantity in-message|
|%p||Displays as the (attacking) player's name (or player who broke the block)|
|%v||Displays as the victim's name (or block-name if a block is broken)|
|&x||Changes the text color (where "x" is a color code)|
|&&||Displays as a single ampersand (used in situation where a single ampersand may be interpreted as a color, eg. "white&&black")|
- Perform a command - all variables as per "message" are accepted (eg. %p, %v, etc). Enclose commands with quotation marks. To run multiple commands, use brackets and commas (similar to
message:example above). Alias:
commands:. Use the following command prefixes:
|Prefix||Run as...||Send resulting messages to...|
|/*||Player (OP override)||Player|
|/!*||Player (OP override)||Console|
- Inflict damage on the player or creature who triggered the action [attacker], the entity receiving the action, if applicable [victim], a radius around the attacker [radius], the entire world [world], or server [server].
- This damage will ignore armor, and is specified as an integer - e.g. "2" would be one heart of damage.
- Negative values will instead heal.
For radius (damage.radius), you must specify "@integer" like "@3" in addition to the integer that determines damage, to determine the size of the radius in blocks. (e.g. [email protected]; two hearts in a three block radius)The radius of (damage.radius) depends on the integer-value you set for it in your global configuration file.
- You can also add "FIRE" and "LIGHTNING" (e.g. [email protected]).
- Change a player-related attribute. [hunger] refers to the player's hunger bar. [exhaustion] refers to the player's saturation (their "hidden" hunger bar). [xp] refers to the player's experience points/levels (needs confirmation on which one it is). [speed] refers to the player's innate speed level, set by NBT tags.
- All integers should be surrounded in double quotes; for example: [pset.hunger: "5"].
- Specifying just an integer will set it to that exact amount (i.e. pset.hunger: "5" will set your hunger to 5 no matter what). Specifying "+" or "-" in front of the integer will make it add or subtract from the player's current value, thus making it relative (i.e. pset.hunger "+5" will add 5 points to your current hunger).
- Replace the affected object (e.g. a block or an entity) with another object.
- Add a location offset for drops, events, and effects. Use X, Y, and Z coordinates separated with slashes (eg.
- Similar to above, but randomized up to the specified X/Y/Z amounts.
The following actions affect the tool which was used for the action. Keep in mind you must specify a positive integer; negative integers are not accepted. The values you specify here are read as integers, not percentages.
- Add damage points to a tool which uses a damage bar (adding damage points makes the tool lose durability). Items vary in the amount of damage points they can take before breaking (reference tables here). This parameter does nothing to blocks/items which don't use the damage bar.
- As above, but subtracts damage points (i.e. restores the tool's durability). Ignored if
- Reduce the quantity of the tool by the specified amount. (For tools that use the damage bar, this parameter applies only at the moment the tool would break; in this case, a value of
0could prevent the tool from disappearing.)
- As above, but adds to the quantity of the tool. Ignored if
- Replaces the tool with whatever item/block you specify. (For tools that use the damage bar, this parameter applies only at the moment the tool would break.) This parameter does not presently accept group synonyms or bracketed lists.
- apply potion effects (defaults to attacker) <effect name>@<duration>@<strength> (can also use, potioneffects.victim, .attacker, .world, .server)
event:" parameter can trigger one of a number of preset in-game events.
- Prevents surrounding blocks from checking whether they should fall. (This event is not yet working in 2.0.)
- Produces a lightning bolt. Optionally accepts the following data values:
@HARMLESS(just for show),
@PLAYER(the player's current location),
@PLAYERLOCATION(the player's original location; may differ from current location if a delay is used).
- Changes the weather to cloudy (accepts optional data values of @ON, @OFF).
- Changes the weather to a thunderstorm (accepts optional data values of @ON, @OFF).
- Trigger a generic explosion. Accepts multiple parameters - [email protected]@NOBREAK (fire sets random fires within explosion radius, nobreak will not break blocks). Power testing discovered: # 0 = sound, effect, no player or block damage, # 0.5 = sometimes hurts player, destroys 1 block, # 0.75 = 2.5 hearts damage, destroys about 4 blocks, # 2 = 6-8 hearts damage, about 40 blocks, # 4 = default setting for "EXPLOSION", # 100 = blows away half a mountain, # 1000 = server times out, devastates 100 block radius, when joinable server lags due to massive number of dropped blocks. Examples: event: [email protected]@[email protected], [email protected], [email protected]@NOBREAK, etc. (note: NOBREAK is only from version 2.8b.363 onwards).
- Try to grow a tree on the spot. Optionally accepts the following data values:
- Ignores some of Minecraft's checks for where a tree is allowed to grow (eg. dirt below, space above). It will still not grow directly above a tile entity such as a chest unless your global config contains the line
events.trees.force-tile-entities: true(because this requires OtherDrops to temporarily replace the block below with dirt to trick the tree into growing; note that this function is experimental).
Plugins may also add their own events (see API page for more info).
event:" parameters affect a sheep in some way when the drop event occurs (provided the object is actually a sheep).
- Changes the sheep to sheared.
- Changes the sheep to unsheared.
- Toggles the sheep's sheared status.
- Dyes the sheep a new color (example:
sheep: [email protected]).
effect:" parameter produces some effect (generally a sound or visual effect) when the drop event occurs.
Current values (see Bukkit Effects page for the most up-to-date list)
- Same as a Ghast fireball sound effect.
- Produces the a bow-firing sound effect.
- Produces a click sound effect.
- Produces a different click sound effect.
- Produces a door-toggle sound effect.
- unverified - Not working as of latest version.
- Produces a fire extinguish sound effect.
- Same basic effect as a Blaze shoot, makes the sound of a fireball coming at you.
- Produces a Ghast shriek, the one when they are being hit.
- visual effect - many small flames as you see on mobspawners
- Produces a blue splash potion effect and sound.
- Begins playing music (specify
@GOLD_RECORD- default is a random pick from these two).
- Produces smoke (specify a direction, eg.
@SELF- default is a random direction - see here for list of all directions).
- Produces the particle and sound effect of breaking a block according to the block specified (must specify a block type, eg.
@STONEwill produce a stone-breaking sound effect, and will make stone-block particles).
For basic sound effects, a radius may be specified (eg.
@10). For sound effects which already include a data value, a radius may be specified with a slash (eg.
The following parameters are deprecated (they still work but are not recommended):
"Exception" parameters which are parameters dedicated to excluding a variable from a list. These include: toolexcept, worldexcept, regionexcept, permissionexcept, permissiongroups, & permissiongroupsexcept. Use their non-excepting variants instead; you can specify something to be negated simply by adding "-" in front of the variable. (e.g. tool: [ANY_ITEM, -DIAMOND])
The "exclusive" parameter has been removed in favor of "flags: UNIQUE".
The "action" parameter has been entirely replaced by "trigger" - it's recommended to replace every instance of "action" within your drops files with "trigger".