Advertisement
Sanwi

Minecraft comparator logic, described as programming logic

Mar 29th, 2015
629
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1.  
  2. // Maintain (wires: rear, front)
  3. $output = $rear;
  4.  
  5.  
  6. // Compare (wires: rear, side(s), front)
  7. if (($rear > $left) or ($rear > $right))
  8. {
  9. $output = true;
  10. } else {
  11. $output = false;
  12. }
  13.  
  14. // Subtract (wires: rear, side(s), front. Mode 2(right-click on it to change))
  15. if ($left > $right)
  16. {
  17. $output = $rear - $left;
  18. } else {
  19. $output = $rear - $right;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement