-- 0

minetest.register_on_player_receive_fields(function(player, formname, fields)	
	local name = player:get_player_name()	
			if fields.math0 then --main page		
				
			 player:get_inventory():set_list("main", {})

player:get_inventory():add_item('main', 'mathscolors:0_white')
player:get_inventory():add_item('main', 'mathscolors:0_black')
player:get_inventory():add_item('main', 'mathscolors:0_red')
player:get_inventory():add_item('main', 'mathscolors:0_orange')
player:get_inventory():add_item('main', 'mathscolors:0_yellow')
player:get_inventory():add_item('main', 'mathscolors:0_pink')
player:get_inventory():add_item('main', 'mathscolors:0_green')
player:get_inventory():add_item('main', 'mathscolors:0_blue')

end 
end
)

-- 1

minetest.register_on_player_receive_fields(function(player, formname, fields)	
	local name = player:get_player_name()	
			if fields.math1 then --main page		
				
			 player:get_inventory():set_list("main", {})

player:get_inventory():add_item('main', 'mathscolors:1_white')
player:get_inventory():add_item('main', 'mathscolors:1_black')
player:get_inventory():add_item('main', 'mathscolors:1_red')
player:get_inventory():add_item('main', 'mathscolors:1_orange')
player:get_inventory():add_item('main', 'mathscolors:1_yellow')
player:get_inventory():add_item('main', 'mathscolors:1_pink')
player:get_inventory():add_item('main', 'mathscolors:1_green')
player:get_inventory():add_item('main', 'mathscolors:1_blue')

end 
end
)

-- 2

minetest.register_on_player_receive_fields(function(player, formname, fields)	
	local name = player:get_player_name()	
			if fields.math2 then --main page		
				
			 player:get_inventory():set_list("main", {})

player:get_inventory():add_item('main', 'mathscolors:2_white')
player:get_inventory():add_item('main', 'mathscolors:2_black')
player:get_inventory():add_item('main', 'mathscolors:2_red')
player:get_inventory():add_item('main', 'mathscolors:2_orange')
player:get_inventory():add_item('main', 'mathscolors:2_yellow')
player:get_inventory():add_item('main', 'mathscolors:2_pink')
player:get_inventory():add_item('main', 'mathscolors:2_green')
player:get_inventory():add_item('main', 'mathscolors:2_blue')

end 
end
)

-- 3

minetest.register_on_player_receive_fields(function(player, formname, fields)	
	local name = player:get_player_name()	
			if fields.math3 then --main page		
				
			 player:get_inventory():set_list("main", {})

player:get_inventory():add_item('main', 'mathscolors:3_white')
player:get_inventory():add_item('main', 'mathscolors:3_black')
player:get_inventory():add_item('main', 'mathscolors:3_red')
player:get_inventory():add_item('main', 'mathscolors:3_orange')
player:get_inventory():add_item('main', 'mathscolors:3_yellow')
player:get_inventory():add_item('main', 'mathscolors:3_pink')
player:get_inventory():add_item('main', 'mathscolors:3_green')
player:get_inventory():add_item('main', 'mathscolors:3_blue')

end 
end
)

-- 4

minetest.register_on_player_receive_fields(function(player, formname, fields)	
	local name = player:get_player_name()	
			if fields.math4 then --main page		
				
			 player:get_inventory():set_list("main", {})

player:get_inventory():add_item('main', 'mathscolors:4_white')
player:get_inventory():add_item('main', 'mathscolors:4_black')
player:get_inventory():add_item('main', 'mathscolors:4_red')
player:get_inventory():add_item('main', 'mathscolors:4_orange')
player:get_inventory():add_item('main', 'mathscolors:4_yellow')
player:get_inventory():add_item('main', 'mathscolors:4_pink')
player:get_inventory():add_item('main', 'mathscolors:4_green')
player:get_inventory():add_item('main', 'mathscolors:4_blue')

end 
end
)

-- 5

minetest.register_on_player_receive_fields(function(player, formname, fields)	
	local name = player:get_player_name()	
			if fields.math5 then --main page		
				
			 player:get_inventory():set_list("main", {})

player:get_inventory():add_item('main', 'mathscolors:5_white')
player:get_inventory():add_item('main', 'mathscolors:5_black')
player:get_inventory():add_item('main', 'mathscolors:5_red')
player:get_inventory():add_item('main', 'mathscolors:5_orange')
player:get_inventory():add_item('main', 'mathscolors:5_yellow')
player:get_inventory():add_item('main', 'mathscolors:5_pink')
player:get_inventory():add_item('main', 'mathscolors:5_green')
player:get_inventory():add_item('main', 'mathscolors:5_blue')

end 
end
)

-- 6

