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