11
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.
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.
Create an account or sign in to comment.
542
7
A maze solver using command blocks. Not efficient but it's relatively fast (considering the 20 ticks/second maximum in minecraft).
3
Here's the command I used to summon a shopkeeper that sells farming stuffs for Adventure Mode (Vanilla 1.10+)!
Features:
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.
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
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
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
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!?
/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
/summon Skeleton ~ ~1 ~ {ArmorItems:[{},{},{},{id:lever,Count:1}],ArmorDropChances:[0.085F,0.085F,0.085F,1.0F]}
2
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...?
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...?
2
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
/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.
{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
You play on bedrock or java
1
Jebac kurwy łącznie z kozłem to kurwa nie biznesmen
1
oh bananas
1
Thank you very much, it will be very useful
1
so why does this trent theme it older than my first map... em oh no... it`s not. I`m old now
1
Hi
1
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
[deleted]
1
Made the green Nitwit villagers a bit more useful: https://www.planetminecraft.com/project ... illa-1-12/
Uses functions from 1.12.
Uses functions from 1.12.
1
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:
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
-snip-
1
AkirAssasin
Use @r[type=Villager] , not sure if it works though
This works, I tested it
1
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
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.
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
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}]}}}}}
{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
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!
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
As always: http://bimbimma.com/mcstacker/
1
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
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
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
AkirAssasinphoenix1515Does 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
Withers only show their health when looking close to it?
http://minecraft.gamepedia.com/Wither#Behavior
http://minecraft.gamepedia.com/Wither#Behavior
1
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
How can you summon an Armor Stand with enchanted or renamed gear? I've tried this and it didn't work
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
/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
1
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)
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
So if you TP an entity to another entity, the first entity will automatically face the same way as the other?
1
Yes. There may be an exception, but I haven't come across one yet.
1
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:
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
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
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?
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
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
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.
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
phoenix1515Mgreatjust 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.
PatchpenMgreat/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
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
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?
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
Can you summon an arrow as if it was shot from a bow with punch or power?
1
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:
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
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
view more replies ( 1 )
view more replies ( 232 )