fix(minecraft): there's no oxygen in minecraft wtf
This commit is contained in:
@@ -6,7 +6,7 @@ export interface ConsciousContextView {
|
||||
}
|
||||
|
||||
export function buildConsciousContextView(ctx: ReflexContextState): ConsciousContextView {
|
||||
const selfSummary = `Position ${String(ctx.self.location)} Health ${ctx.self.health}/20 Food ${ctx.self.food}/20 Oxygen ${ctx.self.oxygen}/20 Holding ${ctx.self.holding ?? 'nothing'}`
|
||||
const selfSummary = `Position ${String(ctx.self.location)} Health ${ctx.self.health}/20 Food ${ctx.self.food}/20 Holding ${ctx.self.holding ?? 'nothing'}`
|
||||
|
||||
const players = ctx.environment.nearbyPlayers.map(p => p.name).join(',')
|
||||
const entities = ctx.environment.nearbyEntities.map(e => e.name).join(',')
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
import type { Vec3 } from 'vec3'
|
||||
|
||||
export interface ReflexSelfState {
|
||||
location: Vec3 | null
|
||||
location: Vec3
|
||||
holding: string | null
|
||||
health: number
|
||||
food: number
|
||||
oxygen: number
|
||||
}
|
||||
|
||||
export interface ReflexEnvironmentState {
|
||||
@@ -53,11 +52,10 @@ export class ReflexContext {
|
||||
this.state = {
|
||||
now: Date.now(),
|
||||
self: {
|
||||
location: null,
|
||||
location: { x: 0, y: 0, z: 0 } as Vec3,
|
||||
holding: null,
|
||||
health: 20,
|
||||
food: 20,
|
||||
oxygen: 20,
|
||||
},
|
||||
environment: {
|
||||
time: 'day',
|
||||
|
||||
@@ -22,7 +22,6 @@ function makeBot() {
|
||||
},
|
||||
health: 20,
|
||||
food: 20,
|
||||
oxygenLevel: 20,
|
||||
heldItem: null,
|
||||
time: { isDay: true },
|
||||
isRaining: false,
|
||||
|
||||
@@ -53,7 +53,6 @@ export class ReflexRuntime {
|
||||
location: entity.position,
|
||||
health: bot.bot.health ?? 0,
|
||||
food: bot.bot.food ?? 0,
|
||||
oxygen: bot.bot.oxygenLevel ?? 0,
|
||||
holding: bot.bot.heldItem?.name ?? null,
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user