Skip to content

Command

KilaBash edited this page May 5, 2025 · 11 revisions

Base Commands

  • /photon particle_editor: open the particle editor.
  • /photon_client clear_particles: remove all photon particles.
  • /photon_client clear_fx_cache: clear cache of photon fx. (you should call it, if you make changes to an existing FX file).

Binding Commands

Use these commands to emit particles to a given position or bind it to an entiy.

prefix: /photon fx fxFile type ... [offset(3*number)] [rotation(3*number)] [scale(3*number)] [delay] [force death] [allow multi] ...

details:

  • fxFile (required) - the resource location of fx file. (e.g. mod_id:filename => assets/mod_id/fx/filename.fx)
  • type(required) - block or entity.
  • offset [default value: 0 0 0] - emitter offset based on basic position in three number.
  • rotation [default value: 0 0 0] - emitter rotation.
  • scale [default value: 1 1 1] - emitter scale.
  • delay [default value: 0] - emitting delay time.
  • force death [default value: false] - whether to remove all particles directly when the bound object invalid or natural death. for example, if false, emitter will notify and wait all particle death when the block invalid. if true, emitter will remove and particles from rendering and ticking immediately when the block invalid.
  • allow multi [default value: false] - Allows multiple identical effects (same effect name) to be bound to a same object.

Binding a Block

format: /photon fx fxFile block position(3*number) [offset(3*number)][rotation(3*number)] [scale(3*number)] [delay] [force death] [allow multi] [check state]

example: /photon fx photon:fire block ~ ~ ~ 0 0 0 0 0 0 1 1 1 0 false false false

details:

  • position (required) - block position in three number.
  • check state - check blockstate same. if false, effect will be invalid when the block change. If true, effect will also be invalid when its states changed. [default value: false]

Binding Entities

format: /photon fx fxFile entity entities(entity selector) [offset(3*number)] [rotation(3*number)] [scale(3*number)] [delay] [force death] [allow multi] [auto rotation]

example: /photon fx photon:fire entity @e[type=minecraft:minecart, distance=..1] 0 0.5 0 0 0 0 1 1 1 0 false false look

details:

  • entities (required) - entities selector as vanilla command.
  • auto rotation (default none) - auto rotate the fx to a given direction.
    • none do not rorate
    • forward forward direction
    • look head looking direction
    • xrot body rotation directyon

Remove Commands

details:

  • force [default value: false] - whether to remove all particles directly when the bound object invalid or natural death. for example, rendering and ticking immediately when the block invalid.
  • location [default value: -] - specify the fx location to remove.

Remove FX from a Block

format: /photon fx remove block position(3*number) [force] [location]

example: /photon fx remove block true

Remove FX from entities

format: /photon fx remove entity entities(entity selector) [force] [location]

example: /photon fx remove entity @e[type=pig]

Clone this wiki locally