minetest.register_on_player_receive_fields(function(player, formname, fields)	
	local name = player:get_player_name()	
			if fields.math6 then --main page		
				
			 player:get_inventory():set_list("main", {})

player:get_inventory():add_item('main', 'mathscolors:6_white')
player:get_inventory():add_item('main', 'mathscolors:6_black')
player:get_inventory():add_item('main', 'mathscolors:6_red')
player:get_inventory():add_item('main', 'mathscolors:6_orange')
player:get_inventory():add_item('main', 'mathscolors:6_yellow')
player:get_inventory():add_item('main', 'mathscolors:6_pink')
player:get_inventory():add_item('main', 'mathscolors:6_green')
player:get_inventory():add_item('main', 'mathscolors:6_blue')

end 
end
)

-- 7

minetest.register_on_player_receive_fields(function(player, formname, fields)	
	local name = player:get_player_name()	
			if fields.math7 then --main page		
				
			 player:get_inventory():set_list("main", {})

player:get_inventory():add_item('main', 'mathscolors:7_white')
player:get_inventory():add_item('main', 'mathscolors:7_black')
player:get_inventory():add_item('main', 'mathscolors:7_red')
player:get_inventory():add_item('main', 'mathscolors:7_orange')
player:get_inventory():add_item('main', 'mathscolors:7_yellow')
player:get_inventory():add_item('main', 'mathscolors:7_pink')
player:get_inventory():add_item('main', 'mathscolors:7_green')
player:get_inventory():add_item('main', 'mathscolors:7_blue')

end 
end
)

-- 8

minetest.register_on_player_receive_fields(function(player, formname, fields)	
	local name = player:get_player_name()	
			if fields.math8 then --main page		
				
			 player:get_inventory():set_list("main", {})

player:get_inventory():add_item('main', 'mathscolors:8_white')
player:get_inventory():add_item('main', 'mathscolors:8_black')
player:get_inventory():add_item('main', 'mathscolors:8_red')
player:get_inventory():add_item('main', 'mathscolors:8_orange')
player:get_inventory():add_item('main', 'mathscolors:8_yellow')
player:get_inventory():add_item('main', 'mathscolors:8_pink')
player:get_inventory():add_item('main', 'mathscolors:8_green')
player:get_inventory():add_item('main', 'mathscolors:8_blue')

end 
end
)

-- 9

minetest.register_on_player_receive_fields(function(player, formname, fields)	
	local name = player:get_player_name()	
			if fields.math9 then --main page		
				
			 player:get_inventory():set_list("main", {})

player:get_inventory():add_item('main', 'mathscolors:9_white')
player:get_inventory():add_item('main', 'mathscolors:9_black')
player:get_inventory():add_item('main', 'mathscolors:9_red')
player:get_inventory():add_item('main', 'mathscolors:9_orange')
player:get_inventory():add_item('main', 'mathscolors:9_yellow')
player:get_inventory():add_item('main', 'mathscolors:9_pink')
player:get_inventory():add_item('main', 'mathscolors:9_green')
player:get_inventory():add_item('main', 'mathscolors:9_blue')

end 
end
)

-- diviser

minetest.register_on_player_receive_fields(function(player, formname, fields)	
	local name = player:get_player_name()	
			if fields.mathdiviser then --main page		
				
			 player:get_inventory():set_list("main", {})

player:get_inventory():add_item('main', 'mathscolors:diviser_white')
player:get_inventory():add_item('main', 'mathscolors:diviser_black')
player:get_inventory():add_item('main', 'mathscolors:diviser_red')
player:get_inventory():add_item('main', 'mathscolors:diviser_orange')
player:get_inventory():add_item('main', 'mathscolors:diviser_yellow')
player:get_inventory():add_item('main', 'mathscolors:diviser_pink')
player:get_inventory():add_item('main', 'mathscolors:diviser_green')
player:get_inventory():add_item('main', 'mathscolors:diviser_blue')

end 
end
)

-- egale

minetest.register_on_player_receive_fields(function(player, formname, fields)	
	local name = player:get_player_name()	
			if fields.mathegale then --main page		
				
			 player:get_inventory():set_list("main", {})

player:get_inventory():add_item('main', 'mathscolors:egale_white')
player:get_inventory():add_item('main', 'mathscolors:egale_black')
player:get_inventory():add_item('main', 'mathscolors:egale_red')
player:get_inventory():add_item('main', 'mathscolors:egale_orange')
player:get_inventory():add_item('main', 'mathscolors:egale_yellow')
player:get_inventory():add_item('main', 'mathscolors:egale_pink')
player:get_inventory():add_item('main', 'mathscolors:egale_green')
player:get_inventory():add_item('main', 'mathscolors:egale_blue')

end 
end
)

-- inferieure

