.
This commit is contained in:
		
							parent
							
								
									8717798bd7
								
							
						
					
					
						commit
						697625ea8e
					
				
							
								
								
									
										103
									
								
								main/startup.lua
									
									
									
									
									
								
							
							
						
						
									
										103
									
								
								main/startup.lua
									
									
									
									
									
								
							| @ -121,55 +121,60 @@ end | |||||||
| --[[Light System]]-- | --[[Light System]]-- | ||||||
| function lightSystem( op, type ) | function lightSystem( op, type ) | ||||||
| --[[On functions]]-- | --[[On functions]]-- | ||||||
|   if color == "off" and op == "on" and type == "white" then |   if op == "on" then | ||||||
|     redstone.setBundledOutput("top", colors.white) |     if type == "white" then | ||||||
|     color = "white" |       if color == "off" then | ||||||
|   elseif color == "off" and op == "on" and type == "red" then |         rs.setBundledOutput("top", colors.white) | ||||||
|     redstone.setBundledOutput("top", colors.red) |         color = "white" | ||||||
|     color = "red" |       elseif color == "white" then | ||||||
|   elseif color == "white" and op == "on" and type == "red" then |         rs.setBundledOutput("top", colors.white) | ||||||
|     redstone.setBundledOutput("top", colors.white + colors.red) |         color = "white" | ||||||
|     color = "both" |       elseif color == "red" then | ||||||
|   elseif color == "red" and op == "on" and type == "white" then |         redstone.setBundledOutput("top", colors.white + colors.red) | ||||||
|     redstone.setBundledOutput("top", colors.white + colors.red) |         color = "both" | ||||||
|     color = "both" |       elseif color == "both" then | ||||||
|   elseif color == "white" and op == "on" and type == "white" then |         redstone.setBundledOutput("top", colors.white + colors.red) | ||||||
|     redstone.setBundledOutput("top", colors.white) |         color = "both" | ||||||
|     color = "white" |       end | ||||||
|   elseif color == "red" and op == "on" and type == "red" then |     elseif type == "red" then | ||||||
|     redstone.setBundledOutput("top", colors.red) |       if color == "off" then | ||||||
|     color = "red" |         rs.setBundledOutput("top", colors.red) | ||||||
|   elseif color == "both" and op == "on" and type == "white" then |         color = "red" | ||||||
|     redstone.setBundledOutput("top", colors.white + colors.red) |       elseif color == "red" then | ||||||
|     color = "both" |         rs.setBundledOutput("top", colors.red) | ||||||
|   elseif color == "both" and op == "on" and type == "red" then |         color = "red" | ||||||
|     redstone.setBundledOutput("top", colors.white + colors.red) |       elseif color == "white" then | ||||||
|     color = "both" |         redstone.setBundledOutput("top", colors.white + colors.red) | ||||||
| 
 |         color = "both" | ||||||
|   elseif color == "both" and op == "off" and type == "white" then |       elseif color == "both" then | ||||||
|     redstone.setBundledOutput("top", colors.red) |         redstone.setBundledOutput("top", colors.white + colors.red) | ||||||
|     color = "red" |         color = "both" | ||||||
|   elseif color == "both" and op == "off" and type == "red" then |       end | ||||||
|     redstone.setBundledOutput("top", colors.white) |     end | ||||||
|     color = "white" |   elseif op == "off" then | ||||||
|   elseif color == "white" and op == "off" and type == "white" then |     if type == "white" then | ||||||
|     redstone.setBundledOutput("top", 0) |       if color == "white" then | ||||||
|     color = "off" |         rs.setBundledOutput("top", 0) | ||||||
|   elseif color == "red" and op == "off" and type == "red" then |         color = "off" | ||||||
|     redstone.setBundledOutput("top", 0) |       elseif color == "red" then | ||||||
|     color = "off" |         redstone.setBundledOutput("top", colors.red) | ||||||
|   elseif color == "off" and op == "off" and type == "white" then |         color = "red" | ||||||
|     redstone.setBundledOutput("top", 0) |       elseif color == "both" then | ||||||
|     color = "off" |         redstone.setBundledOutput("top", colors.red) | ||||||
|   elseif color == "off" and op == "off" and type == "red" then |         color = "red" | ||||||
|     redstone.setBundledOutput("top", 0) |       end | ||||||
|     color = "off" |     elseif type == "red" then | ||||||
|   elseif color == "white" and op == "off" and type == "red" then |       if color == "red" then | ||||||
|     redstone.setBundledOutput("top", colors.white) |         rs.setBundledOutput("top", 0) | ||||||
|     color = "white" |         color = "off" | ||||||
|   elseif color == "red" and op == "off" and type == "white" then |       elseif color == "white" then | ||||||
|     redstone.setBundledOutput("top", colors.red) |         redstone.setBundledOutput("top", colors.white) | ||||||
|     color = "red" |         color = "white" | ||||||
|  |       elseif color == "both" then | ||||||
|  |         redstone.setBundledOutput("top", colors.white) | ||||||
|  |         color = "white" | ||||||
|  |       end | ||||||
|  |     end | ||||||
|   else error("Light system error you tried to: Turn " .. op .. " color " .. type .. " when the state of color in memory is: " .. color) |   else error("Light system error you tried to: Turn " .. op .. " color " .. type .. " when the state of color in memory is: " .. color) | ||||||
|   end |   end | ||||||
|   inLightsMenu = false |   inLightsMenu = false | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user