Teleport To: Difference between revisions
(updates from Blockument) |
(Marked this version for translation) |
||
Line 2: | Line 2: | ||
<translate> | <translate> | ||
<!--T:2--> | |||
<section begin="image"/>[[File:teleport_to.png|alt=The Teleport To Block|thumb]]<section end="image"/> | <section begin="image"/>[[File:teleport_to.png|alt=The Teleport To Block|thumb]]<section end="image"/> | ||
==Usage== | ==Usage== <!--T:3--> | ||
<!--T:4--> | |||
<p id=tooltip>Instantly moves to the specified coordinate.</p> | <p id=tooltip>Instantly moves to the specified coordinate.</p> | ||
==Syntax== | ==Syntax== <!--T:5--> | ||
<!--T:6--> | |||
Inputs in this block: | Inputs in this block: | ||
#a number, the x coordinate | #a number, the x coordinate | ||
Line 15: | Line 18: | ||
#a number, the z coordinate | #a number, the z coordinate | ||
==Example== | ==Example== <!--T:7--> | ||
<!--T:8--> | |||
[[File:teleport_to_example.gif|alt=Teleport To example gif|thumb]] | [[File:teleport_to_example.gif|alt=Teleport To example gif|thumb]] | ||
[[File:teleport_to_example.png|alt=Teleport To example code|thumb]] | [[File:teleport_to_example.png|alt=Teleport To example code|thumb]] | ||
<!--T:9--> | |||
This is a model of a quarantine. Note that movement from the unquarantined area to the quarantined area changes the trait quarantined? from 0 to 1. Doctors (pink cubes) remove immune agents (blue) from the quarantine and move them to the unquarantined area. Further, they also find sick agents roaming around the unquarantined area (green terrain) and move them to the quarantine (white terrain). | This is a model of a quarantine. Note that movement from the unquarantined area to the quarantined area changes the trait quarantined? from 0 to 1. Doctors (pink cubes) remove immune agents (blue) from the quarantine and move them to the unquarantined area. Further, they also find sick agents roaming around the unquarantined area (green terrain) and move them to the quarantine (white terrain). | ||
Both the ‘get quarantined’ and ‘end quarantine’ functions use the teleport to block to move agents to their proper locations. | Both the ‘get quarantined’ and ‘end quarantine’ functions use the teleport to block to move agents to their proper locations. |
Latest revision as of 18:41, 14 August 2023
Usage
Instantly moves to the specified coordinate.
Syntax
Inputs in this block:
- a number, the x coordinate
- a number, the y coordinate
- a number, the z coordinate
Example
This is a model of a quarantine. Note that movement from the unquarantined area to the quarantined area changes the trait quarantined? from 0 to 1. Doctors (pink cubes) remove immune agents (blue) from the quarantine and move them to the unquarantined area. Further, they also find sick agents roaming around the unquarantined area (green terrain) and move them to the quarantine (white terrain). Both the ‘get quarantined’ and ‘end quarantine’ functions use the teleport to block to move agents to their proper locations. The blocks shown above describe the ‘get quarantined’ that relocates unquarantined sick agents to the quarantined area that exists in the square with corners (0,0) and (50,50).