Mechanics
Other WikisDonate
  • Home
  • Examples
  • Placeholders
  • ⚙️Mechanics
    • Action Bar
    • Boss Bar
    • Command
    • Custom Sound
    • Damage
    • Drop Item
    • Fake Item
    • Firework
    • Flinch
    • Ignite
    • Leap
    • Lightning
    • Message
    • Particle
    • Potion
    • Push
    • Sculk Bloom
    • Sculk Shriek
    • Sound
    • Title
    • Warden Disturbance
  • 🎯Targeters
    • ServerPlayers
    • Shapes
      • Box
      • Scatter
    • Source
    • Target
    • World
  • ❔Conditions
    • Biome
    • Custom Biome
    • Entity Type
    • Gliding
    • Has Permission
    • InCone
    • Light Level
    • Material Category
    • On Ground
    • Range
    • Riding
    • Sneaking
    • Sprinting
  • 🔌Integrations
    • 🌊GeyserMC
    • 🌎MechanicsEverywhere
    • 👽MythicMobs
    • 🔫WeaponMechanics
Powered by GitBook
On this page
  1. Conditions

InCone

Last updated 1 year ago

The InCone condition lets you check if entities are in a cone.

Argument
Description
Default Value

angle

The angle, in degrees, of the cone.

0

direction

~0 0 1 (forward)

In the diagram above, the angle argument is the same thing as θ\thetaθ.

The InCone argument defines an infinite cone. This means, that when you want to want to specify the distance (or the h hh argument in the diagram above), you should use the Range condition as well.

Mechanics:
  - "CustomSound{sound=shoot.rpg7.loud, volume=6, noise=0.1}"
  - "Damage{damage=10.0} @World{} ?Range{max=4} ?InCone{direction=~0 0 -1, angle=28}"

The direction vector of the cone. Uses the serializer.

This example creates an RPG_7 effect in Shoot.Mechanics:

❔
back blast
Vector
A cone diagram