Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "type": "object",
- "properties": {
- "thought": {
- "type": "string",
- "description": "Write a brief sentence considering the situation and what action to do next."
- },
- "action": {
- "type": "object",
- "anyOf": [
- {
- "type": "object",
- "description": "Moves the player with WASD.",
- "properties": {
- "action_id": {
- "const": "move"
- },
- "direction": {
- "type": "string",
- "enum": [
- "forward",
- "backward",
- "left",
- "right"
- ]
- },
- "distance": {
- "type": "integer",
- "description": "Distance to move in half-blocks. Distance must be greater than zero."
- }
- },
- "required": [
- "action_id",
- "direction",
- "distance"
- ]
- },
- {
- "type": "object",
- "description": "Move the camera view with the mouse",
- "properties": {
- "action_id": {
- "const": "look"
- },
- "rotation_direction": {
- "type": "string",
- "enum": [
- "up",
- "down",
- "left",
- "right"
- ],
- "description": "Direction to look."
- },
- "rotation_degrees": {
- "type": "integer",
- "description": "Distance to rotate the view in degrees. Distance must be greater than zero."
- }
- },
- "required": [
- "action_id",
- "rotation_direction",
- "rotation_degrees"
- ]
- },
- {
- "type": "object",
- "description": "Place whatever item is in the players hand where the player is looking. Only works if player is currently holding an item. Does not work for tools.",
- "properties": {
- "action_id": {
- "const": "place_item"
- }
- },
- "required": [
- "action_id"
- ]
- },
- {
- "type": "object",
- "description": "Destroy whatever block the player is looking at (at close range). Use a tool appropriate for the block if possible.",
- "properties": {
- "action_id": {
- "const": "attack_block"
- }
- },
- "required": [
- "action_id"
- ]
- },
- {
- "type": "object",
- "description": "Selects the item to the left or right of the selected item in the hotbar at the bottom of the screen.",
- "properties": {
- "action_id": {
- "const": "hotbar"
- },
- "selection": {
- "type": "string",
- "enum": [
- "left",
- "right"
- ],
- "description": "Select the item to the left or right of the currently selected item."
- }
- },
- "required": [
- "action_id",
- "selection"
- ]
- },
- {
- "type": "object",
- "description": "Send a chat message in the game to other players on the server",
- "properties": {
- "action_id": {
- "const": "chat"
- },
- "message": {
- "type": "string"
- }
- },
- "required": [
- "action_id",
- "message"
- ]
- }
- ]
- }
- },
- "required": [
- "thought",
- "action"
- ]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement