this is V2 of my mortars command. this is made by McTech for theEpicSirStickyNote. there are 2 mortars now. one rebelion mortar and one imperal mortar. a rebelion mortar can't attack villagers, itemframes, items, players and armorstands. but, you can sabotage it by throwing an iron axe on it. you can then repair it by throwing a normal brick on it. there also is an imperal mortar. it can only attack players, but if you have an invisibility effect, it can't damage you. you can craft these by throwing a dropper(for rebelion mortar) or a dispenser(for the imperal mortar) and a tnt on the ground.
VIDEO
How to install
How to import this command into your world
First, you must give yourself a command block (If you are on a server, you must be 'OP'ed, and have access to /gamemode 1)
To get a command block, type
/give @p command_block in the chat.
Once you have a command block, right click it to open it's GUI.
Now, you must copy and paste the command from your browser into the game. Select the entire command from below, then right click and press 'copy'.
Next, go back to your minecraft world, and paste the command you just copied into the command block. There are a few different keys that may be used to do this, depending on your keyboard. The most common ones are 'CTRL + V', 'COMMAND + V', or 'STRG + V'
Finally, you can press done to exit the GUI, and execute the command block by powering it with a redstone block, a lever, or any thing you can get your grubby hands on. Just make sure you don't place it on top of the command block, or the machine will not be installed!
Show source commands
# This user did not upload the source commands!
/summon FallingSand ~ ~1 ~ {Block:stone,Time:1,Passengers:[{id:FallingSand,Block:redstone_block,Time:1,Passengers:[{id:FallingSand,Block:activator_rail,Time:1,Passengers:[{id:MinecartCommandBlock,Command:gamerule commandBlockOutput false},{id:MinecartCommandBlock,Command:"fill ~2 ~-3 ~-2 ~8 ~2 ~2 wool 15 hollow"},{id:MinecartCommandBlock,Command:"fill ~2 ~-2 ~-2 ~8 ~1 ~2 stained_glass 4 replace wool"},{id:MinecartCommandBlock,Command:"/scoreboard objectives add MCTSAB dummy"},{id:MinecartCommandBlock,Command:"/scoreboard objectives add MCTSSE dummy"},{id:MinecartCommandBlock,Command:"/scoreboard objectives add MCTSIT dummy"},{id:MinecartCommandBlock,Command:"/scoreboard objectives add MCTSMT dummy"},{id:MinecartCommandBlock,Command:"/scoreboard objectives add MCTSS dummy"},{id:MinecartCommandBlock,Command:setblock ~1 ~-1 ~ wall_sign 4 replace {Text1:"{\\\"text\\\":\\\"=====================\\\",\\\"color\\\":\\\"gold\\\"}",Text2:"{\\\"text\\\":\\\"click to\\\",\\\"color\\\":\\\"red\\\"}",Text3:"{\\\"text\\\":\\\"remove\\\",\\\"color\\\":\\\"red\\\"}",Text4:"{\\\"text\\\":\\\"==========================\\\",\\\"color\\\":\\\"gold\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"fill ~ ~-2 ~-2 ~7 ~3 ~2 air\\\"}}"}},{id:MinecartCommandBlock,Command:setblock ~1 ~ ~ wall_sign 4 replace {Text1:"{\\\"text\\\":\\\"Mortars in\\\",\\\"color\\\":\\\"green\\\"}",Text2:"{\\\"text\\\":\\\"one command\\\",\\\"color\\\":\\\"green\\\"}",Text3:"{\\\"text\\\":\\\"V3\\\",\\\"color\\\":\\\"blue\\\"}",Text4:"{\\\"text\\\":\\\"By McTech\\\",\\\"color\\\":\\\"gold\\\"}"}},{id:MinecartCommandBlock,Command:setblock ~5 ~1 ~ chain_command_block 5 replace {auto:1,Command:"/execute @e[score_MCTSMT_min=90,score_MCTSMT=91] ~ ~ ~ /particle flame ~ ~ ~ 0 6 0 0 100 "}},{id:MinecartCommandBlock,Command:setblock ~4 ~1 ~ chain_command_block 5 replace {auto:1,Command:"/scoreboard players set @a MCTSS 1 {ActiveEffects:[{Id:14b}]}"}},{id:MinecartCommandBlock,Command:setblock ~3 ~1 ~ chain_command_block 5 replace {auto:1,Command:"/scoreboard players set @a MCTSS 0"}},{id:MinecartCommandBlock,Command:setblock ~3 ~1 ~1 chain_command_block 2 replace {auto:1,Command:"/scoreboard players set @e[score_MCTSMT_min=100] MCTSMT 0"}},{id:MinecartCommandBlock,Command:setblock ~4 ~1 ~1 chain_command_block 4 replace {auto:1,Command:"/execute @e[score_MCTSMT_min=100,name=Mortar] ~ ~ ~ /execute @a[r=12,c=3,score_MCTSS=0] ~ ~ ~ /summon ThrownPotion ~ ~5 ~ {Motion:[0.0,-1.0,0.0],Potion:{id:\\\"minecraft:splash_potion\\\",Count:1,tag:{Potion:\\\"minecraft:harming\\\"}}}"}},{id:MinecartCommandBlock,Command:setblock ~5 ~1 ~1 chain_command_block 4 replace {auto:1,Command:"/execute @e[score_MCTSMT_min=40,name=Mortar] ~ ~ ~ /execute @a[r=12,c=3,score_MCTSS=0] ~ ~ ~ /particle crit ~ ~ ~ -1 0 -1 0 100 force"}},{id:MinecartCommandBlock,Command:setblock ~6 ~1 ~1 chain_command_block 4 replace {auto:1,Command:"/scoreboard players add @e[type=ArmorStand,name=Mortar] MCTSMT 1"}},{id:MinecartCommandBlock,Command:setblock ~7 ~1 ~1 chain_command_block 4 replace {auto:1,Command:"/execute @e[type=ArmorStand,name=Mortar] ~ ~-0.4 ~ /summon ArmorStand ~ ~ ~ {CustomName:\\\"Mortar_loop\\\",Small:0,Invisible:1,Invulnerable:1,NoGravity:1,ArmorItems:[{},{},{},{id:coal_block,Count:1}]}"}},{id:MinecartCommandBlock,Command:setblock ~7 ~ ~1 chain_command_block 1 replace {auto:1,Command:"/execute @e[type=ArmorStand,name=Mortar] ~ ~ ~ /summon ArmorStand ~ ~0.2 ~ {CustomName:\\\"Mortar_loop\\\",Small:0,Invisible:1,Invulnerable:1,NoGravity:1,ArmorItems:[{},{},{},{id:coal_block,Count:1}]}"}},{id:MinecartCommandBlock,Command:setblock ~6 ~ ~1 chain_command_block 5 replace {auto:1,Command:"/kill @e[name=Mortar_loop,type=ArmorStand]"}},{id:MinecartCommandBlock,Command:setblock ~5 ~ ~1 chain_command_block 5 replace {auto:1,Command:"/execute @e[type=ArmorStand,name=Mortar] ~ ~ ~ detect ~ ~ ~ minecraft:air -1 /kill @e[type=ArmorStand,r=0]"}},{id:MinecartCommandBlock,Command:setblock ~4 ~ ~1 chain_command_block 5 replace {auto:1,Command:"/execute @e[type=ArmorStand,name=Mortar] ~ ~ ~ /tp @e[type=Cow,r=1] ~ ~-200 ~"}},{id:MinecartCommandBlock,Command:setblock ~3 ~ ~1 chain_command_block 5 replace {auto:1,Command:"/execute @e[type=Cow,name=Spawn_Mortar] ~ ~ ~ /setblock ~ ~ ~ minecraft:quartz_block"}},{id:MinecartCommandBlock,Command:setblock ~3 ~ ~ chain_command_block 3 replace {auto:1,Command:"/execute @e[type=Cow,name=Spawn_Mortar] ~ ~ ~ /summon ArmorStand ~ ~ ~ {CustomName:\\\"Mortar\\\",Invisible:1,Invulnerable:1,NoGravity:1}"}},{id:MinecartCommandBlock,Command:setblock ~4 ~ ~ chain_command_block 4 replace {auto:1,Command:"/execute @e[type=Item,score_MCTSIT_min=1,score_MCTSIT=1] ~ ~ ~ /execute @e[type=Item,score_MCTSIT_min=2,score_MCTSIT=2,r=0] ~ ~ ~ /kill @e[type=Item,r=0]"}},{id:MinecartCommandBlock,Command:setblock ~5 ~ ~ chain_command_block 4 replace {auto:1,Command:"/execute @e[type=Item,score_MCTSIT_min=1,score_MCTSIT=1] ~ ~ ~ /execute @e[type=Item,score_MCTSIT_min=2,score_MCTSIT=2,r=0] ~ ~ ~ /summon Item ~ ~1 ~ {CustomName:\\\"Spawn Mortar\\\",CustomNameVisible:1,Motion:[0.0,0.4,0.0],Item:{id:spawn_egg,Damage:92,Count:1,tag:{display:{Name:\\\"Spawn_Mortar\\\",Lore:[spawn a Mortar]},EntityTag:{id:\\\"Cow\\\",IsBaby:0}}}}"}},{id:MinecartCommandBlock,Command:setblock ~6 ~ ~ chain_command_block 4 replace {auto:1,Command:"/scoreboard players set @e[type=Item] MCTSIT 1 {Item:{id:\\\"minecraft:dispenser\\\"}}"}},{id:MinecartCommandBlock,Command:setblock ~7 ~ ~ chain_command_block 4 replace {auto:1,Command:"/scoreboard players set @e[type=Item] MCTSIT 2 {Item:{id:\\\"minecraft:tnt\\\"}}"}},{id:MinecartCommandBlock,Command:setblock ~7 ~ ~-1 chain_command_block 3 replace {auto:1,Command:"/scoreboard players set @e[type=Item] MCTSIT 5 {Item:{id:\\\"minecraft:skull\\\",Damage:3s,tag:{display:{Name:\\\"Power_Cell\\\"}}}}"}},{id:MinecartCommandBlock,Command:setblock ~6 ~ ~-1 chain_command_block 5 replace {auto:1,Command:"/scoreboard players set @e[score_MCTSMT_min=100] MCTSMT 0"}},{id:MinecartCommandBlock,Command:setblock ~5 ~ ~-1 chain_command_block 5 replace {auto:1,Command:"/execute @e[score_MCTSMT_min=40,name=RMortar,score_MCTSAB=0] ~ ~ ~ /execute @e[r=12,c=3,score_MCTSSE_min=3] ~ ~ ~ /particle crit ~ ~ ~ -1 0 -1 0 100 force"}},{id:MinecartCommandBlock,Command:setblock ~4 ~ ~-1 chain_command_block 5 replace {auto:1,Command:"/scoreboard players set @e[type=Skeleton] MCTSSE 3"}},{id:MinecartCommandBlock,Command:setblock ~3 ~ ~-1 chain_command_block 5 replace {auto:1,Command:"/scoreboard players set @e[type=Zombie] MCTSSE 3"}},{id:MinecartCommandBlock,Command:setblock ~3 ~-1 ~-1 chain_command_block 1 replace {auto:1,Command:"/execute @e[type=ArmorStand,name=RMortar,score_MCTSAB=0] ~ ~ ~ /kill @e[type=Item,score_MCTSIT_min=5,score_MCTSIT=5,r=2]"}},{id:MinecartCommandBlock,Command:setblock ~4 ~-1 ~-1 chain_command_block 4 replace {auto:1,Command:"/execute @e[type=ArmorStand,name=RMortar,score_MCTSAB=0] ~ ~ ~ /execute @e[type=Item,score_MCTSIT_min=5,score_MCTSIT=5,r=2] ~ ~ ~ /execute @e[type=ArmorStand,name=RMortar,r=2] ~ ~ ~ /particle happyVillager ~ ~0.5 ~ 0.5 0.5 0.5 0 100"}},{id:MinecartCommandBlock,Command:setblock ~5 ~-1 ~-1 chain_command_block 4 replace {auto:1,Command:"/execute @e[type=Item,score_MCTSIT_min=5,score_MCTSIT=5] ~ ~ ~ /scoreboard players set @e[r=2,name=RMortar,type=ArmorStand] MCTSAB 0"}},{id:MinecartCommandBlock,Command:setblock ~6 ~-1 ~-1 chain_command_block 4 replace {auto:1,Command:"/scoreboard players set @e[type=Item] MCTSIT 5 {Item:{id:\\\"minecraft:brick\\\"}}"}},{id:MinecartCommandBlock,Command:setblock ~7 ~-1 ~-1 chain_command_block 4 replace {auto:1,Command:"/execute @e[type=ArmorStand,score_MCTSAB_min=1] ~ ~ ~ /particle fireworksSpark ~ ~0.5 ~ 0.5 0.5 0.5 0.01 5 force"}},{id:MinecartCommandBlock,Command:setblock ~7 ~-1 ~ chain_command_block 2 replace {auto:1,Command:"/execute @e[type=Item,score_MCTSIT_min=4,score_MCTSIT=4] ~ ~ ~ /scoreboard players set @e[r=2,name=RMortar,type=ArmorStand] MCTSAB 1"}},{id:MinecartCommandBlock,Command:setblock ~6 ~-1 ~ chain_command_block 5 replace {auto:1,Command:"/scoreboard players set @e[type=Item] MCTSIT 4 {Item:{id:\\\"minecraft:iron_axe\\\"}}"}},{id:MinecartCommandBlock,Command:setblock ~5 ~-1 ~ chain_command_block 5 replace {auto:1,Command:"/scoreboard players set @e[type=Item] MCTSSE 1 "}},{id:MinecartCommandBlock,Command:setblock ~4 ~-1 ~ chain_command_block 5 replace {auto:1,Command:"/scoreboard players set @e[type=ItemFrame] MCTSSE 1 "}},{id:MinecartCommandBlock,Command:setblock ~3 ~-1 ~ chain_command_block 5 replace {auto:1,Command:"/scoreboard players set @e[type=ArmorStand] MCTSSE 1 "}},{id:MinecartCommandBlock,Command:setblock ~3 ~-1 ~1 chain_command_block 2 replace {auto:1,Command:"/scoreboard players set @e[type=Player] MCTSSE 1 "}},{id:MinecartCommandBlock,Command:setblock ~4 ~-1 ~1 chain_command_block 4 replace {auto:1,Command:"/execute @e[score_MCTSMT_min=90,score_MCTSMT=91] ~ ~ ~ /particle flame ~ ~ ~ 0 6 0 0 100 force"}},{id:MinecartCommandBlock,Command:setblock ~5 ~-1 ~1 chain_command_block 4 replace {auto:1,Command:"/scoreboard players set @e[type=Villager] MCTSSE 1 "}},{id:MinecartCommandBlock,Command:setblock ~6 ~-1 ~1 chain_command_block 4 replace {auto:1,Command:"/scoreboard players set @e[type=!Player] MCTSSE 0"}},{id:MinecartCommandBlock,Command:setblock ~7 ~-1 ~1 chain_command_block 4 replace {auto:1,Command:"/execute @e[score_MCTSMT_min=100,score_MCTSAB=0] ~ ~ ~ /execute @e[r=12,c=3,score_MCTSSE_min=3,score_MCTSSE=3] ~ ~ ~ /summon ThrownPotion ~ ~5 ~ {Motion:[0.0,-1.0,0.0],Potion:{id:\\\"minecraft:splash_potion\\\",Count:1,tag:{Potion:\\\"minecraft:strong_healing\\\"}}}"}},{id:MinecartCommandBlock,Command:setblock ~7 ~-2 ~1 chain_command_block 1 replace {auto:1,Command:"/execute @e[score_MCTSMT_min=100,score_MCTSAB=0] ~ ~ ~ /execute @e[r=12,c=3,score_MCTSSE_min=0,score_MCTSSE=0] ~ ~ ~ /summon ThrownPotion ~ ~5 ~ {Motion:[0.0,-1.0,0.0],Potion:{id:\\\"minecraft:splash_potion\\\",Count:1,tag:{Potion:\\\"minecraft:harming\\\"}}}"}},{id:MinecartCommandBlock,Command:setblock ~6 ~-2 ~1 chain_command_block 5 replace {auto:1,Command:"/execute @e[score_MCTSMT_min=40,name=RMortar,score_MCTSAB=0] ~ ~ ~ /execute @e[r=12,c=3,score_MCTSSE=0] ~ ~ ~ /particle crit ~ ~ ~ -1 0 -1 0 100 force"}},{id:MinecartCommandBlock,Command:setblock ~5 ~-2 ~1 chain_command_block 5 replace {auto:1,Command:"/scoreboard players add @e[type=ArmorStand,name=RMortar,score_MCTSAB=0] MCTSMT 1"}},{id:MinecartCommandBlock,Command:setblock ~4 ~-2 ~1 chain_command_block 5 replace {auto:1,Command:"/execute @e[type=ArmorStand,name=RMortar] ~ ~-0.4 ~ /summon ArmorStand ~ ~ ~ {CustomName:\\\"RMortar_loop\\\",Small:0,Invisible:1,Invulnerable:1,NoGravity:1,ArmorItems:[{},{},{},{id:coal_block,Count:1}]}"}},{id:MinecartCommandBlock,Command:setblock ~3 ~-2 ~1 chain_command_block 5 replace {auto:1,Command:"/execute @e[type=ArmorStand,name=RMortar] ~ ~ ~ /summon ArmorStand ~ ~0.2 ~ {CustomName:\\\"RMortar_loop\\\",Small:0,Invisible:1,Invulnerable:1,NoGravity:1,ArmorItems:[{},{},{},{id:coal_block,Count:1}]}"}},{id:MinecartCommandBlock,Command:setblock ~3 ~-2 ~ chain_command_block 3 replace {auto:1,Command:"/kill @e[name=RMortar_loop,type=ArmorStand]"}},{id:MinecartCommandBlock,Command:setblock ~4 ~-2 ~ chain_command_block 4 replace {auto:1,Command:"/execute @e[type=ArmorStand,name=RMortar] ~ ~ ~ detect ~ ~ ~ minecraft:air -1 /kill @e[type=ArmorStand,r=0]"}},{id:MinecartCommandBlock,Command:setblock ~5 ~-2 ~ chain_command_block 4 replace {auto:1,Command:"/execute @e[type=ArmorStand,name=RMortar] ~ ~ ~ /tp @e[type=Cow,r=0] ~ ~-200 ~"}},{id:MinecartCommandBlock,Command:setblock ~6 ~-2 ~ chain_command_block 4 replace {auto:1,Command:"/execute @e[type=Cow,name=Spawn_RMortar] ~ ~ ~ /setblock ~ ~ ~ minecraft:sandstone 2"}},{id:MinecartCommandBlock,Command:setblock ~7 ~-2 ~ chain_command_block 4 replace {auto:1,Command:"/execute @e[type=Cow,name=Spawn_RMortar] ~ ~ ~ /summon ArmorStand ~ ~ ~ {CustomName:\\\"RMortar\\\",Invisible:1,Invulnerable:1,NoGravity:1}"}},{id:MinecartCommandBlock,Command:setblock ~7 ~-2 ~-1 chain_command_block 3 replace {auto:1,Command:"/execute @e[type=Item,score_MCTSIT_min=3,score_MCTSIT=3] ~ ~ ~ /execute @e[type=Item,score_MCTSIT_min=2,score_MCTSIT=2,r=0] ~ ~ ~ /kill @e[type=Item,r=0]"}},{id:MinecartCommandBlock,Command:setblock ~6 ~-2 ~-1 chain_command_block 5 replace {auto:1,Command:"/execute @e[type=Item,score_MCTSIT_min=3,score_MCTSIT=3] ~ ~ ~ /execute @e[type=Item,score_MCTSIT_min=2,score_MCTSIT=2,r=0] ~ ~ ~ /summon Item ~ ~1 ~ {CustomName:\\\"Spawn Mortar\\\",CustomNameVisible:1,Motion:[0.0,0.4,0.0],Item:{id:spawn_egg,Damage:92,Count:1,tag:{display:{Name:\\\"Spawn_RMortar\\\",Lore:[spawn a Mortar]},EntityTag:{id:\\\"Cow\\\",IsBaby:0}}}}"}},{id:MinecartCommandBlock,Command:setblock ~5 ~-2 ~-1 chain_command_block 5 replace {auto:1,Command:"/scoreboard players set @e[type=Item] MCTSIT 3 {Item:{id:\\\"minecraft:dropper\\\"}}"}},{id:MinecartCommandBlock,Command:setblock ~4 ~-2 ~-1 chain_command_block 5 replace {auto:1,Command:"/execute @e[type=Cow,name=Spawn_RMortar] ~ ~ ~ /scoreboard players set @e[type=ArmorStand,name=RMortar,r=100] MCTSAB 0 "}},{id:MinecartCommandBlock,Command:setblock ~3 ~-2 ~-1 repeating_command_block 5 replace {auto:1,Command:"/scoreboard players set @e[type=Item] MCTSIT 2 {Item:{id:\\\"minecraft:tnt\\\"}}"}},{id:MinecartCommandBlock,Command:setblock ~ ~ ~1 command_block 0 replace {Command:fill ~ ~-3 ~-1 ~ ~ ~ air}},{id:MinecartCommandBlock,Command:setblock ~ ~-1 ~1 redstone_block},{id:MinecartCommandBlock,Command:kill @e[type=MinecartCommandBlock,r=1]}]}]}]}