搬运一批Bedrock wiki内容,完善翻译
This commit is contained in:
125
docs/wiki/loot/randomized-structure-loot.md
Normal file
125
docs/wiki/loot/randomized-structure-loot.md
Normal file
@@ -0,0 +1,125 @@
|
||||
---
|
||||
title: Randomized Structure Loot
|
||||
category: Tutorials
|
||||
mentions:
|
||||
- MedicalJewel105
|
||||
- SirLich
|
||||
- SmokeyStack
|
||||
- Ciosciaa
|
||||
- rebrainertv
|
||||
tags:
|
||||
- easy
|
||||
---
|
||||
|
||||
Adding loot tables to containers in structure is easy, you need to have a PC and your choice of either [NBT Studio](https://github.com/tryashtar/nbt-studio/releases/download/v1.14.1/NbtStudio.exe) (executable) or [Loot Tabler](https://mcbe-essentials.github.io/structure-editor/loot-tabler) (browser application).
|
||||
|
||||
## Setup
|
||||
### Creating the Loot Table
|
||||
|
||||
To start, create the directory `BP/loot_tables/chests` and create your loot table file here.
|
||||
|
||||
You can learn how to make loot tables in [Beginners Guide](/guide/loot-table)
|
||||
|
||||
<CodeHeader>BP/loot_tables/chests/my_structure_loot.json</CodeHeader>
|
||||
|
||||
```json
|
||||
{
|
||||
"pools": [
|
||||
{
|
||||
"rolls": {
|
||||
"min": 8,
|
||||
"max": 10
|
||||
},
|
||||
"entries": [
|
||||
{
|
||||
"type": "item",
|
||||
"name": "minecraft:glass_bottle",
|
||||
"functions": [
|
||||
{
|
||||
"function": "set_count",
|
||||
"count": {
|
||||
"min": 4,
|
||||
"max": 6
|
||||
}
|
||||
}
|
||||
],
|
||||
"weight": 1
|
||||
},
|
||||
{
|
||||
"type": "item",
|
||||
"name": "minecraft:potion",
|
||||
"functions": [
|
||||
{
|
||||
"function": "set_count",
|
||||
"count": {
|
||||
"min": 4,
|
||||
"max": 6
|
||||
}
|
||||
}
|
||||
],
|
||||
"weight": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
### Exporting Structure
|
||||
|
||||
Once you have created your loot table, export your structure into `BP/structures`. Then follow the steps for either NBT Studio or Loot Tabler
|
||||
|
||||

|
||||
|
||||
## NBT Studio (Executable)
|
||||
### Software Preparation
|
||||
|
||||
Download and launch [NBT Studio](https://github.com/tryashtar/nbt-studio/releases/download/v1.14.1/NbtStudio.exe)
|
||||
|
||||
### Adding the Loot Table
|
||||
|
||||
Launch NBT Studio and open file `(Ctrl + O)`
|
||||
|
||||

|
||||
|
||||
Find your container (Ctrl + F)
|
||||
|
||||

|
||||
|
||||
Navigate to your container, `block_position_data` > `block_entity_data`. Add a string tag
|
||||
|
||||

|
||||
|
||||
Add `LootTable` and the file path to your loot table
|
||||
|
||||

|
||||
|
||||
Save changes (Ctrl + S)
|
||||
|
||||
## Loot Tabler (Browser Application)
|
||||
|
||||
:::tip
|
||||
To export a structure on mobile devices, [Download this pack.](https://mcpedl.com/export-structure-button-android-addon/)
|
||||
:::
|
||||
|
||||
### Adding the Loot Table
|
||||
|
||||
Open the website and click "Upload". Choose your structure file.
|
||||
|
||||

|
||||
|
||||
Find your container in the containers list, making use of the information displayed under "Container Options"
|
||||
|
||||

|
||||
|
||||
Under "Loot Table", enter the path to your loot table. Set "Loot Table Seed" to blank or `0` if you want the loot to generate randomly. If you want the loot table to generate consistently, enter a specific value.
|
||||
|
||||

|
||||
|
||||
Download your structure file and place it in `BP/structures`.
|
||||
|
||||
## Testing
|
||||
|
||||
Load your structure and open the container
|
||||
|
||||

|
||||
Reference in New Issue
Block a user