> For the complete documentation index, see [llms.txt](https://handbuch.kidslab.de/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://handbuch.kidslab.de/minecraft/tipps-and-tricks/automatisches-wechseln-des-inventars.md).

# Automatisches Wechseln des Inventars

Pro Inventarplatz können ja 64 Blöcke gesetzt werden:

![](/files/-MXBlMUBtPFfmLDsMBpg)

Wenn Du jetzt den normalen "Platziere" Befehl verwendest, kann es passieren, dass ein Inventar-Platz leer wird. Das führt zu folgender Fehlermeldung:

![](/files/-MXBlfWN8YgQlLlJKjeV)

Um diesen Fehler zu beheben, musst du also den Inventar-Platz wechseln. Hier findest du ein Beispiel, für ein [Unterprogramm](/minecraft/programme-and-disketten/unterprogramme.md), das dies automatisch für Dich erledigt:

![](/files/-MXBm2t0umP2YNYCZ1B8)

Was macht dieses Programm?

Es benutzt die Variable "F". Der Block "Setze Block" liefert den Wert "Falsch" zurück, wenn er nicht erfolgreich ist - zum Beispiel, weil das Inventar leer ist. Das nutzen wir, um den Inventar Platz zu wechseln, solange, bis wieder es wieder geht.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://handbuch.kidslab.de/minecraft/tipps-and-tricks/automatisches-wechseln-des-inventars.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
