local mushroom = {
	{itemid = 11792, position = Position(33615,32678, 12)},
	{itemid = 11792, position = Position(33615,32686, 12)},
	{itemid = 11792, position = Position(33622,32688, 12)},
	{itemid = 11792, position = Position(33614,32677, 12)},
	{itemid = 11792, position = Position(33613,32676, 12)},
	{itemid = 11792, position = Position(33620,32680, 12)},
	{itemid = 11792, position = Position(33624,32689, 12)},
	{itemid = 11792, position = Position(33621,32683, 12)},
	{itemid = 11792, position = Position(33613,32681, 12)},
	{itemid = 11792, position = Position(33623,32676, 12)},
	{itemid = 11791, position = Position(33612,32686, 12)},
	{itemid = 11791, position = Position(33613,32691, 12)},
	{itemid = 11791, position = Position(33616,32678, 12)},
	{itemid = 11791, position = Position(33620,32684, 12)},
	{itemid = 11791, position = Position(33617,32685, 12)},
	{itemid = 11791, position = Position(33616,32686, 12)},
	{itemid = 11791, position = Position(33622,32682, 12)},
	{itemid = 11791, position = Position(33611,32681, 12)},
	{itemid = 11790, position = Position(33614,32690, 12)},
	{itemid = 11790, position = Position(33614,32684, 12)},
	{itemid = 11790, position = Position(33621,32679, 12)},
	{itemid = 11790, position = Position(33612,32679, 12)},
	{itemid = 11790, position = Position(33617,32677, 12)},
	{itemid = 11790, position = Position(33611,32682, 12)},
	{itemid = 11790, position = Position(33612,32683, 12)},
	{itemid = 11790, position = Position(33613,32688, 12)},
	{itemid = 11790, position = Position(33611,32687, 12)},
	{itemid = 11790, position = Position(33622,32681, 12)},
	{itemid = 11790, position = Position(33613,32680, 12)},
	{itemid = 11789, position = Position(33620,32679, 12)},
	{itemid = 11789, position = Position(33620,32687, 12)},
	{itemid = 11789, position = Position(33617,32684, 12)},
	{itemid = 11789, position = Position(33623,32686, 12)},
	{itemid = 11789, position = Position(33621,32686, 12)},
	{itemid = 11789, position = Position(33624,32691, 12)},
	{itemid = 11789, position = Position(33625,32682, 12)},
	{itemid = 11789, position = Position(33624,32685, 12)},
	{itemid = 11788, position = Position(33615,32677, 12)},
	{itemid = 11788, position = Position(33622,32687, 12)},
	{itemid = 11788, position = Position(33624,32688, 12)},
	{itemid = 11788, position = Position(33613,32680, 12)},
	{itemid = 11788, position = Position(33614,32676, 12)},
	{itemid = 11788, position = Position(33621,32680, 12)},
	{itemid = 11788, position = Position(33625,32689, 12)},
	{itemid = 11788, position = Position(33615,32685, 12)},
	{itemid = 11787, position = Position(33616,32685, 12)},
	{itemid = 11787, position = Position(33611,32680, 12)},
	{itemid = 11787, position = Position(33613,32690, 12)},
	{itemid = 11787, position = Position(33616,32677, 12)},
	{itemid = 11787, position = Position(33612,32685, 12)},
	{itemid = 11787, position = Position(33621,32682, 12)},
	{itemid = 11786, position = Position(33612,32680, 12)},
	{itemid = 11786, position = Position(33611,32683, 12)},
	{itemid = 11786, position = Position(33621,32682, 12)},
	{itemid = 11786, position = Position(33612,32684, 12)},
	{itemid = 11786, position = Position(33613,32690, 12)},
	{itemid = 11786, position = Position(33621,32687, 12)},
	{itemid = 11786, position = Position(33621,32681, 12)},
	{itemid = 11786, position = Position(33616,32677, 12)},
	{itemid = 11786, position = Position(33614,32685, 12)},
	{itemid = 11786, position = Position(33611,32688, 12)},
	{itemid = 11785, position = Position(33625,32685, 12)},
	{itemid = 11785, position = Position(33623,32687, 12)},
	{itemid = 11785, position = Position(33621,32687, 12)},
	{itemid = 11785, position = Position(33625,32691, 12)},
	{itemid = 11785, position = Position(33624,32686, 12)},
	{itemid = 11785, position = Position(33617,32685, 12)},
	{itemid = 11778, position = Position(33613,32689, 12)},
	{itemid = 11778, position = Position(33621,32683, 12)},
	{itemid = 11778, position = Position(33617,32684, 12)},
	{itemid = 11778, position = Position(33621,32680, 12)},
	{itemid = 11778, position = Position(33613,32681, 12)},
	{itemid = 11778, position = Position(33621,32686, 12)},
	{itemid = 11778, position = Position(33616,32676, 12)},
	{itemid = 11777, position = Position(33614,32690, 12)},
	{itemid = 11777, position = Position(33614,32685, 12)},
	{itemid = 11777, position = Position(33621,32687, 12)},
	{itemid = 11777, position = Position(33617,32677, 12)},
	{itemid = 11777, position = Position(33623,32688, 12)},
	{itemid = 11777, position = Position(33613,32685, 12)},
	{itemid = 11777, position = Position(33625,32676, 12)},
	{itemid = 11777, position = Position(33624,32691, 12)},
	{itemid = 11777, position = Position(33620,32687, 12)},
	{itemid = 11777, position = Position(33625,32691, 12)},
	{itemid = 11777, position = Position(33612,32680, 12)},
	{itemid = 11777, position = Position(33611,32686, 12)},
	{itemid = 11777, position = Position(33624,32676, 12)},
	{itemid = 11776, position = Position(33625,32683, 12)},
	{itemid = 11776, position = Position(33621,32681, 12)},
	{itemid = 11776, position = Position(33620,32684, 12)},
	{itemid = 11776, position = Position(33625,32690, 12)},
	{itemid = 11776, position = Position(33625,32684, 12)},
	{itemid = 11776, position = Position(33621,32682, 12)},
	{itemid = 11775, position = Position(33613,32684, 12)},
	{itemid = 11775, position = Position(33611,32679, 12)},
	{itemid = 11775, position = Position(33620,32684, 12)},
	{itemid = 11775, position = Position(33612,32688, 12)},
	{itemid = 11775, position = Position(33622,32687, 12)},
	{itemid = 11775, position = Position(33615,32685, 12)},
	{itemid = 11775, position = Position(33616,32685, 12)},
	{itemid = 11561, position = Position(33620,32688, 12)},
	{itemid = 11561, position = Position(33611,32676, 12)},
	{itemid = 11561, position = Position(33619,32690, 12)},
	{itemid = 11561, position = Position(33620,32685, 12)},
	{itemid = 11561, position = Position(33619,32679, 12)},
	{itemid = 11561, position = Position(33619,32678, 12)},
	{itemid = 11561, position = Position(33619,32680, 12)},
	{itemid = 11561, position = Position(33619,32682, 12)},
	{itemid = 11561, position = Position(33619,32681, 12)},
	{itemid = 11561, position = Position(33619,32683, 12)},
	{itemid = 11561, position = Position(33619,32677, 12)},
	{itemid = 11561, position = Position(33618,32691, 12)},
	{itemid = 11561, position = Position(33618,32687, 12)},
	{itemid = 11561, position = Position(33619,32676, 12)},
	{itemid = 11561, position = Position(33618,32688, 12)},
	{itemid = 11561, position = Position(33618,32690, 12)},
	{itemid = 11561, position = Position(33618,32689, 12)},
	{itemid = 11561, position = Position(33620,32686, 12)},
	{itemid = 11561, position = Position(33619,32684, 12)},
	{itemid = 11561, position = Position(33619,32686, 12)},
	{itemid = 11561, position = Position(33620,32678, 12)},
	{itemid = 11561, position = Position(33620,32677, 12)},
	{itemid = 11561, position = Position(33620,32681, 12)},
	{itemid = 11561, position = Position(33620,32683, 12)},
	{itemid = 11561, position = Position(33620,32682, 12)},
	{itemid = 11561, position = Position(33619,32685, 12)},
	{itemid = 11561, position = Position(33620,32676, 12)},
	{itemid = 11561, position = Position(33620,32689, 12)},
	{itemid = 11561, position = Position(33619,32687, 12)},
	{itemid = 11561, position = Position(33619,32691, 12)},
	{itemid = 11561, position = Position(33619,32688, 12)},
	{itemid = 11561, position = Position(33619,32689, 12)},
	{itemid = 11561, position = Position(33620,32690, 12)},
	{itemid = 11561, position = Position(33622,32680, 12)},
	{itemid = 11561, position = Position(33621,32676, 12)},
	{itemid = 11561, position = Position(33623,32691, 12)},
	{itemid = 11561, position = Position(33623,32690, 12)},
	{itemid = 11561, position = Position(33624,32677, 12)},
	{itemid = 11561, position = Position(33624,32678, 12)},
	{itemid = 11561, position = Position(33624,32679, 12)},
	{itemid = 11561, position = Position(33623,32689, 12)},
	{itemid = 11561, position = Position(33623,32684, 12)},
	{itemid = 11561, position = Position(33623,32685, 12)},
	{itemid = 11561, position = Position(33623,32682, 12)},
	{itemid = 11561, position = Position(33623,32683, 12)},
	{itemid = 11561, position = Position(33623,32681, 12)},
	{itemid = 11561, position = Position(33624,32680, 12)},
	{itemid = 11561, position = Position(33624,32682, 12)},
	{itemid = 11561, position = Position(33625,32679, 12)},
	{itemid = 11561, position = Position(33625,32680, 12)},
	{itemid = 11561, position = Position(33625,32681, 12)},
	{itemid = 11561, position = Position(33624,32681, 12)},
	{itemid = 11561, position = Position(33625,32678, 12)},
	{itemid = 11561, position = Position(33624,32690, 12)},
	{itemid = 11561, position = Position(33625,32677, 12)},
	{itemid = 11561, position = Position(33624,32683, 12)},
	{itemid = 11561, position = Position(33624,32684, 12)},
	{itemid = 11561, position = Position(33620,32691, 12)},
	{itemid = 11561, position = Position(33623,32680, 12)},
	{itemid = 11561, position = Position(33623,32678, 12)},
	{itemid = 11561, position = Position(33621,32690, 12)},
	{itemid = 11561, position = Position(33621,32689, 12)},
	{itemid = 11561, position = Position(33621,32691, 12)},
	{itemid = 11561, position = Position(33622,32676, 12)},
	{itemid = 11561, position = Position(33622,32677, 12)},
	{itemid = 11561, position = Position(33621,32688, 12)},
	{itemid = 11561, position = Position(33621,32684, 12)},
	{itemid = 11561, position = Position(33621,32685, 12)},
	{itemid = 11561, position = Position(33621,32677, 12)},
	{itemid = 11561, position = Position(33621,32678, 12)},
	{itemid = 11561, position = Position(33623,32679, 12)},
	{itemid = 11561, position = Position(33622,32678, 12)},
	{itemid = 11561, position = Position(33618,32686, 12)},
	{itemid = 11561, position = Position(33622,32690, 12)},
	{itemid = 11561, position = Position(33622,32691, 12)},
	{itemid = 11561, position = Position(33623,32677, 12)},
	{itemid = 11561, position = Position(33622,32679, 12)},
	{itemid = 11561, position = Position(33622,32689, 12)},
	{itemid = 11561, position = Position(33622,32685, 12)},
	{itemid = 11561, position = Position(33622,32686, 12)},
	{itemid = 11561, position = Position(33622,32683, 12)},
	{itemid = 11561, position = Position(33622,32684, 12)},
	{itemid = 11561, position = Position(33618,32685, 12)},
	{itemid = 11561, position = Position(33618,32682, 12)},
	{itemid = 11561, position = Position(33614,32687, 12)},
	{itemid = 11561, position = Position(33616,32683, 12)},
	{itemid = 11561, position = Position(33614,32680, 12)},
	{itemid = 11561, position = Position(33616,32684, 12)},
	{itemid = 11561, position = Position(33614,32681, 12)},
	{itemid = 11561, position = Position(33616,32681, 12)},
	{itemid = 11561, position = Position(33616,32682, 12)},
	{itemid = 11561, position = Position(33616,32680, 12)},
	{itemid = 11561, position = Position(33614,32679, 12)},
	{itemid = 11561, position = Position(33613,32687, 12)},
	{itemid = 11561, position = Position(33616,32689, 12)},
	{itemid = 11561, position = Position(33616,32690, 12)},
	{itemid = 11561, position = Position(33614,32678, 12)},
	{itemid = 11561, position = Position(33616,32688, 12)},
	{itemid = 11561, position = Position(33616,32687, 12)},
	{itemid = 11561, position = Position(33613,32686, 12)},
	{itemid = 11561, position = Position(33615,32683, 12)},
	{itemid = 11561, position = Position(33616,32679, 12)},
	{itemid = 11561, position = Position(33614,32683, 12)},
	{itemid = 11561, position = Position(33615,32679, 12)},
	{itemid = 11561, position = Position(33614,32691, 12)},
	{itemid = 11561, position = Position(33615,32687, 12)},
	{itemid = 11561, position = Position(33615,32680, 12)},
	{itemid = 11561, position = Position(33615,32681, 12)},
	{itemid = 11561, position = Position(33615,32684, 12)},
	{itemid = 11561, position = Position(33614,32682, 12)},
	{itemid = 11561, position = Position(33615,32688, 12)},
	{itemid = 11561, position = Position(33615,32689, 12)},
	{itemid = 11561, position = Position(33618,32684, 12)},
	{itemid = 11561, position = Position(33614,32686, 12)},
	{itemid = 11561, position = Position(33614,32689, 12)},
	{itemid = 11561, position = Position(33615,32691, 12)},
	{itemid = 11561, position = Position(33615,32690, 12)},
	{itemid = 11561, position = Position(33614,32688, 12)},
	{itemid = 11561, position = Position(33613,32683, 12)},
	{itemid = 11561, position = Position(33616,32691, 12)},
	{itemid = 11561, position = Position(33613,32682, 12)},
	{itemid = 11561, position = Position(33617,32689, 12)},
	{itemid = 11561, position = Position(33617,32690, 12)},
	{itemid = 11561, position = Position(33617,32691, 12)},
	{itemid = 11561, position = Position(33617,32688, 12)},
	{itemid = 11561, position = Position(33617,32676, 12)},
	{itemid = 11561, position = Position(33617,32687, 12)},
	{itemid = 11561, position = Position(33612,32676, 12)},
	{itemid = 11561, position = Position(33618,32676, 12)},
	{itemid = 11561, position = Position(33618,32678, 12)},
	{itemid = 11561, position = Position(33611,32677, 12)},
	{itemid = 11561, position = Position(33618,32683, 12)},
	{itemid = 11561, position = Position(33618,32677, 12)},
	{itemid = 11561, position = Position(33618,32681, 12)},
	{itemid = 11561, position = Position(33618,32679, 12)},
	{itemid = 11561, position = Position(33618,32680, 12)},
	{itemid = 11561, position = Position(33612,32677, 12)},
	{itemid = 11561, position = Position(33611,32678, 12)},
	{itemid = 11561, position = Position(33612,32678, 12)},
	{itemid = 11561, position = Position(33617,32679, 12)},
	{itemid = 11561, position = Position(33617,32686, 12)},
	{itemid = 11561, position = Position(33617,32680, 12)},
	{itemid = 11561, position = Position(33613,32678, 12)},
	{itemid = 11561, position = Position(33613,32679, 12)},
	{itemid = 11561, position = Position(33617,32678, 12)},
	{itemid = 11561, position = Position(33617,32681, 12)},
	{itemid = 11561, position = Position(33613,32677, 12)},
	{itemid = 11561, position = Position(33615,32682, 12)},
	{itemid = 11561, position = Position(33617,32682, 12)},
	{itemid = 11561, position = Position(33612,32682, 12)},
	{itemid = 11561, position = Position(33612,32681, 12)},
	{itemid = 11561, position = Position(33617,32683, 12)},
	{itemid = 11561, position = Position(33612,32687, 12)},
	{itemid = 4183, position = Position(33618,32684, 12)},
	{itemid = 4182, position = Position(33615,32684, 12)},
	{itemid = 4182, position = Position(33615,32681, 12)},
	{itemid = 4182, position = Position(33617,32683, 12)},
	{itemid = 4181, position = Position(33618,32687, 12)},
	{itemid = 4180, position = Position(33619,32687, 12)},
	{itemid = 4180, position = Position(33619,32689, 12)},
	{itemid = 4180, position = Position(33622,32684, 12)},
	{itemid = 4174, position = Position(33616,32683, 12)},
	{itemid = 4173, position = Position(33620,32683, 12)},
	{itemid = 4172, position = Position(33617,32680, 12)},
	{itemid = 4171, position = Position(33620,32686, 12)},
	{itemid = 4170, position = Position(33618,32682, 12)},
	{itemid = 4170, position = Position(33619,32685, 12)},
	{itemid = 4170, position = Position(33621,32685, 12)},
	{itemid = 4169, position = Position(33619,32686, 12)},
	{itemid = 4168, position = Position(33617,32687, 12)},
	{itemid = 414, position = Position(33621,32686, 12)},
	{itemid = 414, position = Position(33624,32687, 12)},
	{itemid = 414, position = Position(33624,32688, 12)},
	{itemid = 414, position = Position(33624,32689, 12)},
	{itemid = 414, position = Position(33624,32686, 12)},
	{itemid = 414, position = Position(33624,32685, 12)},
	{itemid = 414, position = Position(33611,32691, 12)},
	{itemid = 414, position = Position(33612,32684, 12)},
	{itemid = 414, position = Position(33612,32685, 12)},
	{itemid = 414, position = Position(33612,32686, 12)},
	{itemid = 414, position = Position(33612,32679, 12)},
	{itemid = 414, position = Position(33612,32683, 12)},
	{itemid = 414, position = Position(33617,32685, 12)},
	{itemid = 414, position = Position(33617,32684, 12)},
	{itemid = 414, position = Position(33612,32680, 12)},
	{itemid = 414, position = Position(33611,32690, 12)},
	{itemid = 414, position = Position(33611,32689, 12)},
	{itemid = 414, position = Position(33612,32688, 12)},
	{itemid = 414, position = Position(33625,32686, 12)},
	{itemid = 414, position = Position(33625,32685, 12)},
	{itemid = 414, position = Position(33611,32680, 12)},
	{itemid = 414, position = Position(33625,32684, 12)},
	{itemid = 414, position = Position(33625,32687, 12)},
	{itemid = 414, position = Position(33611,32679, 12)},
	{itemid = 414, position = Position(33625,32688, 12)},
	{itemid = 414, position = Position(33625,32690, 12)},
	{itemid = 414, position = Position(33625,32689, 12)},
	{itemid = 414, position = Position(33624,32691, 12)},
	{itemid = 414, position = Position(33611,32681, 12)},
	{itemid = 414, position = Position(33611,32682, 12)},
	{itemid = 414, position = Position(33611,32687, 12)},
	{itemid = 414, position = Position(33611,32688, 12)},
	{itemid = 414, position = Position(33625,32676, 12)},
	{itemid = 414, position = Position(33625,32683, 12)},
	{itemid = 414, position = Position(33611,32686, 12)},
	{itemid = 414, position = Position(33611,32684, 12)},
	{itemid = 414, position = Position(33611,32685, 12)},
	{itemid = 414, position = Position(33625,32682, 12)},
	{itemid = 414, position = Position(33611,32683, 12)},
	{itemid = 414, position = Position(33624,32676, 12)},
	{itemid = 414, position = Position(33612,32691, 12)},
	{itemid = 414, position = Position(33612,32690, 12)},
	{itemid = 414, position = Position(33622,32681, 12)},
	{itemid = 414, position = Position(33614,32685, 12)},
	{itemid = 414, position = Position(33621,32679, 12)},
	{itemid = 414, position = Position(33616,32676, 12)},
	{itemid = 414, position = Position(33614,32684, 12)},
	{itemid = 414, position = Position(33616,32677, 12)},
	{itemid = 414, position = Position(33622,32682, 12)},
	{itemid = 414, position = Position(33620,32687, 12)},
	{itemid = 414, position = Position(33616,32678, 12)},
	{itemid = 414, position = Position(33616,32685, 12)},
	{itemid = 414, position = Position(33621,32680, 12)},
	{itemid = 414, position = Position(33614,32690, 12)},
	{itemid = 414, position = Position(33621,32682, 12)},
	{itemid = 414, position = Position(33615,32685, 12)},
	{itemid = 414, position = Position(33621,32683, 12)},
	{itemid = 414, position = Position(33621,32681, 12)},
	{itemid = 414, position = Position(33621,32687, 12)},
	{itemid = 414, position = Position(33615,32677, 12)},
	{itemid = 414, position = Position(33615,32678, 12)},
	{itemid = 414, position = Position(33615,32686, 12)},
	{itemid = 414, position = Position(33615,32676, 12)},
	{itemid = 414, position = Position(33612,32689, 12)},
	{itemid = 414, position = Position(33616,32686, 12)},
	{itemid = 414, position = Position(33614,32677, 12)},
	{itemid = 414, position = Position(33620,32680, 12)},
	{itemid = 414, position = Position(33613,32680, 12)},
	{itemid = 414, position = Position(33613,32681, 12)},
	{itemid = 414, position = Position(33617,32677, 12)},
	{itemid = 414, position = Position(33623,32686, 12)},
	{itemid = 414, position = Position(33623,32687, 12)},
	{itemid = 414, position = Position(33620,32679, 12)},
	{itemid = 414, position = Position(33613,32676, 12)},
	{itemid = 414, position = Position(33623,32688, 12)},
	{itemid = 414, position = Position(33622,32687, 12)},
	{itemid = 414, position = Position(33613,32684, 12)},
	{itemid = 414, position = Position(33620,32684, 12)},
	{itemid = 414, position = Position(33613,32691, 12)},
	{itemid = 414, position = Position(33614,32676, 12)},
	{itemid = 414, position = Position(33622,32688, 12)},
	{itemid = 414, position = Position(33613,32685, 12)},
	{itemid = 414, position = Position(33613,32690, 12)},
	{itemid = 414, position = Position(33623,32676, 12)},
	{itemid = 414, position = Position(33613,32689, 12)},
	{itemid = 414, position = Position(33613,32688, 12)},
	{itemid = 414, position = Position(33625,32691, 12)}
}

