How To Make A Json File For Minecraft, How Create Json Config File

On Minecraft Bedrock Edition, I have just created a JSON file that creates a chest with random loot in it. The problem is that I don”t know the command to get the chest that contains random loot. Here is what I did.

Đang xem: How to make a json file for minecraft

I used https://minecraft.tools/en/loots.php to create a loot table that gives you a certain amount of random items.

I then saved this in a JSON file and put it in the following directory along with a manifest JSON file in order for Minecraft to recognise it.

*

The problem I am now having is that I don”t know how to use the give command in Minecraft to give me a chest with random loot that uses the JSON file. The website I used to create the random loot table generator mentions this is the command you would use to get the chest with random loot from the JSON file loot table created (in Java Editon though):

/give
p minecraft:chest 1 0 {BlockEntityTag:{LootTable:”mctools:chests/loot_table”}}The problems I am having with this are that I don”t know what directory I would need to put in to access the JSON file loot table, I am also not sure what other syntax would be needed because I know the idea of using minecraft:chest only works for Minecraft: Java Edition and for Minecraft: Bedrock Edition you would have to do something different. What I am asking is, what type of command do I need to use to give me a chest which uses the JSON file loot table?

minecraft-commands minecraft-bedrock-edition
Share
Improve this question
Follow
edited Jul 20 “20 at 20:01

*

ExpertCoder14
8,62922 gold badges2424 silver badges5050 bronze badges
asked Jul 20 “20 at 18:17

*

DigitalRookie4DigitalRookie4
911 bronze badge
3
Add a comment |

2 Answers 2

Active Oldest Votes
0
The loot tables determine spoils of randomly generated dungeon loot, but don”t give you a way to spawn them directly.

Read more: Lost Legend Of The Valarjar : Wow Lost Legend Of The Valarjar » Battleboost

A better way of doing this is to fill several chests with loot load-outs. You can then copy these chests by Ctrl+pick-block to duplicate them. This will allow you to place them in a dispenser or dropper and have them dispensed to the player. The player can then place them down themselves to retrieve the items.

Share
Improve this answer
Follow
answered Jul 21 “20 at 7:39

*

peabodypeabody
52222 silver badges55 bronze badges
2
Add a comment |
-1
The location you would specify the loot table in Minecraft Java Edition is in the NBT tags. Notice how the command the website gave you is only for Java Edition. In Bedrock, you come across a roadblock: you can”t specify NBT. If you click on the link, you can see that there are some workarounds, but unfortunately there aren”t any for loot tables.

Read more: wow mandate of the watchers

Therefore, you couldn”t possibly be able to give yourself a chest with a loot table using commands, because there is no place to specify it.

Share
Improve this answer
Follow
answered Jul 20 “20 at 18:28

*

ExpertCoder14ExpertCoder14
8,62922 gold badges2424 silver badges5050 bronze badges
11
| Show 6
more comments

Not the answer you're looking for? Browse other questions tagged minecraft-commands minecraft-bedrock-edition or ask your own question.

Screenshot of the Week

*

Overlooking a Frozen Dam in Horizon Zero Dawn by arghtype
Submit your photo Hall of fame
Featured on Meta
Linked
17
Is it possible to use NBT tags in commands in Minecraft Bedrock Edition?
Related
0
How do I add a loot table to an item in a loot table in minecraft?
1
How to make loot tables work in 1.14?
2
Minecraft Windows 10 edition testfor command
0
Can I make the tellraw command read from a JSON file?
1
Can you put diamond armor on skeletons via command using Pocket Edition?
Hot Network Questions more hot questions
Arqade
Company
Stack Exchange Network
site design / logo © 2021 Stack Exchange Inc; user contributions licensed under cc by-sa. rev2021.3.25.38912

Leave a Comment