Test environment definition

Helpers that build a minecraft:test_environment_definition object, one for each of its types. Where a field takes one, write the helper's call; its name is the type it makes. Click a type to see what it accepts.

AllOf

AllOf
AllOf(definitions)
definitions
list of TestEnvironment

ClockTime

ClockTime
ClockTime(clock, time)
clock
world_clock id
time
int 0..

Difficulty

Difficulty
Difficulty(difficulty)
difficulty
Difficulty

Function

Function
Function(setup?, teardown?)
setupoptional
function id
teardownoptional
function id

GameRules

GameRules
GameRules(rules)
rules
map of game_rule id to any

TimelineAttributes

TimelineAttributes
TimelineAttributes(timelines)
timelines
list of timeline ids

Weather

Weather
Weather(weather)
weather
Weather