local function transformArea()
	for x = 33611, 33625 do
		for y = 32676, 32691 do
			local position = Position(x, y, 12)
			local tile = Tile(position)
			if not tile then
				return
			end
			local ground = tile:getGround()
			if not ground then
				return
			end
			local grounds = ground:getId()
			local items = tile:getItems()
			for i = 1, #items do
				local item = items[i]
				if item then
					item:remove()
				end
			end
			ground:remove()
		end
	end
	for i = 1, #mushroom do
		local item = mushroom[i]
		local ground = Tile(item.position):getGround()
		local transformid = item.itemid
		local tp = Game.createItem(item.itemid, 1, item.position)
	end
	return true
end

local ferumbrasAscendantHabitatMushroom = Action()
function ferumbrasAscendantHabitatMushroom.onUse(player, item, fromPosition, target, toPosition, isHotkey)
	if item.itemid == 10044 then
		if Game.getStorageValue(GlobalStorage.FerumbrasAscendant.Habitats.Mushroom) >= 1 then
			player:say('The lever are stucke, need some time to it can be moveable again.', TALKTYPE_MONSTER_SAY)
			return true
		end
		Game.createMonster('lovely scorpion', Position(33617, 32684, 12), true, true)
		addEvent(transformArea, 2 * 1000)
		item:transform(10045)
		local basin = Tile(Position(33628, 32685, 12)):getItemById(12070)
		if basin then
			basin:getPosition():sendMagicEffect(CONST_ME_ENERGYAREA)
			basin:transform(24852)
		end
		Game.setStorageValue(GlobalStorage.FerumbrasAscendant.Habitats.Mushroom, 1)
		Game.setStorageValue(GlobalStorage.FerumbrasAscendant.Habitats.AllHabitats, Game.getStorageValue(GlobalStorage.FerumbrasAscendant.Habitats.AllHabitats) + 1)
		player:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'The room transforms into a completely different landscape.')
		if Game.getStorageValue(GlobalStorage.FerumbrasAscendant.Habitats.AllHabitats) >= 8 then
			addEvent(functionRevert, 1 * 60 * 60 * 1000)
		end
	elseif item.itemid == 10045 then
		item:transform(10044)
	end
	return true
end

ferumbrasAscendantHabitatMushroom:aid(34307)
ferumbrasAscendantHabitatMushroom:register()