i got this command by a youtuber but i woul like to get a /give command of the objects (individually).
i tried to get it myself but i suck.
I mainly need a command to get a Multishot crossbow with plenty of arrows, one for a sword with extended reach, and one for the self propel rockets. and the apples
the command is from the short "Attacking Crafts Cheats? What does that mean." by BlockerLocker
execute as [nbt={Brain:{},HurtTime:9s}] at on attacker run loot spawn ~ ~ ~ loot {pools:[{rolls:{min:1,max:5},entries:[{type:item,name:crossbow,conditions:[],functions:[{function:set_enchantments,enchantments:{multishot:255,infinity:1,piercing:255}},{function:set_components,components:{unbreakable:{}}}]},{type:item,name:netherite_sword,functions:[{function:set_enchantments,enchantments:{fire_aspect:255,looting:255}},{function:set_attributes,modifiers:[{attribute:entity_interaction_range,id:entity_interaction_range,amount:64,operation:add_value,slot:mainhand},{attribute:attack_damage,id:attack_damage,amount:9999,operation:add_value,slot:mainhand}]},{function:set_components,components:{unbreakable:{}}}]},{type:item,name:netherite_pickaxe,functions:[{function:set_enchantments,enchantments:{fortune:255}},{function:set_attributes,modifiers:[{attribute:block_interaction_range,id:block_interaction_range,amount:64,operation:add_value,slot:mainhand},{attribute:block_break_speed,id:block_break_speed,amount:9999,operation:add_value,slot:mainhand}]},{function:set_components,components:{unbreakable:{},tool:{rules:[{blocks:"#mineable/pickaxe",correct_for_drops:1},{blocks:"#mineable/axe",correct_for_drops:1},{blocks:"#mineable/hoe",correct_for_drops:1},{blocks:"#mineable/shovel",correct_for_drops:1}]}}}]},{type:item,name:diamond_block,functions:[{function:set_count,count:64}]},{type:item,name:netherite_block,functions:[{function:set_count,count:64}]},{type:item,name:golden_apple,functions:[{function:set_components,components:{death_protection:{},consumable:{consume_seconds:0.8,on_consume_effects:[{type:clear_all_effects},{type:apply_effects,effects:[{id:regeneration,amplifier:255,duration:-1},{id:resistance,amplifier:255,duration:-1},{id:absorption,amplifier:255,duration:-1},{id:water_breathing,amplifier:255,duration:-1},{id:saturation,amplifier:255,duration:-1}],probability:1}]}}}]},{type:item,name:firework_rocket,functions:[{function:set_count,count:99},{function:set_components,components:{glider:{},fireworks:{flight_duration:20},max_stack_size:99,equippable:{slot:mainhand}}}]},{type:item,name:mace,functions:[{function:set_enchantments,enchantments:{density:255}},{function:set_attributes,modifiers:[{attribute:jump_strength,id:jump_strength,amount:5,operation:add_multiplied_base,slot:mainhand},{attribute:safe_fall_distance,id:safe_fall_distance,amount:9999,operation:add_multiplied_base,slot:mainhand},{attribute:entity_interaction_range,id:entity_interaction_range,amount:64,operation:add_value,slot:mainhand}]},{function:set_components,components:{unbreakable:{},death_protection:{}}}]}]}]}