11

Official Summon, Setblock & More - Creation Sharing & Help

PMC's Avatar PMC9/7/13 12:14 am history
11 emeralds 92.1k 542
8/24/2023 12:12 pm
Jul mik's Avatar Jul mik
Hi Guys,

Welcome to the PMC official thread for summon, setblock, blockdata, and other commands. Here you can, ask for help with these, and show of your creations with these commands.

These commands are very powerful, but are also fairly complicated. To get you started, I've included links to helpful pages, and some specific info on the setblock command.

Set Block Structure

/setblock x y z block data method dataTag

x y z are the coordinates of the block
Block is the TileID of the block (includes id:0 now!)
Data is the block data (i.e. 5:1 spruce wood)
Method is one of three things: keep, replace, or delete
-Keep spawns the block at the coordinates.
-Replace replaces the block at the coordinates with the block ID.
-Delete removes the block at the coordinates and then spawns the new one in
dataTag is tile entity data.

Links

Here are some very useful links. Thanks to poltercreeper, Spellguard, Myself, sigurd4, and Deathassassin05, for finding them.
http://www.reddit.com/r/Minecraft/comments/1lsesa/how_to_use_the_summon_command/
http://www.minecraftforum.net/topic/1968152-summon-command-in-13w36a/
http://www.minecraftwiki.net/wiki/Chunk_format#Entity_Format
http://www.minecraftwiki.net/wiki/Command_NBT_Tags
http://minecraft.gamepedia.com/Commands#Data_tags
http://www.minecraftforum.net/topic/1969520-17-using-summon-give-datatags-in-map-making-tutorials/
http://www.minecraftforum.net/topic/2284813-14w02b-blockdata-e-and-updated-commands/
http://www.planetminecraft.com/blog/command-blog-blockdata-candestroy-and-e/

MCEdit

For those that use MCEdit, here's some great filters that make it much easier:
http://sethbling.com/downloads/mcedit-filters/setblockstructure/
http://www.youtube.com/watch?v=gd74GNoA3Yg

Posting

To post your creations, simply copy and paste the whole text of the command, or commands. Then describe what it does. If it is more complex include instructions, and maybe pictures, of how to use it.

Thanks for reading, and I look forward to seeing some pretty cool custom mobs, and other stuff.
Posted by PMC's Avatar
PMC
Support
Level 100 : Transcendent Cake
24,470

Create an account or sign in to comment.

542

1
08/24/2023 12:12 pm
Level 18 : Journeyman Miner
Jul mik
Jul mik's Avatar
You play on bedrock or java
1
05/19/2023 3:10 am
Level 1 : New Crafter
Drihite2
Drihite2's Avatar
Jebac kurwy łącznie z kozłem to kurwa nie biznesmen
1
04/25/2023 11:18 pm
Level 20 : Expert Miner
why cats meow 123456789
why cats meow 123456789's Avatar
oh bananas
1
04/19/2023 6:58 am
Level 1 : New Miner
DiamondDynamo
DiamondDynamo's Avatar
Thank you very much, it will be very useful
1
02/25/2021 6:25 pm
Level 1 : New Network
iZinko
iZinko's Avatar
so why does this trent theme it older than my first map... em oh no... it`s not. I`m old now
1
05/02/2019 5:03 pm
Level 27 : Expert Pixel Puncher
ChangedRaptor76
ChangedRaptor76's Avatar
Hi
1
03/20/2019 10:10 am
Level 54 : Grandmaster Engineer
DiggerMcGee
DiggerMcGee's Avatar
It's great for Remote Redstone too! You can use a Command block to set a redstone block in a different location to trigger a remote redstone circuit.
1
02/22/2019 8:25 pm
Level 1 : New Miner
anonpmc2579039
anonpmc2579039's Avatar
[deleted]
1
07/01/2017 4:00 pm
Level 57 : Grandmaster Cyborg
Pepijn
Pepijn's Avatar
Made the green Nitwit villagers a bit more useful: https://www.planetminecraft.com/project ... illa-1-12/

