Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Advanced Peripherals Docs Dev",
"image": "mcr.microsoft.com/devcontainers/python:3.12-bookworm",
"image": "mcr.microsoft.com/devcontainers/python:3.14-trixie",

"features": {
"ghcr.io/devcontainers/features/github-cli:1": {},
Expand Down
93 changes: 93 additions & 0 deletions docs/changelogs/0.7.24r.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
---
hide:
- toc
---

# Changelog 1.18.2-0.7.24r / 1.19.3-0.7.23b

## Table of Contents

1. [Item/Fluid Filter](#itemfluid-filter)
2. [Inventory manager](#inventory-manager)
3. [ME and RS Bridge](#me-and-rs-bridge)

<hr style="height: 0.2rem;background-color:var(--md-default-fg-color--lightest);border:none;">

The 0.7.24r update brings some changes to our inventory system.
All major and breaking changes are listed here to help with updating your scripts.

### Item/Fluid Filter

You may know that we use tables to filter for items for some of our inventory transferring functions. This system got a rework and is now used for more functions but also got some syntax changes.

Fluids also now use a filter system.

The following keys got removed:
- `json`
- `tag`

The `nbt` key now uses json typed nbt values like `{nbt="{StoredEnchantments: [{lvl: 2s, id: \"minecraft:blast_protection\"}]}"}`

The `name` key can now search for tags.
``` lua
{
name="#minecraft:wool" -- searches for the wool tag
-- OR
name="#forge:ores/gold" -- searches for the forge gold tag
-- OR
name="minecraft:white_wool" -- searches for white wool
}
```

You CAN NOT search for multiple items/tags at once.

Item Filters can filter for slots with `toSlot` and `fromSlot`.

You can find the new filter documentation [here](/guides/filters)

<hr style="height: 0.2rem;background-color:var(--md-default-fg-color--lightest);border:none;">

### Inventory manager

The following functions got deprecated:

- `removeItemFromPlayer(direction: string, count: int[, slot: int, item: string])`

- `addItemToPlayer(direction: string, count: int[, slot: int, item: string])`

- `removeItemFromPlayerNBT(direction: string, count: int[, slot: int, item: table])`

- `addItemToPlayerNBT(direction: string, count: int[, slot: int, item: table])`

These will be replaced in the next major update with the following two functions:

- `removeItemFromPlayer(direction: direction, string: table)`

- `addItemToPlayer(direction: string, item: table)`

The following functions now use the new [filter](/guides/filters) system:

- `removeItemFromPlayerNBT(direction: string, count: int[, slot: int, item: filter])`

- `addItemToPlayerNBT(direction: string, count: int[, slot: int, item: filter]))`

<hr style="height: 0.2rem;background-color:var(--md-default-fg-color--lightest);border:none;">

### ME and RS Bridge

Added the following functions to the me bridge:

- `getTotalItemStorage`
- `getTotalFluidStorage`
- `getUsedItemStorage`
- `getUsedFluidStorage`
- `getAvailableItemStorage`
- `getAvailableFluidStorage`
- `listCells`
- `isConnected`

More functions now return a Method Result. This means they're capable to report errors if something wrong. For more information, refer to the documentation of the specific function.
This is not a breaking change.



135 changes: 135 additions & 0 deletions docs/changelogs/0.7r.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
---
hide:
- toc
---

# Changelog 0.7r

## Table of Contents

1. [Update Video](#video)
2. [New Features](#features)
1. [Integrated Dynamics Integration](#integrated-dynamics-integration-116)
2. [Storage Drawer Integration](#storage-drawer-integration-116)
3. [Colony Integrator](#colony-integrator)
4. [Geo Scanner](#geo-scanner)
5. [Block Reader](#block-reader)
6. [NBT Storage](#nbt-storage)
7. [New Turtles Upgrades](#new-turtles-upgrades)
8. [New Ingame Documentation](#new-ingame-documentation)
3. [Small features and improvements](#small-features-and-improvements)
1. [Breaking changes](#breaking-changes)
2. [New functions, events and translations!](#new-functions-events-and-translations)
3. [Improved mod integration](#improved-mod-integration)
4. [Support for relative and cardinal directions](#support-for-relative-and-cardinal-directions)
4. [Bug fixes](#bug-fixes)

<hr style="height: 0.2rem;background-color:var(--md-default-fg-color--lightest);border:none;">

## First of all

First of all, big thanks to SirEdvin and FatalMerlin! These awesome hoomans helped a lot with this update!

---

### Video

If you don't want to read, you can watch this wonderful short video!

<iframe width="560" height="315" src="https://www.youtube.com/embed/tIpBTgSkWr0" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen style="aspect-ratio:560/315;width:100%;height:auto;"></iframe>

<hr style="height: 0.2rem;background-color:var(--md-default-fg-color--lightest);border:none;">

## Features

### New Integrations

- #### Integrated Dynamics Integration
We added a peripheral to the "Variable Store" Block from [Integrated Dynamics](https://www.curseforge.com/minecraft/mc-mods/integrated-dynamics) to read variables from integrated dynamics.

##### [View here](../integrations/integrated_dynamics/variable_store.md)

- #### Storage Drawer Integration
You can now access [Storage Drawers](https://www.curseforge.com/minecraft/mc-mods/storage-drawers). Store items, push and pull items or do whatever you want to do with items. This new feature is a mod integration.

##### [View here](../integrations/storage_drawers/drawer.md)

### New Peripherals

- #### Colony Integrator
We added the **Colony Integrator** that interacts with [MineColonies](https://www.curseforge.com/minecraft/mc-mods/minecolonies). You can use this peripheral to get information about your colony. It can be used as a [pocket upgrade](../items/pocket_computer.md) or as a block.

##### [View here](../peripherals/colony_integrator.md)

- #### Geo Scanner
The **Geo Scanner** provides information about blocks around it and information about the current chunk. You could use it to search the current chunk and nearby blocks for ores.

##### [View here](../peripherals/geo_scanner.md)

- #### Block Reader
With the **Block Reader** you can read the data of neighboring blocks and tile entites.

##### [View here](../peripherals/block_reader.md)

- #### NBT Storage
With the **NBT Storage** peripheral you are able to store tables or other values into a block as NBT data. You can read and write values to the block with the peripheral functions.

##### [View here](../peripherals/nbt_storage.md)

### New Turtles Upgrades
New powerful turtle upgrades!
With these small upgrades you finally can use any tools just from turtle inventories, perform right click on blocks, collect items in a small range, transport animals and much more! But be aware, the new abilities require fuel and most of them have a cooldown. Big thanks to SirEdvin who made these upgrades.

### New Ingame Documentation
Advanced Peripherals now uses [Patchouli](https://www.curseforge.com/minecraft/mc-mods/patchouli) to generate ingame documentation. You can now get quick information about the mod in-game, without the need for internet access!

<hr style="height: 0.2rem;background-color:var(--md-default-fg-color--lightest);border:none;">

## Small features and improvements

This update also provides a lot of small features and improvements.

---

#### Breaking changes

- We changed some function names of the ME Bridge and RS Bridge peripherals.
- Removed the Peripheral Proxy

---

#### New functions, events and translations

- Added the slot parameter to the functions of the [Inventory Manager](../peripherals/inventory_manager.md).
- Added `uuid` and `isHidden` return values to the chat event.
- Added a lot of new functions to the [Player Detector](../peripherals/player_detector.md).
- Added the `sendFormattedMessage` function to the chat box.
- Added russian translations by DrHesperus.

---

#### Improved mod integration
You can now connect supported blocks directly with a modem. We completely removed the Peripheral Proxy.

---

#### Support for relative and cardinal directions
You can now use relative directions (`right`, `left`, `front`, `back`, `top` `bottom`) and cardinal directions (`north`, `south`, `east`, `west`, `up`, `down`) at the same time.
**Example:**
```lua linenums="1"
-- Both of these will work
redstoneIntegrator.setOutput("north", true)
redstoneIntegrator.setOutput("right", true)
```

<hr style="height: 0.2rem;background-color:var(--md-default-fg-color--lightest);border:none;">

## Bug fixes

*\* Not all fixed bugs are listed here*

- Fixed server crashes with the RS Bridge
- Fixed chunky turtle performance issues
- Fixed that the redstone integrators lets pass redstone signal through it
- Fixed that the redstone integrator does not update blocks around it
- Improved chat event performance
Loading
Loading