Team
The arc:team condition type checks if a player is on a specific scoreboard team.
Parametersβ
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
team | string | β Required | - | The team name to check. |
Exampleβ
The following example gives players on the "blue" team a blue wool when they break a block.
{
"holder": {
"type": "arc:player",
"id": "arc:player"
},
"type": "arc:on_break_block",
"conditions": [
{
"type": "arc:team",
"team": "blue"
}
],
"rewards": [
{
"type": "arc:item",
"item": { "id": "minecraft:blue_wool" }
}
]
}
Compatible Action Typesβ
π On Advancement
The arc:on_advancement action type is triggered when a player receives an advancement.
βοΈ On Break Block
The arc:onbreakblock action type is triggered when a player breaks a block.
π On Breed Animal
The arc:onbreedanimal action type is triggered when a player breeds two animals.
π§ͺ On Brew Potion
The arc:onbrewpotion action type is triggered when a player brews a potion.
π οΈ On Craft Item
The arc:oncraftitem action type is triggered when a player crafts an item.
π¦Ά On Crouch
The arc:on_crouch action type is triggered when a player crouches (sneaks).
π On Death
The arc:on_death action type is triggered when the player dies.
π₯€ On Drink
The arc:on_drink action type is triggered when a player drinks an item (e.g., potion, milk bucket, etc.).
πͺ£ On Drop Item
The arc:ondropitem action type is triggered when a player drops an item.
π½οΈ On Eat
The arc:on_eat action type is triggered when a player eats an item.
π On Effect Added
The arc:oneffectadded action type is triggered when a player receives a new effect.
πͺ On Elytra Fly
The arc:onelytrafly action type is triggered when a player is flying with an elytra.
β¨ On Enchant Item
The arc:onenchantitem action type is triggered when a player enchants an item.
π£ On Fished Up Item
The arc:onfishedup_item action type is triggered when a player fishes up an item.
βοΈ On Get Attack Speed
The arc:getattackspeed action type is used to retrieve the attack speed of a player.
β‘ On Get Destroy Speed
The arc:ongetdestroy_speed action type is triggered when a player is determining how quickly they can break a block. This action type allows you to modify the destroy speed based on various conditions.
π€ On Get Hurt
The arc:ongethurt action type is triggered when a player takes damage.
βοΈ On Grind Item
The arc:ongrinditem action type is triggered when a player grinds an item.
πΎ On Harvest Crop
The arc:onharvestcrop action type is triggered when a player harvests a crop.
π On Horse Ride
The arc:onhorseride action type is triggered when a player is riding a horse.
π‘οΈ On Hurt Entity
The arc:onhurtentity action type is triggered when a player hurts an entity.
π‘οΈ On Hurt Item
The arc:onhurtitem action type is triggered when a player hurts/damages an item.
π©Έ On Hurt Player
The arc:onhurtplayer action type is triggered when a player hurts another player.
π±οΈ On Interact Block
The arc:oninteractblock action type is triggered when a player interacts with a block, such as right-clicking it.
π±οΈ On Interact Entity
The arc:oninteractentity action type is triggered when a player interacts with an entity, such as right-clicking it.
π On Kill Entity
The arc:onkillentity action type is triggered when a player kills an entity.
π§± On Place Block
The arc:onplaceblock action type is triggered when a player places a block.
π± On Plant Crop
The arc:onplantcrop action type is triggered when a player plants a crop.
π£ On Rod Reel In
The arc:onrodreel_in action type is triggered when a player reels in a fishing rod.
πΉ On Shoot Projectile
The arc:onshootprojectile action type is triggered when a player shoots a projectile, such as an arrow or a snowball.
π₯ On Smelt Item
The arc:onsmeltitem action type is triggered when a player takes an item out of a furnace, smoker, or blast furnace. Just like experience orbs in vanilla Minecraft, this action also counts the items that are taken out with a hopper. As long as the player takes out one of the smelted items, the action will be triggered. The action is called for every item smelted individually, regardless of how many are taken out at once.
πββοΈ On Sprint
The arc:on_sprint action type is triggered when a player is sprinting.
π¦Ά On Start Crouching
The arc:oncrouchstart action type is triggered when a player starts crouching (sneaking).
πͺ On Start Elytra Flying
The arc:onelytrafly_start action type is triggered when a player starts flying with an elytra.
π On Start Horse Riding
The arc:onhorseride_start action type is triggered when a player starts riding a horse.
πββοΈ On Start Sprinting
The arc:onsprintstart action type is triggered when a player starts sprinting.
πββοΈ On Start Swimming
The arc:onswimstart action type is triggered when a player starts swimming.
πΆββοΈ On Start Walking
The arc:onwalkstart action type is triggered when a player starts walking.
π¦Ά On Stop Crouching
The arc:oncrouchstop action type is triggered when a player stops crouching (sneaking).
πͺ On Stop Elytra Flying
The arc:onelytrafly_stop action type is triggered when a player stops flying with an elytra.
π On Stop Horse Riding
The arc:onhorseride_stop action type is triggered when a player stops riding a horse.
πββοΈ On Stop Sprinting
The arc:onsprintstop action type is triggered when a player stops sprinting.
πββοΈ On Stop Swimming
The arc:onswimstop action type is triggered when a player stops swimming.
πΆββοΈ On Stop Walking
The arc:onwalkstop action type is triggered when a player stops walking.
πͺ΅ On Strip Log
The arc:onstriplog action type is triggered when a player strips a log or wood block using an axe.
πββοΈ On Swim
The arc:on_swim action type is triggered when a player is swimming.
πΎ On Tame Animal
The arc:ontameanimal action type is triggered when a player tames an animal.
πΉ On Throw Item
The arc:onthrowitem action type is triggered when a player throws an item (e.g. snowball, egg, ender pearl).
βοΈ On Use Anvil
The arc:onuseanvil action type is triggered when a player uses an anvil to repair or rename an item.
π±οΈ On Use Item
The arc:onuseitem action type is triggered when a player uses an item (right-clicks with an item).
πΆββοΈ On Walk
The arc:on_walk action type is triggered when a player is walking.