Uses functions from 1.12.
7
03/10/2017 6:55 am
Level 57 : Grandmaster Cyborg
Pepijn
Pepijn's Avatar
A maze solver using command blocks. Not efficient but it's relatively fast (considering the 20 ticks/second maximum in minecraft).

2
03/10/2017 1:58 pm
Level 56 : Grandmaster Taco
Mgreat
Mgreat's Avatar
Impressive.
2
10/07/2018 8:57 pm
Level 1 : New Crafter
SWPlaysMC
SWPlaysMC's Avatar
Can you include the map link on how to do that?
Also, can you customize the maze WITHOUT changing any commands?
Thanks,
-SWPlaysMC
2
02/21/2017 11:51 am
Level 1 : New Miner
Epic0Tom
Epic0Tom's Avatar
Omg thanks so much! I spent hours today trying to get it to work and you even fixed the code as well <333 Thanks!!!!
2
02/21/2017 6:28 am
Level 57 : Grandmaster Cyborg
Pepijn
Pepijn's Avatar
Epic0TomHey, I've been tryinh to spawn a zombie with full diamond armour enchanted protection 11, heres my code:

~Stuff~

but all I get is unbalanced square brackets. I've checked and they're in the right places, how can I fix it!?


You constantly did {Count:1,id:stuff{ench:[{stuff}]}}, which just isn't the right format. It's {Count:1,id:stuff,tag:{ench:[{stuff}]}}. Zeroes after ~ are unnecessary btw, same goes for spaces after commas and colons. Good luck with whatever you're using this for!

