Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Mob Bundle Tutorial:
- 1st Part (Item Part):
- 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:[{}]}}}
- 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:[{}]}}}]
- 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}
- 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
- 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
- 2nd Part (Effects Part):
- 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
- 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}'}}}]}}}
- 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 ~
- 4. Put this in a repeating command block, always active: effect give @e[tag=mobbundle] minecraft:invisibility 1 0 true
- 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 ~
- 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
- 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
- 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}
- 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
- 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}
- 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
- 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
- 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
- 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
- 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}'}}}}]
- 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
- 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
- 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]
- 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
- 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