Skip to content
Draft

0.8 #105

Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions docs/integrations/ae2/cable_p2p_tunnel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
comments: true
---

# Cable P2P Tunnel

!!! picture inline end
![!Images of Cable P2P Tunnel](../img/previews/cable_p2p_tunnel.png){ align=right }

Cable P2P Tunnel is created by right clicking a P2P tunnel with CC: Tweaked's cable or wired modems.
It allows you control peripherals wirely across dimensions.
The in and out direction does not matter when connecting.
35 changes: 33 additions & 2 deletions docs/peripherals/environment_detector.md
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,8 @@ Returns a table with all of the registered dimensions for the current world, thi
scanEntities(range: number) -> table
```

Returns a table with all entities in the given range
Coordinates are relativ and not absolute
Returns a table with all entities in the given range.
Coordinates are relative and not absolute.

!!! example
Example output for an entity:
Expand All @@ -288,9 +288,40 @@ Coordinates are relativ and not absolute
}
```

---

### scanShips

```
scanShips(range: number) -> table
```

!!! warning "Requirement"
Requires Valkyrien Skies to be installed.

Returns a table with all ships in the given range.
Coordinates are relative and not absolute.

---

### scanShipCost

```
scanShipCost(range: number) -> number
```

!!! warning "Requirement"
Requires Valkyrien Skies to be installed.

Returns the estimated cost to scan ships in the given range.

---

## Changelog/Trivia

**0.8**
Added vs2 integration `scanShips`, `scanShipCost`.

**0.6.5b**
Added `getRadiationRaw`

Expand Down
40 changes: 40 additions & 0 deletions docs/turtles/metaphysics/end_automata.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,15 @@ Returns true if the location is successfully saved, or nil and an error message.

---

### deletePoint
```
deletePoint(name: string) -> true | nil, string
```
Delete a saved warp point with the given `name`.
Returns true if the warp point exists and is successfully removed, or nil and an error message.

---

### distanceToPoint
```
distanceToPoint(name: string) -> number | nil, string
Expand Down Expand Up @@ -105,7 +114,38 @@ Returns true if the turtle is successfully teleported or nil and an error messag

---

### portalShipPrepare
```
portalShipPrepare(direction: string | nil) -> table | nil, string
```
Prepare to cross a portal.
Direction includes `up`, `top`, `down`, `bottom`, and `front` (default).
If a portal is detected, a table with target dimension's information will be returns. Or nil and an error message.

| Field | Type | Description |
| ---------- | --------- | ----------- |
| `name` | `string` | Target dimension's ID |
| `pos` | `string` | Position after teleport |
| `facing` | `string` | Facing direction after teleport |
| `costs` | `number` | Costs to active teleport |
| `canSpawn` | `boolean` | `true` if the destination is not blocked so turtle can perform the teleport, `false` otherwise. |
| `shipId` | `string` | The teleport id, uses in `portalShipActive` |

---

### portalShipActive
```
portalShipActive(shipId: string) -> true | nil, string
```
Active a portal and teleport through it.
Can only be invoked in a short period after `portalShipPrepare` returns the `shipId`.

---

## Changelog/Trivia

**0.8**
Added cross portal ability to end automata.

**0.7r**
Added the End Automata
52 changes: 52 additions & 0 deletions docs/turtles/metaphysics/weak_automata.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,60 @@ Returns true if it successfully placed block or nil and an error message.

---

### isOnShip
```
isOnShip() -> boolean
```

!!! warning "Requirement"
Requires Valkyrien Skies to be installed.

Returns `true` if turtle is on an assembled ship, `false` otherwise.

---

### getCurrentShip
```
getCurrentShip() -> table | nil
```

!!! warning "Requirement"
Requires Valkyrien Skies to be installed.

Returns a table contains current ship's information, or `nil` if the turtle is not on a ship.

---

### canMountToShip
```
canMountToShip() -> table | nil
```

!!! warning "Requirement"
Requires Valkyrien Skies to be installed.

Returns a table contains mountable ships' slugs, or `nil` if no ship is found.

---

### mountToShip
```
mountToShip(slug: string | nil) -> true | false, string
```

!!! warning "Requirement"
Requires Valkyrien Skies to be installed.

Mount to a ship with given slug. Or chose a random one if no slug is provided.
Returns `true` if mount is succeed. Or `false` and an error message.

---

## Changelog/Trivia

**0.8**
Added vs2 integration `isOnShip`, `getCurrentShip`, `canMountToShip`, and `mountToShip`.

**0.7.36r**
Added `placeBlock` method for accure placement.

Expand Down
13 changes: 2 additions & 11 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ nav:
- 'Minecraft':
- 'Beacon': 'integrations/minecraft/beacon.md'
- 'Note Block': 'integrations/minecraft/noteblock.md'
- 'Applied Energistics'
- 'Cable P2P Tunnel': 'integrations/ae2/cable_p2p_tunnel.md'
- 'Botania':
- 'Flowers': 'integrations/botania/flowers.md'
- 'Mana Pool': 'integrations/botania/pool.md'
Expand All @@ -56,24 +58,13 @@ nav:
- 'Fluid Tank': 'integrations/create/fluidtank.md'
- 'Mechanical Mixer': 'integrations/create/mechanicalmixer.md'
- 'Blocks with Scroll Behaviour': 'integrations/create/scrollbehaviour.md'
- 'Draconic Evolution':
- 'integrations/draconic_evolution/index.md'
- 'Immersive Engineering':
- 'Redstone Wire Connector': 'integrations/immersive_engineering/connector.md'
- 'Redstone Probe': 'integrations/immersive_engineering/probe.md'
- 'Integrated Dynamics':
- 'Variable Store': 'integrations/integrated_dynamics/variable_store.md'
- 'Mekanism':
- 'integrations/mekanism/index.md'
- 'Powah':
- 'Energy cell': 'integrations/powah/energy_cell.md'
- 'Furnator': 'integrations/powah/furnator.md'
- 'Magmator': 'integrations/powah/magmator.md'
- 'Reactor': 'integrations/powah/reactor.md'
- 'Solar panel': 'integrations/powah/solar_panel.md'
- 'Thermo generator': 'integrations/powah/thermo_generator.md'
- 'Storage Drawers':
- 'Drawer': 'integrations/storage_drawers/drawer.md'
- 'Changelogs':
- 'Changelog 0.7.24r': 'changelogs/0.7.24r.md'
- 'Changelog 0.7r': 'changelogs/0.7r.md'
Expand Down