/summon Zombie ~-1 ~ ~ {Attributes:[{Name:generic.movementSpeed,Base:0.1}],CanBreakDoors:1,ArmorItems:[{Count:1,id:diamond_boots,tag:{ench:[{id:0,lvl:11}]}},{Count:1,id:diamond_leggings,tag:{ench:[{id:0,lvl:11}]}},{Count:1,id:diamond_chestplate,tag:{ench:[{id:0,lvl:11}]}},{Count:1,id:diamond_helmet,tag:{ench:[{id:0,lvl:11}]}}]}
2
02/20/2017 3:54 pm
Level 1 : New Miner
Epic0Tom
Epic0Tom's Avatar
Hey, I've been tryinh to spawn a zombie with full diamond armour enchanted protection 11, heres my code:
/summon Zombie ~-1 ~0 ~0 {Attributes:[{Name:generic.movementSpeed,Base:0.1}], CanBreakDoors:1, ArmorItems:[{Count:1,id : diamond_boots{ench:[{id:0,lvl:11}]}, {Count:1,id:diamond_leggings{ench:[{id:0,lvl:11}]} }, {Count:1,id:diamond_chestplate{ench:[{id:0,lvl:11}]}}, {Count:1,id : diamond_helmet{ench:[{id:0,lvl:11}]}}]}
but all I get is unbalanced square brackets. I've checked and they're in the right places, how can I fix it!?
2
08/29/2016 9:37 am
Level 57 : Grandmaster Cyborg
Pepijn
Pepijn's Avatar
/summon Skeleton ~ ~1 ~ {ArmorItems:[{},{},{},{id:lever,Count:1}],ArmorDropChances:[0.085F,0.085F,0.085F,1.0F]}
2
08/28/2016 5:47 pm
Level 1 : New Network
AceofArrows
AceofArrows's Avatar
Hey everyone.

Does anyone know the code to give a mob a lever to drop when they die?
AKA: How do I make a mob drop a lever when they die, command block code...?
3
08/09/2016 10:59 am
Level 64 : High Grandmaster Technomancer
flashteens
flashteens's Avatar
Here's the command I used to summon a shopkeeper that sells farming stuffs for Adventure Mode (Vanilla 1.10+)!

Features:
  • This villager guy is properly set with the option "CanPlaceOn" on hoes, bone meals, and the crops, so you may trade everything what you need to do farming in Adventure Mode!
  • The guy has a Notch's face, which is set by the attribute "ArmorItems".


Click to see this command...
/summon Villager ~ ~1 ~ {Silent:1,Invulnerable:1,CustomName:"Farming Necessities",Profession:0,Career:1,Offers:{Recipes:[{buy:{id:emerald,Count:5},sell:{id:wooden_hoe,Count:1,Damage:0,tag:{display:{Name:"The Hoe for Craftland Farm",Lore:["Price: $5"]},ench:[{id:35,lvl:1}],HideFlags:1,CanPlaceOn:["dirt"]}},maxUses:1000000},{buy:{id:emerald,Count:1},sell:{id:dye,Count:16,Damage:15,tag:{display:{Name:"Fertilizer",Lore:["Price: $1/16"]},ench:[{id:35,lvl:1}],HideFlags:1,CanPlaceOn:["wheat","potatoes","carrots","beetroots"]}},maxUses:1000000},{buy:{id:wheat,Count:1},sell:{id:wheat_seeds,Count:1,Damage:0,tag:{display:{Lore:["For Free!!"]},ench:[{id:35,lvl:1}],HideFlags:1,CanPlaceOn:["farmland"]}},maxUses:1000000},{buy:{id:potato,Count:1},sell:{id:potato,Count:1,Damage:0,tag:{display:{Lore:["For Free!!"]},ench:[{id:35,lvl:1}],HideFlags:1,CanPlaceOn:["farmland"]}},maxUses:1000000},{buy:{id:carrot,Count:1},sell:{id:carrot,Count:1,Damage:0,tag:{display:{Lore:["For Free!!"]},ench:[{id:35,lvl:1}],HideFlags:1,CanPlaceOn:["farmland"]}},maxUses:1000000},{buy:{id:beetroot,Count:1},sell:{id:beetroot_seeds,Count:1,Damage:0,tag:{display:{Lore:["For Free!!"]},ench:[{id:35,lvl:1}],HideFlags:1,CanPlaceOn:["farmland"]}},maxUses:1000000}]},ArmorItems:[{},{},{},{id:skull,Damage:3,tag:{SkullOwner:Notch}}]}


An example where I used this command is "The Craftland", which is my contest entry for the Sustainable City Contest. Hope you like this design.
2
10/14/2015 2:01 pm
Level 1 : New Miner
DaElectronicMan2
DaElectronicMan2's Avatar
Can someone help me with this piece of command. I'm trying to spawn a strong mob but it comes up with Data tag parsing failed: Encountered multiple top tags, only one expected. I don't have the faintes idea what I've done wrong. plese help. here's the code:
Click to reveal
/summon PigZombie 229 62 860 {ActiveEffects:[{Id:1,Amplifier:1,Duration:691062,Ambient:1,ShowParticles:0b},{Id:14,Amplifier:1,Duration:691062,Ambient:1,ShowParticles:0b},{Id:11,Amplifier:1,Duration:691062,Ambient:1,ShowParticles:0b}]},{Equipment:[{id:276,tag:{Unbreakable:1,ench:[{Id:16,lvl:2},{Id:19,lvl:2}]}},{id:309,tag:{Unbreakable:1,ench:[{Id:0,lvl:2}]}},{},{Id:311,tag:{Unbreakable:1,ench:[{Id:0,lvl:2}{Id:7,lvl:4}]}},{Id:310,tag:{Unbreakable:1,ench:[{Id:4,lvl:2}]}}]}
2
03/10/2016 1:26 am
Level 55 : Grandmaster Architect
Zwil
Zwil's Avatar
/summon PigZombie 229 62 860
{Equipment:[
{id:276,tag:{Unbreakable:1,ench:[{Id:16,lvl:2},{Id:19,lvl:2}]}},
{id:309,tag:{Unbreakable:1,ench:[{Id:0,lvl:2}]}},
{Id:311,tag:{Unbreakable:1,ench:[{Id:0,lvl:2},{Id:7,lvl:4}]}},
{Id:310,tag:{Unbreakable:1,ench:[{Id:4,lvl:2}]}}],
ActiveEffects:[{Id:1,Amplifier:1,Duration:691062,Ambient:1,ShowParticles:0b},
{Id:14,Amplifier:1,Duration:691062,Ambient:1,ShowParticles:0b},
{Id:11,Amplifier:1,Duration:691062,Ambient:1,ShowParticles:0b}]}

That should make it work, but that will only work for 1.8 or lower.
1
10/13/2015 8:15 pm
Level 3 : Apprentice Crafter
Umbreo2000
Umbreo2000's Avatar
I'm working on a command block mod that will make it slightly easier to get Elytra in 1.9. Basically, whenever a pig spawns, two command blocks go off. One summons a new pig, named Flying Pig and wearing Elytra with a certain drop chance; the other teleports the original pig into the void. So far, I've gotten it to work rather well, except for one thing. I can't get the Elytra to drop.

Here are the two commands:
/execute @e[name=Pig] ~ ~ ~ summon Pig ~ ~ ~ {CustomName:Flying Pig,Age:-6000,ArmorItems:[{},{},{Count:1,id:elytra},{}],ArmorDropChances:[0.0f,0.0f,1.0f,0.0f]}

/tp @e[name=Pig] ~ ~-100 ~

I'm pretty sure that 1.0f is a 100% drop chance, but the flying pigs STILL won't drop them. A few theories:
  • 1. Maybe baby animals don't drop anything? I removed the "Age" tag, but the wings still refused to drop.
  • 2. Maybe I misspelled the name? Nope - I teleported the Flying Pig up twenty blocks and watched as it glided away.
  • 3. Maybe the wings are being killed every time they drop? I don't think this is the case, but I haven't tested it.
1
04/16/2015 12:44 pm
Level 1 : New Miner
_JimbobTheGamer_
_JimbobTheGamer_'s Avatar
-snip-
1
04/13/2015 3:38 pm
Level 49 : Master Engineer
hokage3211
hokage3211's Avatar
AkirAssasin
Use @r[type=Villager] , not sure if it works though

This works, I tested it
1
04/04/2015 8:00 pm
Level 34 : Artisan Ninja
AkirAssasin
AkirAssasin's Avatar
PatchpenFor example, there were two villagers. One was named "Yes" and the other was "No". The command blocks picked one of them. I can do an @e command and have the mob selected trigger other commands, but how do I get the command block to only pick one villager instead of every villager that fits the command's criteria? I want yes OR no, not yes AND no.


Use @r[type=Villager] , not sure if it works though
1
04/04/2015 7:33 pm
Level 17 : Journeyman Dolphin
Patchpen
Patchpen's Avatar
Somebody had a similar problem (except with zombie) in this bug report: https://bugs.mojang.com/browse/MC-72340 and someone mentioned ghasts riding giants in the comments. It looks like the AI of mobs riding other mobs is a bit bugged. It may be something else entirely, but this is my guess.

Now I have a question of my own. SethBling made a video where he made a dreidel that used a random engine that used a command block to pick a random mob. For example, there were two villagers. One was named "Yes" and the other was "No". The command blocks picked one of them. I can do an @e command and have the mob selected trigger other commands, but how do I get the command block to only pick one villager instead of every villager that fits the command's criteria? I want yes OR no, not yes AND no.
1
04/01/2015 11:39 am
Level 49 : Master Engineer
hokage3211
hokage3211's Avatar
So I'm trying to create a Kraken boss, which is like 4 ghasts stacked on eachother that shoot powerfull fireballs and a blaze on top, but when the entities are riding, the bottom ghast only seems to fire, and they aren't tracking the player very well, know any way to improve it?

{This is the command, it's basically four of the same ghasts and a blaze on top, yes I used mcstacker but I'm not sure it would help me make them track the player better}

/summon Blaze ~ ~10 ~ {CustomName:"KrakenTurret",Attributes:[{Name:generic.maxHealth,Base:20},{Name:generic.followRange,Base:1000000}],PersistenceRequired:1,ActiveEffects:[{Id:14,Amplifier:0,Duration:20000000,ShowParticles:0b}],Riding:{id:"Ghast",CustomName:"Kraken",CustomNameVisible:1,ExplosionPower:10,Attributes:[{Name:generic.maxHealth,Base:1000},{Name:generic.movementSpeed,Base:20},{Name:generic.attackDamage,Base:20},{Name:generic.followRange,Base:1000000},{Name:generic.knockbackResistance,Base:5}],PersistenceRequired:1,ActiveEffects:[{Id:12,Amplifier:0,Duration:2000000,ShowParticles:0b}],Riding:{id:"Ghast",CustomName:"Kraken",CustomNameVisible:1,ExplosionPower:10,Attributes:[{Name:generic.maxHealth,Base:1000},{Name:generic.movementSpeed,Base:20},{Name:generic.attackDamage,Base:20},{Name:generic.followRange,Base:1000000},{Name:generic.knockbackResistance,Base:5}],PersistenceRequired:1,ActiveEffects:[{Id:12,Amplifier:0,Duration:20000000,ShowParticles:0b}],Riding:{id:"Ghast",CustomName:"Kraken",CustomNameVisible:1,ExplosionPower:10,Attributes:[{Name:generic.maxHealth,Base:1000},{Name:generic.movementSpeed,Base:20},{Name:generic.attackDamage,Base:20},{Name:generic.followRange,Base:1000000},{Name:generic.knockbackResistance,Base:5}],PersistenceRequired:1,ActiveEffects:[{Id:12,Amplifier:0,Duration:20000000,ShowParticles:0b}],Riding:{id:"Ghast",CustomName:"Kraken",CustomNameVisible:1,ExplosionPower:10,Attributes:[{Name:generic.maxHealth,Base:1000},{Name:generic.movementSpeed,Base:20},{Name:generic.attackDamage,Base:20},{Name:generic.followRange,Base:1000000},{Name:generic.knockbackResistance,Base:5}],PersistenceRequired:1,ActiveEffects:[{Id:12,Amplifier:0,Duration:20000000,ShowParticles:0b}]}}}}}
1
03/06/2015 11:27 am
Level 1 : New Miner
fargleblargen
fargleblargen's Avatar
Hi all. I really need help if you can. I'm trying to recreate this Aquarium: https://www.youtube.com/watch?v=PeC9u5ehLUg [1]

There's a world download but I'm still unable to figure out how to stack the 3 snowmen into a minecart, on top of a squid.

I have this command, so far: summon Item ~ ~ ~ {Item:{id:349,Count:1,Damage:1},PickupDelay:-100,Age:-32768,Riding:{id:"SnowMan",Invulnerable:1,PersistenceRequired:1,ActiveEffects:[{Id:14,Amplifier:1,Duration:1000000,Ambient:1,Riding:{id:"MinecartRideable"}}]}}

and that works but does not summon the Minecart for some reason. I need to stack another two snowmen into this mix all standing on a minecart, riding a squid. Any suggestions? I'll forever be grateful!
1
03/06/2015 7:12 pm
Level 34 : Artisan Ninja
AkirAssasin
AkirAssasin's Avatar
1
02/13/2015 10:39 am
Level 17 : Journeyman Dolphin
Patchpen
Patchpen's Avatar
I'd use a wither though, since it's smaller, you can hide it in or around the boss room fairly easily, and it won't get in the way.
1
02/15/2015 8:28 am
Level 28 : Expert Dragon
phoenix1515
phoenix1515's Avatar
Silent and NoAI tags fix the Dragon getting away and making noise. The Wither changes the skybox color and the room is big enough to hide a dragon underneath it

AkirAssasin
phoenix1515Does anyone know a good way to change the health of an Ender Dragon when another mob takes damage (From a bow, thats the main problem)
I know you can change the HealF tag to set the dragon's health, I only need a way to make the dragon take damage when the mob you shoot takes damage too
(To create a boss bar effect)


1. You need a scoreboard to test for the boss taking damage.
2. Everytime you detect a number summon an arrow to hit the dragon. Make sure the dragon is trapped by /tp or something.
3. Constantly replenish the boss' health, and kill the boss when the dragon dies.

Arrows might kill the dragon, which will result in a portal. Also there's no way to test for the boss mob taking damage since arrows don't add to the damage taken statistic for whatever reason, neither do they add to the damage done one
1
02/15/2015 5:27 am
Level 34 : Artisan Ninja
AkirAssasin
AkirAssasin's Avatar
Withers only show their health when looking close to it?

http://minecraft.gamepedia.com/Wither#Behavior
1
02/13/2015 8:49 am
Level 34 : Artisan Ninja
AkirAssasin
AkirAssasin's Avatar
phoenix1515Does anyone know a good way to change the health of an Ender Dragon when another mob takes damage (From a bow, thats the main problem)
I know you can change the HealF tag to set the dragon's health, I only need a way to make the dragon take damage when the mob you shoot takes damage too
(To create a boss bar effect)


1. You need a scoreboard to test for the boss taking damage.
2. Everytime you detect a number summon an arrow to hit the dragon. Make sure the dragon is trapped by /tp or something.
3. Constantly replenish the boss' health, and kill the boss when the dragon dies.
1
02/12/2015 5:11 am
Level 28 : Expert Dragon
phoenix1515
phoenix1515's Avatar
How can you summon an Armor Stand with enchanted or renamed gear? I've tried this and it didn't work

/summon ArmorStand ~ ~ ~ {Equipment:[{id:"minecraft:bow",Unbreakable:1,Count:1,display:{Name:"Power Bow"},ench:[{id:49,lvl:3},{id:51,lvl:1}]},{},{},{},{}]}

When I took the bow off the Armor Stand it was just a standard bow with no special features. The same goes for any armor I tried
1
02/12/2015 7:41 am
Level 34 : Artisan Ninja
AkirAssasin
AkirAssasin's Avatar
1
02/13/2015 4:09 am
Level 28 : Expert Dragon
phoenix1515
phoenix1515's Avatar
Ah, didn't know you had to use "tag:{" first

Also, does anyone know a good way to change the health of an Ender Dragon when another mob takes damage (From a bow, thats the main problem)
I know you can change the HealF tag to set the dragon's health, I only need a way to make the dragon take damage when the mob you shoot takes damage too
(To create a boss bar effect)
1
02/10/2015 3:52 pm
Level 17 : Journeyman Dolphin
Patchpen
Patchpen's Avatar
So if you TP an entity to another entity, the first entity will automatically face the same way as the other?
1
02/11/2015 1:58 am
Level 56 : Grandmaster Taco
Mgreat
Mgreat's Avatar
Yes. There may be an exception, but I haven't come across one yet.
1
02/05/2015 5:39 pm
Level 17 : Journeyman Dolphin
Patchpen
Patchpen's Avatar
So depending on which way the player faces, the command block summons a different armor stand?

So if there was different command blocks to detect every 30 degrees interval the player can face (a total of 12 directions) and attach them via comparators to blocks that spawn armor stands facing the same direction...

Wait a minute. Could I compact it a single set of command blocks with a command similar to: /execute @p[r=64.rym=-15,ry=15] summon ArmorStand [rotation=0f]
1
02/05/2015 7:04 pm
Level 56 : Grandmaster Taco
Mgreat
Mgreat's Avatar
Another way to make it face the direction the player is, is to summon it, then tp it to the player. This will automatically make it face the direction the player is.
1
02/05/2015 1:18 pm
Level 17 : Journeyman Dolphin
Patchpen
Patchpen's Avatar
Wait a minute, Am I seriously still the last person to post here?

But that's okay, because this is a sticky thread.

I'm here to ask how to summon armor stands facing the same direction as the player. I've seen sethbling do it in his instant-replay video, I just want to know how...

Also, can I make zombies/skeletons that do a similar thing? It wouldn't have the head/arm motion, but I could make it face the same way right?
1
02/05/2015 5:00 pm
Level 57 : Grandmaster Cyborg
Pepijn
Pepijn's Avatar
You would have to check which direction the player is facing and then use the corresponding summon command for the armorstand. It's impossible to do it directly so you would have to pick an interval (like 8 or 16 directions).
1
01/12/2015 8:08 pm
Level 17 : Journeyman Dolphin
Patchpen
Patchpen's Avatar
Oh.

I probably should have realized that. I knew the R thing existed, I just figured it would be 1 by default instead of infinity.
1
01/12/2015 7:44 pm
Level 56 : Grandmaster Taco
Mgreat
Mgreat's Avatar
phoenix1515
Mgreatjust wondering, while I'm thinking of it, is it possible to summon an arrow on fire? I mainly use generators and I haven't seen that option.

You can, the tag is "Fire:<time in ticks>"

/summon Arrow ~ ~ ~ {Fire:20}


Nice, thanks.

Patchpen
Mgreat/testfor @p[x=-140,y=19,z=-600]
That should work.


It works better, but for some reason it's triggering the comparator even when nobody is at those coordinates.


Ah, you want it in only that area? Because the current command looks for the nearest player from those coordinates.

This command will look for a player within a 1 block radius of the coordinates:
/testfor @p[x=-140,y=19,z=-600,r=1]
1
01/10/2015 9:14 am
Level 28 : Expert Dragon
phoenix1515
phoenix1515's Avatar
Mgreatjust wondering, while I'm thinking of it, is it possible to summon an arrow on fire? I mainly use generators and I haven't seen that option.

You can, the tag is "Fire:<time in ticks>"

/summon Arrow ~ ~ ~ {Fire:20}
1
01/08/2015 1:22 pm
Level 17 : Journeyman Dolphin
Patchpen
Patchpen's Avatar
Alright, thanks guys. Could you get a similar effect to Punch by summoning snowballs along the same trajectory?

Mgreat, One way I can think of is to summon an arrow and at the same time setblock a lava source in the same location, then remove the lava before it spreads. I'm not sure it can be summoned though.

And can someone explain why /testfor @p {x=-140 y=19 z=-600} doesn't work?
1
01/09/2015 5:48 pm
Level 56 : Grandmaster Taco
Mgreat
Mgreat's Avatar
/testfor @p[x=-140,y=19,z=-600]
That should work.
1
01/10/2015 11:24 am
Level 17 : Journeyman Dolphin
Patchpen
Patchpen's Avatar
It works better, but for some reason it's triggering the comparator even when nobody is at those coordinates.
1
01/06/2015 3:25 pm
Level 17 : Journeyman Dolphin
Patchpen
Patchpen's Avatar
Can you summon an arrow as if it was shot from a bow with punch or power?
1
01/07/2015 1:32 am
Level 31 : Artisan Electrician
GildedSimian
GildedSimian's Avatar
You can summon an arrow with a certain motion value. so you can have it shot where you want from wherever you want.

You can also change the damage value of that arrow to mimic that of Power. a damage value of 1 is half a heart, all the way through 20 being 10 hearts or even more if need be.

As far as im aware there's no way to give that arrow punch when you summon it from a command block but I hope the rest helped.

the base command for summoning that arrow would be:/summon Arrow ~ ~ ~ {damage:1,Motion:[0.0,0.0,0.0]}
1
01/07/2015 7:55 am
Level 28 : Expert Dragon
phoenix1515
phoenix1515's Avatar
The speed of the arrow also increases the damage, setting the Motion tag to 9.0 in one of the directions will cause you to get instantly killed by it
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome