Skip to content
This repository was archived by the owner on Jun 8, 2022. It is now read-only.

Predicates

Michael Weatherby edited this page Dec 30, 2019 · 4 revisions

DU adds the following predicates for your convenience:

block/

  • is_emitting_signal (outputs true if block is emitting a redstone signal)
  • is_waterlogged

entity/

  • is_baby
  • is_invul_tick
  • is_on_fire
  • is_sneaking
  • is_sprinting
  • is_swimming

random/

  • 0.1
  • 0.2
  • 0.3
  • 0.4
  • 0.5
  • 0.6
  • 0.7
  • 0.8
  • 0.9

world/

  • overworld
  • nether
  • end
  • is_clear
  • is_raining
  • is_thundering

location/

  • light/level_
  • structures/
  • biomes/
  • biome_type/badlands
  • biome_type/desert
  • biome_type/jungle
  • biome_type/mountians
  • biome_type/mushroom_field
  • biome_type/ocean
  • biome_type/plains
  • biome_type/savanna
  • biome_type/taiga
  • biome_type/the_end

Relevant Code Locations:

Clone this wiki locally