User Tools

Site Tools


actions:action_types:shoot_projectile_from_item

minecraft:shoot_projectile_from_item

The minecraft:shoot_projectile_from_item action shoots a projectile as defined by the minecraft:projectile item component using a certain power and uncertainty. This action is unsuccessful if the item stack from the context does not have the minecraft:projectile item component or if no entity was created.

Fields

Name Description Type Default Value
position The position to target. An action context parameter
power The power to give the projectile. A float
uncertainty How much the projectile may divert from its original trajectory. A float

Example

{
  "type": "minecraft:shoot_projectile_from_item",
  "position": "target",
  "power": 1.375,
  "uncertainty": 3.0
}
actions/action_types/shoot_projectile_from_item.txt · Last modified: 2024/05/06 17:01 by errorcraft