-
-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' of https://github.com/gabber235/TypeWriter int…
…o develop
- Loading branch information
Showing
5 changed files
with
47 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 46 additions & 2 deletions
48
documentation/docs/docs/03-creating-stories/01-interactions/02-items.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,48 @@ | ||
import Player from "@site/src/components/Player"; | ||
|
||
# Giving items | ||
:::info | ||
This page is currently being written! If you want to help us out with writing this page join the [Discord](https://discord.gg/HtbKyuDDBw) and create a question. | ||
|
||
:::info[First interaction] | ||
It's best to first read [First Interaction](./index.mdx) before starting this tutorial. | ||
::: | ||
:::warning[1.20.5+] | ||
In Minecraft version 1.20.5+, the item system will change, and this system will be deprecated until updated. | ||
::: | ||
|
||
In this tutorial, you will learn how to give items in your interactions. | ||
|
||
## Adding the give item | ||
|
||
To add a give item entry, follow these steps: | ||
|
||
1. Right-click on your entry and select `+ Link with ...`. | ||
2. Search for `Add give item` and click on the + icon to add it to your sequence. | ||
|
||
![Add-give-item](../../assets/interactions/add-give-item.png) | ||
|
||
## Configuring the give item | ||
|
||
The giving item entry has two types of setting the item, by using the item capture or configuring it yourself. | ||
|
||
### Using the item capture | ||
|
||
The easy way is to use the item capture because it just copies the item that you are currently holding in-game to the panel. To do this, just click on the blue-white camera icon next to the `item` field. | ||
|
||
<Player url={require("../../assets/interactions/item-capturer.webm").default} /> | ||
|
||
### Configuring it yourself | ||
|
||
You can also configure the item yourself using the item editor. This can be done by opening the `item` field. You have six different things that you can configure: | ||
|
||
1. **Material**: This is the item that the player will get. | ||
2. **Amount**: The amount of items given to the player. | ||
3. **Name**: This is the name of the item. | ||
4. **Lore**: The lore of the item. | ||
5. **Flags**: Specific options for the item. | ||
6. **NBT**: Special data for the item. | ||
|
||
## Result | ||
|
||
After you configured your item, you can test your interaction by clicking the publish button, and then it should look something like this: | ||
|
||
<Player url={require("../../assets/interactions/final-result-give-item.webm").default}/> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+949 KB
documentation/docs/docs/assets/interactions/final-result-give-item.webm
Binary file not shown.
Binary file not shown.