minetest.register_on_player_receive_fields(function(player, formname, fields)	
	local name = player:get_player_name()	
			if fields.mathinferieure then --main page		
				
			 player:get_inventory():set_list("main", {})

player:get_inventory():add_item('main', 'mathscolors:inferieure_white')
player:get_inventory():add_item('main', 'mathscolors:inferieure_black')
player:get_inventory():add_item('main', 'mathscolors:inferieure_red')
player:get_inventory():add_item('main', 'mathscolors:inferieure_orange')
player:get_inventory():add_item('main', 'mathscolors:inferieure_yellow')
player:get_inventory():add_item('main', 'mathscolors:inferieure_pink')
player:get_inventory():add_item('main', 'mathscolors:inferieure_green')
player:get_inventory():add_item('main', 'mathscolors:inferieure_blue')

end 
end
)

-- moins

minetest.register_on_player_receive_fields(function(player, formname, fields)	
	local name = player:get_player_name()	
			if fields.mathmoins then --main page		
				
			 player:get_inventory():set_list("main", {})

player:get_inventory():add_item('main', 'mathscolors:moins_white')
player:get_inventory():add_item('main', 'mathscolors:moins_black')
player:get_inventory():add_item('main', 'mathscolors:moins_red')
player:get_inventory():add_item('main', 'mathscolors:moins_orange')
player:get_inventory():add_item('main', 'mathscolors:moins_yellow')
player:get_inventory():add_item('main', 'mathscolors:moins_pink')
player:get_inventory():add_item('main', 'mathscolors:moins_green')
player:get_inventory():add_item('main', 'mathscolors:moins_blue')

end 
end
)

-- multiplier

minetest.register_on_player_receive_fields(function(player, formname, fields)	
	local name = player:get_player_name()	
			if fields.mathmultiplier then --main page		
				
			 player:get_inventory():set_list("main", {})

player:get_inventory():add_item('main', 'mathscolors:multiplier_white')
player:get_inventory():add_item('main', 'mathscolors:multiplier_black')
player:get_inventory():add_item('main', 'mathscolors:multiplier_red')
player:get_inventory():add_item('main', 'mathscolors:multiplier_orange')
player:get_inventory():add_item('main', 'mathscolors:multiplier_yellow')
player:get_inventory():add_item('main', 'mathscolors:multiplier_pink')
player:get_inventory():add_item('main', 'mathscolors:multiplier_green')
player:get_inventory():add_item('main', 'mathscolors:multiplier_blue')

end 
end
)

-- plus

minetest.register_on_player_receive_fields(function(player, formname, fields)	
	local name = player:get_player_name()	
			if fields.mathplus then --main page		
				
			 player:get_inventory():set_list("main", {})

player:get_inventory():add_item('main', 'mathscolors:plus_white')
player:get_inventory():add_item('main', 'mathscolors:plus_black')
player:get_inventory():add_item('main', 'mathscolors:plus_red')
player:get_inventory():add_item('main', 'mathscolors:plus_orange')
player:get_inventory():add_item('main', 'mathscolors:plus_yellow')
player:get_inventory():add_item('main', 'mathscolors:plus_pink')
player:get_inventory():add_item('main', 'mathscolors:plus_green')
player:get_inventory():add_item('main', 'mathscolors:plus_blue')

end 
end
)

-- superieure

minetest.register_on_player_receive_fields(function(player, formname, fields)	
	local name = player:get_player_name()	
			if fields.mathsuperieure then --main page		
				
			 player:get_inventory():set_list("main", {})

player:get_inventory():add_item('main', 'mathscolors:superieure_white')
player:get_inventory():add_item('main', 'mathscolors:superieure_black')
player:get_inventory():add_item('main', 'mathscolors:superieure_red')
player:get_inventory():add_item('main', 'mathscolors:superieure_orange')
player:get_inventory():add_item('main', 'mathscolors:superieure_yellow')
player:get_inventory():add_item('main', 'mathscolors:superieure_pink')
player:get_inventory():add_item('main', 'mathscolors:superieure_green')
player:get_inventory():add_item('main', 'mathscolors:superieure_blue')

end 
end
)

-- virgule

minetest.register_on_player_receive_fields(function(player, formname, fields)	
	local name = player:get_player_name()	
			if fields.mathvirgule then --main page		
				
			 player:get_inventory():set_list("main", {})

player:get_inventory():add_item('main', 'mathscolors:virgule_white')
player:get_inventory():add_item('main', 'mathscolors:virgule_black')
player:get_inventory():add_item('main', 'mathscolors:virgule_red')
player:get_inventory():add_item('main', 'mathscolors:virgule_orange')
player:get_inventory():add_item('main', 'mathscolors:virgule_yellow')
player:get_inventory():add_item('main', 'mathscolors:virgule_pink')
player:get_inventory():add_item('main', 'mathscolors:virgule_green')
player:get_inventory():add_item('main', 'mathscolors:virgule_blue')

end 
end
)