dtar’s Cool Minecraft Commands
- Makes arrows drop non-exploding tnt that deals a lot of damage
- First Command (command block):
- /execute at @e[type=minecraft:arrow] run summon minecraft:potion ~ ~ ~ {Item:{id:"minecraft:tnt",Count:1,tag:{CustomPotionEffects:[{Id:7,Duration:1,Amplifier:255,ShowParticles:0b}],CustomPotionColor:15879758}}}
- Repeat
- Unconditional
- Always Active
- Blows up every entity in the world
- First Command (command block):
- /execute at @e run summon fireball ~ ~2 ~ {ExplosionPower:<var#1>,Motion:[0.0,-1.0,0.0]}
- <var#1> - Explosion Power
- Impulse
- Unconditional
- Needs Redstone
- Change ‘@e’ to ‘@a’ if you want it to blow up all players instead of all entities
- Creates particles when on the ground
- First Command (command block):
- /execute at @a unless block ~ ~-1 ~ air unless block ~ ~ ~ minecraft:water run particle minecraft:<var#1> ~ ~.125 ~ .15 0 .15 0.01 <var#2>
- <var#1> - Particle Effect
- Type = Particle Effect Name
- Repeat
- Unconditional
- Needs Redstone
- Stacks mobs on top of each other
- First Command:
- /summon minecraft:<var#1> ~ ~1 ~ {Passengers:[{id:<var#2>}]}
- Gives extra enchanting levels to any item
- First Command:
- /give @p minecraft:<var#1>[enchantments={levels:{<var#2>:255}}]
- <var#1> - Item to be Enchanted
- If the command turns red, you may have a space somewhere in your command
- Morphs you into an animal (before starting, name your animal “morph”)
- First Command (chat):
- /team join @e[name=morph]
- /team modify morph collisionRule never
- Fifth Command (command block):
- /execute if entity @e[name=morph] run effect give @a[team=morph] minecraft:invisibility 1 0 true
- Repeat
- Unconditional
- Always Active
- Sixth Command (command block):
- /tp @e[team=morph] <var#1>
- Chain (from Fifth Command)
- Unconditional
- Always Active
- Displays joining message and custom player message
- First Command (command block):
- /tellraw @a [{"text":"<var#1> joined the game","color":"yellow"}]
- Impulse
- Unconditional
- Needs Redstone
- Second Command (command block):
- Impulse
- Unconditional
- Needs Redstone
- Name: “<var#1>”
- The custom player will whisper to the other players
- Creates a bossbar
- First Command (chat):
- /bossbar add <var#1> "<var#1>"
- /scoreboard objectives add health dummy
- Third Command (command block):
- /execute if entity @e[tag=boss]
- Repeat
- Unconditional
- Always Active
- Fourth Command (command block (comparator from Third Command)):
- /execute store result bossbar minecraft:<var#1> max run data get entity @e[tag=boss,limit=1] Health
- Impulse
- Unconditional
- Needs Redstone
- Fifth Command (command block):
- /execute store result bossbar minecraft:<var#1> value run data get entity @e[tag=boss,limit=1] Health
- Repeat
- Unconditional
- Always Active
- Sixth Command (command block):
- /execute if entity @e[tag=boss] run bossbar set minecraft:<var#1> players @a
- Chain (from Fifth Command)
- Unconditional
- Always Active
- Seventh Command (command block):
- /execute unless entity @e[tag=boss] run bossbar set minecraft:<var#1> players
- Chain (from Sixth Command)
- Unconditional
- Always Active
- Eighth Command (command block):
- /execute as @e[tag=boss] store result score @s health run data get entity @s Health
- Chain (from Seventh Command)
- Unconditional
- Always Active
- Ninth Command (command block):
- /bossbar set minecraft:<var#1> name [{"text":"<var#1>: "},{"score":{"name":"@e[tag=boss,limit=1]","objective":"health"}},{"text":" HP"}]
- Chain (from Eighth Command)
- Unconditional
- Always Active
- If you want to summon a boss do:
- /summon <var#1> ~ ~ ~ {Tags:[boss]}
- Uses a minecart to make a chair that you can sit in
- First Command (command block):
- /execute unless entity @e[tag=chair] run summon minecart ~ ~ ~ {Tags:[chair]}
- Repeat
- Unconditional
- Always Active
- Second Command (command block):
- /tp @e[tag=chair] ~-0.1 ~0.35 ~ facing ~-0.15 ~0.35 ~100
- Repeat
- Unconditional
- Always Active
- You can change the coordinates for a better effect
- Put the command blocks under where you want the chair to be
- Spawns a mob with a custom health
- First Command:
- /summon minecraft:<var#1> ~ ~1 ~ {Attributes:[{Name:"generic.max_health",Base:<var#2>}],Health:<var#2>}
- Shoots lasers from one mob to all other mobs
- First Command (command block):
- /execute at @e[name=<var#1>] facing entity @e[distance=0..20] feet run particle minecraft:dragon_breath ~ ~1 ~ ^ ^ ^1000000 0.000001 0 normal
- Repeat
- Unconditional
- Always Active
- The particle minecraft:dragon_breath looks good for lasers, but you can try any other particle effects
- Spawns a mob with a custom name
- First Command:
- /summon minecraft:<var#1> ~ ~ ~ {CustomName:"\"<var#2>\""}
- The name will appear in the mob’s name tag
- Gives a player an invisible item frame
- First Command:
- /give @s minecraft:item_frame{EntityTag:{Invisible:1b}}
- The item frame will not be invisible in your inventory