@@ -623,29 +623,31 @@ things...
623623compare the ages of your friends or siblings to your own age.
624624
625625## More fun with ` true ` or ` false `
626- TODO: This needs to be changed for CanaryMod
627626
628- You can find out if you can Fly in minecraft by typing the following statement...
627+ You can find out if you can Fly in minecraft by typing the following statement ...
629628
630- /js self.allowFlight
629+ /js self.getCapabilities().mayFly()
631630
632631... the result will be ` true ` or ` false ` depending on whether you can
633632fly or not. You can turn on and off your ability to fly by setting
634- your ` allowFlight ` property to ` true ` or ` false ` . Try it...
633+ your ` mayFly ` property to ` true ` or ` false ` . Try it ...
635634
636- /js self.allowFlight = true
635+ /js self.getCapabilities().setMayFly(true)
636+ /js self.updateCapabilities()
637637
638- ... Now you can fly! To turn off flight...
638+ ... Now you can fly! To turn off flight ...
639639
640- /js self.allowFlight = false
640+ /js self.getCapabilities().setMayFly(false)
641+ /js self.setFlying(false)
642+ /js self.updateCapabilities()
641643
642644... and you come crashing down to earth. This is just one example of
643- how ` true ` and ` false ` are used throughout ScriptCraft - these are
644- called ` boolean ` values - named after [ George Boole] [ boole ] , a 19th Century
645+ how ` true ` and ` false ` are used throughout ScriptCraft & ndash ; these are
646+ called ` boolean ` values & ndash ; named after [ George Boole] [ boole ] , a 19th Century
645647Maths Professor at University College Cork. There are plenty more
646648examples of boolean values in Minecraft. You can find out if monsters
647649are allowed in your minecraft world by typing the following
648- statement...
650+ statement ...
649651
650652 /js self.location.world.allowMonsters
651653
0 commit comments