//bridge-file-version: #104
{
	"format_version": "1.16.200",
	"minecraft:block": {
		"description": {
			"identifier": "korboncao:lucky_block"
		},
		"components": {
			"minecraft:flammable": {
				"flame_odds": 0,
				"burn_odds": 0
			},
			"minecraft:on_player_destroyed": {
				"event": "outcomes",
				"target": "self"
			},
			"minecraft:loot": "loot_tables/blocks/luckyblockair.json",
			"minecraft:destroy_time": 0.4,
			"minecraft:explosion_resistance": 100,
			"minecraft:material_instances": {
				"*": {
					"texture": "lucky_block",
					"render_method": "opaque"
				}
			},
			"minecraft:geometry": "geometry.lucky_block"
		},
		"events": {
			"outcomes": {
				"randomize": [
					{
						"set_block": {
							"block_type": "minecraft:obsidian"
						},
						"weight": 3
					},
					{
						"run_command": {
							"command": [
								"summon lightning_bolt ~~~"
							],
							"target": "self"
						},
						"weight": 6
					},
					{
						"spawn_loot": {
							"table": "loot_tables/blocks/lucky_block.json"
						},
						"weight": 500
					},
					{
						"set_block": {
							"block_type": "minecraft:diamond_block"
						},
						"weight": 2
					},
					{
						"run_command": {
							"command": [
								"summon zombie ~~~",
								"summon zombie ~~~",
								"summon zombie ~~~",
								"summon zombie ~~~",
								"summon zombie ~~~",
								"summon zombie ~~~",
								"summon zombie ~~~",
								"summon zombie ~~~",
								"summon zombie ~~~",
								"summon zombie ~~~",
								"effect @p slowness 10 1"
							],
							"target": "self"
						},
						"weight": 4
					},
					{
						"run_command": {
							"command": [
								"summon wither ~~~"
							],
							"target": "self"
						},
						"weight": 1
					},
					{
						"run_command": {
							"command": [
								"structure load luckypyramid ~-2~~-2",
								"tp @p ~3~~3"
							],
							"target": "self"
						},
						"weight": 3
					},
					{
						"run_command": {
							"command": [
								"structure load luckyanvilcage ~-2~~-2",
								"tp @p ~0~~0"
							],
							"target": "self"
						},
						"weight": 4
					},
					{
						"run_command": {
							"command": [
								"structure load luckylavapit ~-2~-14~-2",
								"tp @p ~0~~0"
							],
							"target": "self"
						},
						"weight": 3
					},
					{
						"run_command": {
							"target": "self",
							"command": [
								"function spidertrap"
							]
						},
						"weight": 4
					},
					{
						"run_command": {
							"command": [
								"effect @p speed 30 2 true"
							],
							"target": "self"
						},
						"weight": 5
					},
					{
						"run_command": {
							"command": [
								"effect @p poison 15 2 true"
							],
							"target": "self"
						},
						"weight": 3
					},
					{
						"run_command": {
							"command": [
								"summon lightning_bolt ~~~",
								"summon creeper ~~~"
							],
							"target": "self"
						},
						"weight": 2
					},
					{
						"run_command": {
							"command": [
								"function witch"
							],
							"target": "self"
						},
						"weight": 3
					},
					{
						"run_command": {
							"command": [
								"function tnttraplarge"
							],
							"target": "self"
						},
						"weight": 3
					},
					{
						"run_command": {
							"command": [
								"summon slime ~~~",
								"summon slime ~~~",
								"summon slime ~~~",
								"function slime"
							],
							"target": "self"
						},
						"weight": 2
					},
					{
						"weight": 1,
						"run_command": {
							"command": [
								"structure load herochest ~~~",
								"playsound random.levelup @p",
								"particle minecraft:totem_particle ~ ~1 ~"
							]
						}
					},
					{
						"run_command": {
							"command": [
								"structure load luckychest1 ~~~",
								"particle minecraft:crop_growth_emitter ~~~"
							],
							"target": "self"
						},
						"weight": 3
					},
					{
						"run_command": {
							"command": [
								"structure load luckywoolstack ~~~"
							],
							"target": "self"
						},
						"weight": 4
					},
					{
						"run_command": {
							"command": [
								"structure load luckystack ~~~",
								"summon lightning_bolt ~ 6 ~",
								"function luckyfireworks"
							],
							"target": "self"
						},
						"weight": 3
					},
					{
						"run_command": {
							"command": [
								"summon xp_bottle ~ ~1 ~3",
								"summon xp_bottle ~ ~1 ~3",
								"summon xp_bottle ~ ~1 ~-3",
								"summon xp_bottle ~ ~1 ~-3",
								"summon xp_bottle ~4 ~1 ~",
								"summon xp_bottle ~4 ~1 ~",
								"summon xp_bottle ~-4 ~1 ~",
								"summon xp_bottle ~-4 ~1 ~",
								"summon xp_bottle ~ ~1 ~-6",
								"summon xp_bottle ~ ~1 ~-6",
								"summon xp_bottle ~7 ~1 ~",
								"summon xp_bottle ~7 ~1 ~"
							],
							"target": "self"
						},
						"weight": 3
					},
					{
						"run_command": {
							"command": [
								"structure load luckyfort ~~~",
								"tp @p ~3~~3"
							]
						},
						"weight": 3
					},
					{
						"run_command": {
							"command": [
								"structure load luckylavacage ~~~",
								"tp @p ~2~~2",
								"fill ~2 ~5 ~2 ~2 ~5 ~2 lava"
							]
						},
						"weight": 2
					},
					{
						"run_command": {
							"command": [
								"structure load luckysheep ~~~"
							]
						},
						"weight": 2
					},
					{
						"run_command": {
							"command": [
								"structure load luckyrobert ~~~",
								"effect @p slowness 10 1",
								"effect @e[type=zombie,name=§cRobert] speed 1000 3 true"
							]
						},
						"weight": 2
					},
					{
						"run_command": {
							"command": [
								"structure load luckywatertrap ~~~",
								"tp @p ~0.5~1~1",
								"effect @p mining_fatigue 45 1"
							]
						},
						"weight": 2
					}
				]
			}
		}
	}
}