This repository has been archived by the owner on Apr 3, 2024. It is now read-only.
Object Types
1cec0ld edited this page Jan 8, 2013
·
8 revisions
You see {entity}
, {item}
, {loc}
and other placeholders like these, but what do they mean? This list should help narrow down how each is used, found, and made into another.
Both {entity}
and {player}
have similar uses, and are some of the most used objects in routines and conditional checks.
attacker
target
entity
shooter
tamer
combustor
projectile
player
-
playernamed_(name)
- A specific player, allows for referencing fake players as well. -
{entity}_target
- The entity a mob is currently trying to follow, either to damage or breed. -
{entity}_killer
- The last entity that killed a player. -
{entity}_owner
- The player that owns a wolf or ocelot. -
{entity}_passenger
- The entity riding in a vehicle, such as a minecart or boat. -
{entity}_vehicle
- The vehicle that an entity is riding in, such as a minecart or boat. -
it
- refers to the entity selected in a Nearby Routine. -
spawned
- refers to the entity created when a Spawn Routine is used. -
sender
- only applicable in the Command Event. - Any Entity or Parent Group listed here
Another common object, not to be confused with {material}
. Details Here. {item}
is more commonly used, however. It typically relies on the entity that has it in its inventory.
{entity}_held
{entity}_wielded
{entity}_helmet
{entity}_chestplate
{entity}_leggings
{entity}_boots
{inventory}_item({slot num})
-
item
- applies to the following events only: PrepareEnchant, Enchant, Interact, PickUpItem, DropItem.
Only refers to blocks in the map, not in an inventory.
-
{entity}_blocktarget
- Gets the block the crosshairs are targeting. -
interact_block
- Only usable in the Interact Event. -
{world}_block( {x} , {y} , {z} )
- Give the block at the x , y , z location entered. -
{entity}_block
- Gets the block where the entity feet are located.
Refers to a certain spot in the map, usually specified by coordinates.
-
{block}
- Use a {block} object and you will get the {location} where it is. -
{entity}
- Any of the above {entity} objects will also give the {location} of its feet. -
{world}_loc( {x} , {y} , {z} )
- When a specified coordinate location in a certain world is desired.
Refers to a chunk, as a minecraft-defined group of 16x16x256 blocks.
-
{location}_chunk
- The current chunk of any {location} given. - Note: You cannot currently select another chunk relative to the current one, only try moving the {location} by 16-x or 16-z, and working with the newly selected chunk.