Advertisement
UltraLio

Mob Bundle

Oct 23rd, 2022
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.00 KB | Gaming | 0 0
  1. Mob Bundle Tutorial:
  2.  
  3.  
  4.  
  5. 1st Part (Item Part):
  6.  
  7. 1. Put this in a repeating command block, always active: execute at @e[type=minecraft:item,nbt={Item:{id:"minecraft:end_crystal",Count:1b}}] if entity @e[type=minecraft:item,distance=..1,nbt={Item:{id:"minecraft:bundle",Count:1b}}] if entity @e[type=minecraft:item,distance=..1,nbt={Item:{id:"minecraft:soul_sand",Count:1b}}] if entity @e[type=minecraft:item,distance=..1,nbt={Item:{id:"minecraft:experience_bottle",Count:1b}}] if entity @e[type=minecraft:item,distance=..1,nbt={Item:{id:"minecraft:nether_star",Count:1b}}] run summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:bundle",Count:1b,tag:{display:{Name:'{"text":"Mob Bundle","italic":false}'},Enchantments:[{}]}}}
  8.  
  9. 2. Put this in a chain command block, conditional, always active, connected to 1st one: kill @e[type=minecraft:item,nbt=!{Item:{id:"minecraft:bundle",Count:1b,tag:{display:{Name:'{"text":"Mob Bundle","italic":false}'},Enchantments:[{}]}}}]
  10.  
  11. 3. Put this in a chain command block, conditional, always active, connected to 2nd one: execute at @e[type=minecraft:item,nbt={Item:{id:"minecraft:bundle",Count:1b,tag:{display:{Name:'{"text":"Mob Bundle","italic":false}'},Enchantments:[{}]}}}] run summon minecraft:area_effect_cloud ~ ~0.5 ~ {Particle:"soul_fire_flame",Radius:1f,RadiusPerTick:0.1f,Duration:10}
  12.  
  13. 4. Put this in a chain command block, conditional, always active, connected to 3rd one: execute at @e[type=minecraft:item,nbt={Item:{id:"minecraft:bundle",Count:1b,tag:{display:{Name:'{"text":"Mob Bundle","italic":false}'},Enchantments:[{}]}}}] run playsound minecraft:block.fire.ambient ambient @a ~ ~0.5 ~ 1 2 1
  14.  
  15. 5. Put this in a chain command block, conditional, always active, connected to 5th one: scoreboard objectives add mobbundle_sneak minecraft.custom:minecraft.sneak_time
  16.  
  17.  
  18. 2nd Part (Effects Part):
  19.  
  20. 1. Put this in a repeating command block, always active: execute as @a unless entity @s[nbt={SelectedItem:{id:"minecraft:bundle",Count:1b,tag:{display:{Name:'{"text":"Mob Bundle","italic":false}'},Enchantments:[{}]}}}] run scoreboard players set @s mobbundle_sneak 0
  21.  
  22. 2. Put this in a repeating command block, always active: execute as @e[type=minecraft:item,nbt={Item:{id:"minecraft:bundle",Count:1b,tag:{display:{Name:'{"text":"Mob Bundle","italic":false}'},Enchantments:[{}]}}}] at @s if entity @e[tag=mobbundle,distance=..2] if entity @e[tag=mobbundle,limit=1] run data merge entity @s {Item:{id:"minecraft:bundle",Count:1b,tag:{display:{Name:'{"text":"Mob Bundle","italic":false}'},Enchantments:[{}],Items:[{id:"minecraft:enchanted_book",Count:1b,tag:{display:{Name:'{"text":"Soul Book","italic":false}'}}}]}}}
  23.  
  24. 3. Put this in a repeating command block, always active: execute as @e[tag=mobbundle] at @a[nbt={SelectedItem:{id:"minecraft:bundle",Count:1b,tag:{display:{Name:'{"text":"Mob Bundle","italic":false}'},Enchantments:[{}],Items:[{id:"minecraft:enchanted_book",Count:1b,tag:{display:{Name:'{"text":"Soul Book","italic":false}'}}}]}}}] run tp @s ~ ~3 ~
  25.  
  26. 4. Put this in a repeating command block, always active: effect give @e[tag=mobbundle] minecraft:invisibility 1 0 true
  27.  
  28. 5. Put this in a repeating command block, always active: execute at @e[type=minecraft:item,nbt={Item:{id:"minecraft:enchanted_book",Count:1b,tag:{display:{Name:'{"text":"Soul Book","italic":false}'}}}}] unless block ~ ~-0.5 ~ minecraft:air run tp @e[tag=mobbundle] ~ ~0.5 ~
  29.  
  30. 6. Put this in a repeating command block, always active: execute as @e[type=!minecraft:area_effect_cloud,type=!minecraft:player,type=!minecraft:item,tag=!mobbundle] at @s if entity @e[type=minecraft:item,nbt={Item:{id:"minecraft:bundle",Count:1b,tag:{display:{Name:'{"text":"Mob Bundle","italic":false}'},Enchantments:[{}]}}},distance=..2] unless entity @e[tag=mobbundle] run particle minecraft:soul_fire_flame ~ ~1 ~ 0.5 0.5 0.5 0.15 150 force @a
  31.  
  32. 7. Put this in a chain command block, conditional, always active, connected to 6th one: execute as @e[type=!minecraft:area_effect_cloud,type=!minecraft:player,type=!minecraft:item,tag=!mobbundle] at @s if entity @e[type=minecraft:item,nbt={Item:{id:"minecraft:bundle",Count:1b,tag:{display:{Name:'{"text":"Mob Bundle","italic":false}'},Enchantments:[{}]}}},distance=..2] unless entity @e[tag=mobbundle] run playsound minecraft:item.bundle.drop_contents ambient @a ~ ~1 ~ 1 0 1
  33.  
  34. 8. Put this in a chain command block, conditional, always active, connected to 7th one: execute as @e[type=!minecraft:area_effect_cloud,type=!minecraft:player,type=!minecraft:item,tag=!mobbunde] at @s if entity @e[type=minecraft:item,nbt={Item:{id:"minecraft:bundle",Count:1b,tag:{display:{Name:'{"text":"Mob Bundle","italic":false}'},Enchantments:[{}]}}},distance=..2] unless entity @e[tag=mobbundle] run data merge entity @s {Invulnerable:1b,NoAI:1b,NoGravity:1b,Silent:1b}
  35.  
  36. 9. Put this in a chain command block, conditional, always active, connected to 8th one: execute as @e[type=!minecraft:area_effect_cloud,type=!minecraft:player,type=!minecraft:item,tag=!mobbundle] at @s if entity @e[type=minecraft:item,nbt={Item:{id:"minecraft:bundle",Count:1b,tag:{display:{Name:'{"text":"Mob Bundle","italic":false}'},Enchantments:[{}]}}},distance=..2] unless entity @e[tag=mobbundle] run tag @s add mobbundle
  37.  
  38. 10. Put this in a repeating command block, always active: execute at @e[type=minecraft:item,nbt={Item:{id:"minecraft:enchanted_book",Count:1b,tag:{display:{Name:'{"text":"Soul Book","italic":false}'}}}}] unless block ~ ~-0.25 ~ minecraft:air run execute as @e[tag=mobbundle] run data merge entity @s {Invulnerable:0b,NoAI:0b,NoGravity:0b,PersistenceRequired:0b,Silent:0b}
  39.  
  40. 11. Put this in a chain command block, conditional, always active, connected to 10th one: execute at @e[type=minecraft:item,nbt={Item:{id:"minecraft:enchanted_book",Count:1b,tag:{display:{Name:'{"text":"Soul Book","italic":false}'}}}}] unless block ~ ~-0.25 ~ minecraft:air run effect clear @e[tag=mobbundle] minecraft:invisibility
  41.  
  42. 12. Put this in a chain command block, conditional, always active, connected to 11th one: execute at @e[type=minecraft:item,nbt={Item:{id:"minecraft:enchanted_book",Count:1b,tag:{display:{Name:'{"text":"Soul Book","italic":false}'}}}}] unless block ~ ~-0.25 ~ minecraft:air run execute at @e[tag=mobbundle] run particle minecraft:soul_fire_flame ~ ~1 ~ 0.5 0.5 0.5 0.15 150 force @a
  43.  
  44. 13. Put this in a chain command block, conditional, always active, connected to 12th one: execute at @e[type=minecraft:item,nbt={Item:{id:"minecraft:enchanted_book",Count:1b,tag:{display:{Name:'{"text":"Soul Book","italic":false}'}}}}] unless block ~ ~-0.25 ~ minecraft:air run execute at @e[tag=mobbundle] run playsound minecraft:block.fire.ambient ambient @a ~ ~1 ~ 1 2 1
  45.  
  46. 14. Put this in a chain command block, conditional, always active, connected to 13th one: execute at @e[type=minecraft:item,nbt={Item:{id:"minecraft:enchanted_book",Count:1b,tag:{display:{Name:'{"text":"Soul Book","italic":false}'}}}}] unless block ~ ~-0.25 ~ minecraft:air run tag @e[tag=mobbundle] remove mobbundle
  47.  
  48. 15. Put this in a chain command block, conditional, always active, connected to 14th one: kill @e[type=minecraft:item,nbt={Item:{id:"minecraft:enchanted_book",Count:1b,tag:{display:{Name:'{"text":"Soul Book","italic":false}'}}}}]
  49.  
  50. 16. Put this in a repeating command block, always active: execute at @a[nbt={SelectedItem:{id:"minecraft:bundle",Count:1b,tag:{display:{Name:'{"text":"Mob Bundle","italic":false}'},Enchantments:[{}],Items:[{id:"minecraft:enchanted_book",Count:1b,tag:{display:{Name:'{"text":"Soul Book","italic":false}'}}}]}}},scores={mobbundle_sneak=1..}] run particle minecraft:soul_fire_flame ~ ~1 ~ 0.5 0.5 0.5 0.15 150 force @a
  51.  
  52. 17. Put this in a chain command block, conditional, always active, connected to 16th one: execute at @a[nbt={SelectedItem:{id:"minecraft:bundle",Count:1b,tag:{display:{Name:'{"text":"Mob Bundle","italic":false}'},Enchantments:[{}],Items:[{id:"minecraft:enchanted_book",Count:1b,tag:{display:{Name:'{"text":"Soul Book","italic":false}'}}}]}}},scores={mobbundle_sneak=1..}] run playsound minecraft:block.fire.ambient ambient @a ~ ~1 ~ 1 2 1
  53.  
  54. 18. Put this in a chain command block, conditional, always active, connected to 17th one: execute at @a[nbt={SelectedItem:{id:"minecraft:bundle",Count:1b,tag:{display:{Name:'{"text":"Mob Bundle","italic":false}'},Enchantments:[{}],Items:[{id:"minecraft:enchanted_book",Count:1b,tag:{display:{Name:'{"text":"Soul Book","italic":false}'}}}]}}},scores={mobbundle_sneak=1..}] run kill @e[tag=mobbundle]
  55.  
  56. 19. Put this in a chain command block, conditional, always active, connected to 18th one: item replace entity @a[nbt={SelectedItem:{id:"minecraft:bundle",Count:1b,tag:{display:{Name:'{"text":"Mob Bundle","italic":false}'},Enchantments:[{}],Items:[{id:"minecraft:enchanted_book",Count:1b,tag:{display:{Name:'{"text":"Soul Book","italic":false}'}}}]}}},scores={mobbundle_sneak=1..}] weapon.mainhand with minecraft:bundle{display:{Name:'{"text":"Mob Bundle","italic":false}'},Enchantments:[{}]} 1
  57.  
  58. 20. Put this in a chain command block, conditional, always active, connected to 19th one: scoreboard players set @a[scores={mobbundle_sneak=1..}] mobbundle_sneak 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement