{
	"settings": {
		"is_borderless": false,
		"is_cloneable": true,
		"is_initial_spawning_enabled": true,
		"is_void_button_visible": true,
		"void_filter": []
	},
	"elements": {
		"Player": {
			"display": [
				{
					"type": "icon",
					"name": "user",
					"size": 18,
					"color": "#439CB2"
				},
				" [b]Player[/b]",
				{
					"type": "progress",
					"value": {
						"type": "bind",
						"target": {
							"id": "Player",
							"name": "hp"
						}
					},
					"color": "#439CB2",
					"width": 70,
					"height": 8
				}
			],
			"class": "cyan",
			"custom_props": {
				"hp": {
					"type": "number",
					"value": 100,
					"events": {
						"min": {
							"value": 0,
							"is_included": true,
							"do": [
								"Ghost",
								{
									"type": "remove",
									"target": {
										"id": "Player"
									}
								}
							]
						},
						"max": {
							"value": 100,
							"is_included": true
						}
					}
				}
			},
			"description": {
				"value": [
					"[center]",
					{
						"type": "icon",
						"name": "heart",
						"size": 16,
						"color": "#439CB2"
					},
					" Health: ",
					{
						"type": "bind",
						"target": {
							"id": "Player",
							"name": "hp",
							"precision": 0
						}
					},
					"/ 100[/center]",
					{
						"type": "progress",
						"value": {
							"type": "bind",
							"target": {
								"id": "Player",
								"name": "hp"
							}
						},
						"color": "#439CB2",
						"width": 200,
						"height": 12
					},
					"\nReact with a Slime to see the health drop."
				]
			}
		},
		"Ghost": {
			"display": [
				{
					"type": "icon",
					"name": "ghost",
					"size": 18,
					"color": "#A62872"
				},
				" Ghost"
			],
			"class": "magic",
			"description": {
				"value": "The lingering spirit of a fallen Player."
			}
		},
		"Slime": {
			"is_static": true,
			"display": [
				{
					"type": "icon",
					"name": "droplet",
					"size": 16,
					"color": "#69A264"
				},
				" Slime",
				{
					"type": "progress",
					"value": {
						"type": "bind",
						"target": {
							"id": "Slime",
							"name": "hp"
						}
					},
					"color": "#69A264",
					"width": 150,
					"height": 6
				}
			],
			"class": "green",
			"custom_props": {
				"hp": {
					"type": "number",
					"value": 7,
					"events": {
						"min": {
							"value": 0,
							"is_included": true,
							"do": [
								{
								"type": "set",
								"target": {
									"id": "Slime",
									"name": "hp"
								},
								"value": 7
							},
							{
								"type": "set",
								"target": {
									"id": "Slime",
									"name": "drops_needed"
								},
								"value": {
									"type": "computed",
									"expression": "g('Slime', 'drops_needed') - 1"
								}
							},
							{
								"type": "if",
								"condition": "g('Slime', 'drops_needed') <= 0",
								"then": [
									"Mystery Box",
									{
										"type": "set",
										"target": {
											"id": "Slime",
											"name": "drops_needed"
										},
										"value": 5
									}
								],
								"else": [
									"Diamond"
								]
								}
							]
						},
						"max": {
							"value": 7,
							"is_included": true
						}
					}
				},
				"drops_needed": {
					"type": "number",
					"value": 5,
					"events": {
						"min": {
							"value": 0,
							"is_included": true
						},
						"max": {
							"value": 5,
							"is_included": true
						}
					}
				}
			},
			"description": {
				"value": [
					"A common creature of these glowing plains. It emits a constant sickly squelch as it leaves a slimy trail behind.\n\n",
					{
						"type": "icon",
						"name": "heart",
						"size": 16,
						"color": "#69A264"
					},
					" Health: ",
					{
						"type": "bind",
						"target": {
							"id": "Slime",
							"name": "hp",
							"precision": 0
						}
					},
					"/7\n",
					{
						"type": "progress",
						"value": {
							"type": "bind",
							"target": {
								"id": "Slime",
								"name": "hp"
							}
						},
						"color": "#69A264",
						"width": 120,
						"height": 8
					},
					"\nDamage: 15\nSpeed: 1\nDefense: 0\n\n",
					{
						"type": "icon",
						"name": "gift",
						"size": 16,
						"color": "#69A264"
					},
					" Drop: Mystery Box [color=#69A264][Slay ",
					{
						"type": "bind",
						"target": {
							"id": "Slime",
							"name": "drops_needed",
							"precision": 0
						}
					},
					" more to open][/color]\n",
					{
						"type": "progress",
						"value": {
							"type": "bind",
							"target": {
								"id": "Slime",
								"name": "drops_needed"
							}
						},
						"color": "#69A264",
						"width": 120,
						"height": 6
					}
				]
			}
		},
		"Diamond": {
			"display": [
				{
					"type": "icon",
					"name": "gem",
					"size": 18,
					"color": "#439CB2"
				},
				" Diamond"
			],
			"class": "cyan",
			"description": {
				"value": "A shiny rare gem that gleams with brilliance. It may be used to enhance weapons, imbuing them with more attack damage.\n\nImbue Effect: [color=#8BC34A]+40%[/color] attack damage.\n\n[color=#439CB2][b]Rare Material[/b][/color]"
			}
		},
		"Fire Sword": {
			"display": [
				{
					"type": "icon",
					"name": "sword",
					"size": 18,
					"color": "#E8968B"
				},
				" Fire Sword"
			],
			"class": "fire-inverted",
			"custom_props": {
				"durability": {
					"type": "number",
					"value": 50,
					"events": {
						"min": {
							"value": 0,
							"is_included": true,
							"do": [
								"Broken Sword",
								{
									"type": "remove",
									"target": {
										"id": "Fire Sword"
									}
								}
							]
						},
						"max": {
							"value": 50,
							"is_included": true
						}
					}
				}
			},
			"description": {
				"color": {
					"type": "RGBA",
					"red": 209,
					"green": 69,
					"blue": 51,
					"alpha": 1.0
				},
				"value": [
					"A sword forged in the heart of a volcano.\nIt radiates intense heat.\n\n",
					{
						"type": "icon",
						"name": "flame",
						"size": 16,
						"color": "#E8968B"
					},
					" Damage: [color=#E8968B]15 Fire[/color]\nDurability: ",
					{
						"type": "bind",
						"target": {
							"id": "Fire Sword",
							"name": "durability",
							"precision": 0
						}
					},
					" / 50\n",
					{
						"type": "progress",
						"value": {
							"type": "bind",
							"target": {
								"id": "Fire Sword",
								"name": "durability"
							}
						},
						"color": "#E8968B",
						"width": 150,
						"height": 10
					},
					"\n[color=#E8968B]Hit a Slime to lose durability. Use an Anvil to repair.[/color]"
				]
			}
		},
		"Broken Sword": {
			"display": [
				{
					"type": "icon",
					"name": "sword",
					"size": 18,
					"color": "#555555"
				},
				" Broken Sword"
			],
			"class": "iron",
			"description": {
				"value": "A ruined blade. It has lost its fire, but maybe an Anvil can reforge it."
			}
		},
		"Anvil": {
			"display": [
				{
					"type": "icon",
					"name": "anvil",
					"size": 18,
					"color": "#989898"
				},
				" Anvil"
			],
			"class": "default",
			"description": {
				"value": "A heavy iron anvil. \n\n[color=#8BC34A]Can repair weapons.[/color]"
			}
		},
		"Mystery Box": {
			"display": [
				{
					"type": "icon",
					"name": "gift",
					"size": 18,
					"color": "#989898"
				},
				" Mystery Box"
			],
			"class": "default",
			"description": {
				"value": "A reward for slaying 5 Slimes. \n[color=#E656FF]React with Player to open![/color]"
			}
		}
	},
	"classes": {
		"default": {
			"background_color": {
				"type": "RGBA",
				"red": 50,
				"green": 50,
				"blue": 50,
				"alpha": 1.0
			},
			"color": {
				"type": "RGBA",
				"red": 255,
				"green": 255,
				"blue": 255,
				"alpha": 1.0
			}
		},
		"green": {
			"background_color": {
				"type": "RGBA",
				"red": 170,
				"green": 224,
				"blue": 161,
				"alpha": 1.0
			},
			"color": {
				"type": "RGBA",
				"red": 40,
				"green": 100,
				"blue": 40,
				"alpha": 1.0
			}
		},
		"cyan": {
			"background_color": {
				"type": "RGBA",
				"red": 109,
				"green": 213,
				"blue": 237,
				"alpha": 1.0
			},
			"color": {
				"type": "RGBA",
				"red": 25,
				"green": 100,
				"blue": 120,
				"alpha": 1.0
			}
		},
		"red": {
			"background_color": {
				"type": "RGBA",
				"red": 229,
				"green": 115,
				"blue": 115,
				"alpha": 1.0
			},
			"color": {
				"type": "RGBA",
				"red": 100,
				"green": 20,
				"blue": 20,
				"alpha": 1.0
			}
		},
		"fire-inverted": {
			"background_color": {
				"type": "RGBA",
				"red": 209,
				"green": 69,
				"blue": 51,
				"alpha": 0.9
			},
			"color": {
				"type": "RGB",
				"red": 255,
				"green": 231,
				"blue": 228
			}
		},
		"iron": {
			"background_color": {
				"type": "RGBA",
				"red": 223,
				"green": 220,
				"blue": 214,
				"alpha": 0.9
			},
			"color": {
				"type": "RGB",
				"red": 71,
				"green": 43,
				"blue": 29
			}
		},
		"magic": {
			"background_color": {
				"type": "RGBA",
				"red": 255,
				"green": 228,
				"blue": 244,
				"alpha": 0.9
			},
			"color": {
				"type": "RGB",
				"red": 166,
				"green": 40,
				"blue": 114
			}
		}
	},
	"events": {
		"on_start": [
			"Player",
			"Slime",
			"Fire Sword",
			"Anvil"
		]
	},
	"reactions": [
		{
			"reagents": [
				"Player",
				"Slime"
			],
			"result": [
				"Player",
				{
					"type": "set",
					"target": {
						"id": "Player",
						"name": "hp"
					},
					"value": {
						"type": "computed",
						"expression": "g('Player', 'hp') - 15"
					}
				}
			]
		},
		{
			"reagents": [
				"Fire Sword",
				"Slime"
			],
			"result": [
				"Fire Sword",
				{
					"type": "set",
					"target": {
						"id": "Fire Sword",
						"name": "durability"
					},
					"value": {
						"type": "computed",
						"expression": "g('Fire Sword', 'durability') - 1"
					}
				},
				{
					"type": "set",
					"target": {
						"id": "Slime",
						"name": "hp"
					},
					"value": {
						"type": "computed",
						"expression": "g('Slime', 'hp') - 4"
					}
				}
			]
		},
		{
			"reagents": [
				"Broken Sword",
				"Anvil"
			],
			"result": [
				"Anvil",
				"Fire Sword",
				{
					"type": "remove",
					"target": {
						"id": "Broken Sword"
					}
				},
				{
					"type": "set",
					"target": {
						"id": "Fire Sword",
						"name": "durability"
					},
					"value": 50
				}
			]
		},
		{
			"reagents": [
				"Fire Sword",
				"Anvil"
			],
			"result": [
				"Fire Sword",
				"Anvil",
				{
					"type": "set",
					"target": {
						"id": "Fire Sword",
						"name": "durability"
					},
					"value": 50
				}
			]
		},
		{
			"reagents": [
				"Mystery Box",
				"Player"
			],
			"spawn_style": "short",
			"result": [
				"Player",
				{
					"type": "remove",
					"target": {
						"id": "Mystery Box"
					}
				},
				"Diamond",
				"Diamond",
				"Diamond",
				"Diamond",
				"Diamond"
			]
		}
	]
}
