Bonjour je recherche quelqu'un qui connait bien le language JSON pour mettre ça dans un datapack:
Et je met à votre disposition le fichier dans lequel insérer les items ci dessus et leur chance de les obtenir (en remplaçant les items déjà dans le fichier par ceux là)
Merci infiniment
Code:
#les % c'est la chance de l'obtenir
#Crate commune:
3% minecraft:stick{display:{Name:'[{"text":"Batte","color":"#663300","bold":true},{"text":"","color":"#663300","bold":false}]'},Enchantments:[{id:"minecraft:knockback",lvl:5},{id:"minecraft:power",lvl:3}]} 1
2% minecraft:diamond{display:{Lore:['[{"text":"Des diamants !","color":"aqua"}]']}} 3
7% minecraft:iron_sword{display:{Name:'[{"text":"Épée commune","bold":true,"color":"white"}]'},Enchantments:[{id:"minecraft:sharpness",lvl:2},{id:"minecraft:fire_aspect",lvl:1},{id:"minecraft:looting",lvl:1}]} 1
7% minecraft:iron_axe{display:{Name:'[{"text":"Hache commune","bold":true,"color":"white"}]'},Enchantments:[{id:"minecraft:efficiency",lvl:2},{id:"minecraft:unbreaking",lvl:1}]} 1
7% minecraft:iron_pickaxe{display:{Name:'[{"text":"Pioche commune","bold":true,"color":"white"}]'},Enchantments:[{id:"minecraft:efficiency",lvl:3},{id:"minecraft:unbreaking",lvl:1}]} 1
7% minecraft:iron_hoe{display:{Name:'[{"text":"Houe commune","color":"white","bold":true},{"text":"","color":"white","bold":false}]'},Enchantments:[{id:"minecraft:efficiency",lvl:3},{id:"minecraft:unbreaking",lvl:2}]} 1
7% minecraft:iron_shovel{display:{Name:'[{"text":"Pelle commune","color":"white","bold":true},{"text":"","color":"white","bold":false}]'},Enchantments:[{id:"minecraft:efficiency",lvl:3},{id:"minecraft:unbreaking",lvl:1}]} 1
7% minecraft:iron_helmet{display:{Name:'[{"text":"Casque commun","color":"white","bold":true},{"text":"","color":"white","bold":false}]'},Enchantments:[{id:"minecraft:protection",lvl:2},{id:"minecraft:projectile_protection",lvl:1},{id:"minecraft:blast_protection",lvl:1},{id:"minecraft:unbreaking",lvl:1}]} 1
7% minecraft:iron_chestplate{display:{Name:'[{"text":"Plastron commun","color":"white","bold":true},{"text":"","color":"white","bold":false}]'},Enchantments:[{id:"minecraft:protection",lvl:2},{id:"minecraft:projectile_protection",lvl:1},{id:"minecraft:blast_protection",lvl:1},{id:"minecraft:unbreaking",lvl:1}]} 1
7% minecraft:iron_leggings{display:{Name:'[{"text":"Jambières communes","color":"white","bold":true},{"text":"","color":"white","bold":false}]'},Enchantments:[{id:"minecraft:protection",lvl:2},{id:"minecraft:projectile_protection",lvl:1},{id:"minecraft:blast_protection",lvl:1},{id:"minecraft:unbreaking",lvl:1}]} 1
7% minecraft:iron_boots{display:{Name:'[{"text":"Bottes communes","color":"white","bold":true},{"text":"","color":"white","bold":false}]'},Enchantments:[{id:"minecraft:protection",lvl:2},{id:"minecraft:projectile_protection",lvl:1},{id:"minecraft:blast_protection",lvl:1},{id:"minecraft:unbreaking",lvl:1}]} 1
5% minecraft:oak_log 64
10% minecraft:dirt 64
1% minecraft:mycelium 10
6% minecraft:chest{display:{Name:"\"Tombe\"",Lore:["\"Les restes d'un inconnu\""]},BlockEntityTag:{Items:[{Slot:0,id:dirt,Count:1},{Slot:1,id:dirt,Count:1},{Slot:2,id:dirt,Count:1},{Slot:3,id:gravel,Count:1},{Slot:4,id:gravel,Count:1},{Slot:5,id:gravel,Count:1},{Slot:6,id:dirt,Count:1},{Slot:7,id:dirt,Count:1},{Slot:8,id:dirt,Count:1},{Slot:9,id:dirt,Count:1},{Slot:10,id:dirt,Count:1},{Slot:11,id:gravel,Count:1},{Slot:12,id:bone,Count:5},{Slot:13,id:bone,Count:5},{Slot:14,id:bone,Count:5},{Slot:15,id:gravel,Count:1},{Slot:16,id:dirt,Count:1},{Slot:17,id:dirt,Count:1},{Slot:18,id:dirt,Count:1},{Slot:19,id:dirt,Count:1},{Slot:20,id:dirt,Count:1},{Slot:21,id:gravel,Count:1},{Slot:22,id:gravel,Count:1},{Slot:23,id:gravel,Count:1},{Slot:24,id:dirt,Count:1},{Slot:25,id:dirt,Count:1},{Slot:26,id:dirt,Count:1}]}} 1
10% minecraft:firework_rocket{Fireworks:{Explosions:[{Type:1,Trail:1,Colors:[I;2437522],FadeColors:[I;2651799,6719955]}],Flight:3}} 20
Merci infiniment