Deific Lands Direct Hit Showcase

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ส.ค. 2024
  • As far as command blocks go, I've really enjoyed making weapons from other games in minecraft. Team Fortress Two is one of my favorites, with the Direct Hit arguably being my favorite weapon in the entire game.
    (Sorry about the bad video quality, I really don't know how to edit videos.)
    Here's the Commands Used:
    1. A loaded crossbow with the name "The Direct Hit" (In Cyan) is replaced with one with a Swiftness Tipped Arrow- The Arrow also has the effect Levitation (to launch the mob into the air), and Bad Luck on it, which is what is detected when the exploding happens.
    execute at @a[nbt={SelectedItem:{id:"minecraft:crossbow",Count:1b,tag:{display:{Name:"{\"text\":\"The Direct Hit\",\"color\":\"dark_aqua\",\"italic\":false}"},ChargedProjectiles:[{id:"minecraft:arrow",Count:1b},{},{}],Charged:1b}}}] run replaceitem entity @p weapon.mainhand minecraft:crossbow{display:{Name:"{\"text\":\"The Direct Hit\",\"color\":\"dark_aqua\",\"italic\":false}",Lore:["{\"text\":\"Will explode enemies launched airborne\"}","{\"text\":\"by this crossbow or by other methods.\"}"]},Unbreakable:1b,Enchantments:[{id:"minecraft:quick_charge",lvl:4s}],ChargedProjectiles:[{id:"minecraft:tipped_arrow",Count:1b,tag:{CustomPotionEffects:[{Id:25b,Amplifier:10b,Duration:20},{Id:27b,Amplifier:10b,Duration:20}],Potion:"minecraft:swiftness",CustomPotionColor:16753152}},{},{}],Charged:1b} 1
    2. A lit creeper is summoned at the creature with the "Bad Luck" effect, with a fuse of 0.
    execute at @e[nbt={ActiveEffects:[{Id:27b,Amplifier:10b}]}] if blocks ~ ~-1.5 ~ ~ ~ ~ -246 200 646 all run summon minecraft:creeper ~ ~ ~ {Fuse:1,ignited:1b}
    Then, Levitation and Bad Luck are cleared from the mob.
    execute at @e[nbt={ActiveEffects:[{Id:27b,Amplifier:10b}]}] if blocks ~ ~-1.5 ~ ~ ~ ~ -245 200 666 all run effect clear @e[limit=1,sort=nearest] minecraft:levitation
    effect clear @e[nbt={ActiveEffects:[{Id:27b,Amplifier:10b}]}] minecraft:unluck
    3. And to make the "rockets" explode on contact with a block, a lit creeper is spawned on an arrow of swiftness that is stuck into the ground.
    execute at @e[type=arrow,nbt={inGround:1b,Potion:"minecraft:swiftness"}] run summon creeper ~ ~ ~ {Fuse:1,ignited:1b,ExplosionRadius:1b}
    And the arrow is killed.
    /kill @e[type=arrow,nbt={inGround:1b,Potion:"minecraft:swiftness"}]

ความคิดเห็น •