Repository navigation
Oxygen 0.2.2
Added
- The Context panel can fill every query the preview has no value for (0, 1 or an empty string) in one step, clear
them, and nudge or scale every number set for a query at once, as it already could for variables. - When a query has no value in the preview, the Problems panel says why: it needs an entity, the game can't run
it in particle Molang, or it returns a struct to assign to a variable.
Changed
Measured in the game with new tests in the test pack (t66–t80, e13–e31):
- Queries for world generation or tags (
q.heightmap,q.above_top_solid,q.noise, the biome tags,
q.any_tag) are load errors, as in the game, and their field uses its default. Completions no longer offer them. - Names with more dots (
v.a.b) are structs:v.c = v.acopies every member, readingv.agives 0, and setting
a member replaces a numberv.aheld.??on a member and temp members are flagged as warnings, as the game
logs them, and still run. - Bone queries assigned to a variable fill the struct with zeros, as the game does in particles, where they never
find a bone. Used any other way they're a load error. q.life_timeandq.delta_timeread 0 in particles.- An event's
pre_effect_expressionruns after the spawned effect'screation_expression. loophas no 1,024 cap, and a fractional count rounds up.<,>,+and the other numeric operators on a string are load errors.- An assignment has a value:
v.a = (v.b = 3)sets both. - Children of a particle's events on an entity appear where the game puts them:
emitter_boundchildren at the
emitter,emitterchildren at the particle (at the emitter when the parent keeps its particles in local space). emitter_local_spacewith rotation but no position is ignored, as the game rejects it.bind_to_actor: falseeffects use the world's axes.