{
	"type": "origins:multiple",
	"font_of_magic_charges_max": {
		"type": "origins:resource",
		"min": 1,
		"max": 4,
		"start_value": 1
	},
	"font_of_magic_charges": {
		"type": "origins:resource",
		"min": 0,
		"max": 7,
		"start_value": 1,
		"hud_render": {
			"sprite_location": "origins:textures/gui/community/huang/resource_bar_01.png",
			"bar_index": 3,
			"order": 0,
			"condition": {
				"type": "origins:resource",
				"resource": "drpg:armor_restriction",
				"comparison": "==",
				"compare_to": 0
			}
		}
	},
	"font_of_magic_charges_locked": {
		"type": "origins:resource",
		"min": 0,
		"max": 7,
		"start_value": 7,
		"hud_render": {
			"sprite_location": "origins:textures/gui/community/spiderkolo/resource_bar_01.png",
			"bar_index": 23,
			"order": 0,
			"condition": {
				"type": "origins:resource",
				"resource": "drpg:armor_restriction",
				"comparison": ">",
				"compare_to": 0
			}
		}
	},
	"font_of_magic_restore_on_sleep": {
		"type": "origins:action_on_wake_up",
		"entity_action": {
			"type": "origins:side",
			"action": {
				"type": "origins:modify_resource",
				"modifier": {
					"operation": "set_total",
					"value": 0,
					"resource": "drpg:sorcerer_font_of_magic_charges_max"
				},
				"resource": "drpg:sorcerer_font_of_magic_charges"
			},
			"side": "server"
		}
	},
	"font_of_magic_active": {
		"type": "origins:active_self",
		"cooldown": 120,
		"entity_action": {
			"type": "origins:and",
			"actions": [
				{
					"type": "origins:delay",
					"ticks": 1,
					"action": {
						"type": "origins:change_resource",
						"resource": "drpg:sorcerer_font_of_magic_charges",
						"change": -1
					}
				},
				{
					"type": "origins:play_sound",
					"sound": "irons_spellbooks:spell.sonic_boom.cast",
					"pitch": 1.5
				}
			]
		},
		"condition": {
			"type": "origins:and",
			"conditions": [
				{
					"type": "origins:resource",
					"resource": "drpg:sorcerer_font_of_magic_charges",
					"comparison": ">",
					"compare_to": 0
				},
				{
					"type": "origins:resource",
					"resource": "drpg:armor_restriction",
					"comparison": "==",
					"compare_to": 0
				}
			]
		},
		"hud_render": {
			"should_render": true,
			"inverted": true,
			"bar_index": 2,
			"order": 1
		}
	},
	"font_of_magic_effect_player_model": {
		"type": "origins:model_color",
		"red": 0.8,
		"green": 0.8,
		"condition": {
			"type": "origins:resource",
			"resource": "drpg:sorcerer_font_of_magic_active",
			"comparison": ">",
			"compare_to": 0
		}
	},
	"font_of_magic_effect_particles": {
		"type": "origins:particle",
		"frequency": 40,
		"particle": {
			"type": "alexscaves:azure_shield_lightning",
			"params": ""
		},
		"condition": {
			"type": "origins:resource",
			"resource": "drpg:sorcerer_font_of_magic_active",
			"comparison": ">",
			"compare_to": 0
		}
	},
	"font_of_magic_effect_attributes": {
		"type": "origins:conditioned_attribute",
		"modifiers": [
			{
				"attribute": "irons_spellbooks:spell_power",
				"operation": "multiply_base",
				"value": 0.1
			},
			{
				"attribute": "irons_spellbooks:cooldown_reduction",
				"operation": "multiply_base",
				"value": 0.5
			},
			{
				"attribute": "irons_spellbooks:cast_time_reduction",
				"operation": "multiply_base",
				"value": 0.5
			},
			{
				"attribute": "irons_spellbooks:mana_regen",
				"operation": "multiply_total",
				"value": 50
			}
		],
		"tick_rate": 10,
		"condition": {
			"type": "origins:resource",
			"resource": "drpg:sorcerer_font_of_magic_active",
			"comparison": ">",
			"compare_to": 0
		}
	},
	"font_of_magic_no_sleep": {
		"type": "origins:prevent_sleep",
		"message": "You're channeling too much power to sleep now!",
		"condition": {
			"type": "origins:resource",
			"resource": "drpg:sorcerer_font_of_magic_active",
			"comparison": ">",
			"compare_to": 0
		}
	}
}