execute store result score @s RNGscore run random value 0..90

#gunpowder
execute at @s[scores={RNGscore=..30}] run summon item_display ~ ~-2 ~ {teleport_duration:2,Tags:["CargoBarrelFake"],item:{id:"diamond_hoe",count:1,components:{"custom_model_data":{floats:[114.0f]}}},item_display:"fixed",width:1f,height:1f,Passengers:[{id:"hopper_minecart",LootTable:"chests:empty",DisplayState:{Name:"minecraft:crimson_wall_sign"},Invulnerable:1b,Silent:1b,Enabled:0b,CustomName:[{translate:"space.-8"},{text:"\uE026",color:"#7b7b00"},{translate:"space.-169"},{translate:"cargobarrel.gunpowder",color:"#a9a800",underlined:true},{translate:"space.-4096"}],Tags:["CargoHopperFake","CBGunpowder","fakebarrel"]}]}

#gold
execute at @s[scores={RNGscore=31..60}] run summon item_display ~ ~-2 ~ {teleport_duration:2,Tags:["CargoBarrelFake"],item:{id:"diamond_hoe",count:1,components:{"custom_model_data":{floats:[114.0f]}}},item_display:"fixed",width:1f,height:1f,Passengers:[{id:"hopper_minecart",LootTable:"chests:empty",DisplayState:{Name:"minecraft:crimson_wall_sign"},Invulnerable:1b,Silent:1b,Enabled:0b,CustomName:[{translate:"space.-8"},{text:"\uE026",color:"#7b7b00"},{translate:"space.-169"},{translate:"cargobarrel.gold",color:"#a9a800",underlined:true},{translate:"space.-4096"}],Tags:["CargoHopperFake","CBGold","fakebarrel"]}]}

#cannonballs
execute at @s[scores={RNGscore=61..65}] run summon item_display ~ ~-2 ~ {teleport_duration:2,Tags:["CargoBarrelFake"],item:{id:"diamond_hoe",count:1,components:{"custom_model_data":{floats:[114.0f]}}},item_display:"fixed",width:1f,height:1f,Passengers:[{id:"hopper_minecart",LootTable:"chests:empty",DisplayState:{Name:"minecraft:crimson_wall_sign"},Invulnerable:1b,Silent:1b,Enabled:0b,CustomName:[{translate:"space.-8"},{text:"\uE026",color:"#7b7b00"},{translate:"space.-169"},{translate:"cargobarrel.cannonball",color:"#a9a800",underlined:true},{translate:"space.-4096"}],Tags:["CargoHopperFake","CBCannonball","fakebarrel"]}]}

#weapons
execute at @s[scores={RNGscore=66..70}] run summon item_display ~ ~-2 ~ {teleport_duration:2,Tags:["CargoBarrelFake"],item:{id:"diamond_hoe",count:1,components:{"custom_model_data":{floats:[114.0f]}}},item_display:"fixed",width:1f,height:1f,Passengers:[{id:"hopper_minecart",LootTable:"chests:empty",DisplayState:{Name:"minecraft:crimson_wall_sign"},Invulnerable:1b,Silent:1b,Enabled:0b,CustomName:[{translate:"space.-8"},{text:"\uE026",color:"#7b7b00"},{translate:"space.-169"},{translate:"cargobarrel.weapons",color:"#a9a800",underlined:true},{translate:"space.-4096"}],Tags:["CargoHopperFake","CBWeapons","fakebarrel"]}]}

#movement
execute at @s[scores={RNGscore=71..80}] run summon item_display ~ ~-2 ~ {teleport_duration:2,Tags:["CargoBarrelFake"],item:{id:"diamond_hoe",count:1,components:{"custom_model_data":{floats:[114.0f]}}},item_display:"fixed",width:1f,height:1f,Passengers:[{id:"hopper_minecart",LootTable:"chests:empty",DisplayState:{Name:"minecraft:crimson_wall_sign"},Invulnerable:1b,Silent:1b,Enabled:0b,CustomName:[{translate:"space.-8"},{text:"\uE026",color:"#7b7b00"},{translate:"space.-169"},{translate:"cargobarrel.movement",color:"#a9a800",underlined:true},{translate:"space.-4096"}],Tags:["CargoHopperFake","CBMovement","fakebarrel"]}]}

#boarding
execute at @s[scores={RNGscore=81..90}] run summon item_display ~ ~-2 ~ {teleport_duration:2,Tags:["CargoBarrelFake"],item:{id:"diamond_hoe",count:1,components:{"custom_model_data":{floats:[114.0f]}}},item_display:"fixed",width:1f,height:1f,Passengers:[{id:"hopper_minecart",LootTable:"chests:empty",DisplayState:{Name:"minecraft:crimson_wall_sign"},Invulnerable:1b,Silent:1b,Enabled:0b,CustomName:[{translate:"space.-8"},{text:"\uE026",color:"#7b7b00"},{translate:"space.-169"},{translate:"cargobarrel.boarding",color:"#a9a800",underlined:true},{translate:"space.-4096"}],Tags:["CargoHopperFake","CBBoarding","fakebarrel"]}]}

kill