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,847

Create an account or sign in to comment.

542

1
09/07/2013 5:33 am
Level 30 : Artisan Archer
gusgus
gusgus's Avatar
I'm not sure that anyone has been able to actually spawn blocks yet..
All I can do is change block meta data (change white wool to black)..

Have you seen anyone actually spawning blocks?
1
09/07/2013 9:08 pm
Level 56 : Grandmaster Taco
Mgreat
Mgreat's Avatar
I was testing this a bit, and the block that spawned disappeared almost immediately. However, I think there might be a way to fix this, as I'm pretty sure it's just part of the blocks data. I'll see what I can do.
1
09/07/2013 9:57 pm
Level 56 : Grandmaster Taco
Mgreat
Mgreat's Avatar
Well, I just watched SethBling's video, and he clearly demonstrates how to do it.
http://www.youtube.com/watch?v=FWWuVHdF1JQ&feature=em-uploademail

poltercreeper
gus1234567890I'm not sure that anyone has been able to actually spawn blocks yet..
All I can do is change block meta data (change white wool to black)..

Have you seen anyone actually spawning blocks?

i saw sethbling do it by changing the time data to anything over 0
EDIT: You have to do it as a falling sand, it has to be done by a command block, and the time data has to be over 0, hope this helps, also, can someone help me with learning the new nbt data tags, ive never really worked with nbt before, and it lucky I could figure this out


Well, I am just learning the new techniques too, but do a search on google, you should be able to find it there.
1
09/07/2013 9:26 pm
Level 16 : Journeyman Goblin
poltercreeper
poltercreeper's Avatar
i saw sethbling do it by changing the time data to anything over 0
EDIT: You have to do it as a falling sand, it has to be done by a command block, and the time data has to be over 0, hope this helps, also, can someone help me with learning the new nbt data tags, ive never really worked with nbt before, and it lucky I could figure this out
1
01/20/2014 9:26 pm
Level 15 : Journeyman Engineer
bombitmanbomb
bombitmanbomb's Avatar
i am making a whole map that uses the mechanic of spawning blocks.
command:

/setblock x y z ID
1
01/20/2014 9:51 pm
Level 16 : Journeyman Goblin
poltercreeper
poltercreeper's Avatar
you do realize that post was made back when /summon had just came out
1
09/07/2013 6:03 am
Level 18 : Journeyman Architect
Osca32
Osca32's Avatar
/summon EnderCrystal ~ ~ ~ {Riding:{id:Bat}}
Target practise!

/summon Creeper ~ ~ ~ {ExplosionRadius:100,Fuse:30,Riding:{id:Spider}}
Super creepers riding spiders. (These guys have really big explosions. Use with caution)
Is there any way to add attributes using this?
1
01/15/2014 12:29 pm
Level 31 : Artisan Ranger
turbozack
turbozack's Avatar
Haha, thanks for the code, I'll use this.
1
09/07/2013 8:10 pm
Level 16 : Journeyman Engineer
atomick86
atomick86's Avatar
Osca32
Is there any way to add attributes using this?

There is for armour, tools and weapons, just by enchanting them, im not to sure about the command for it though
1
09/07/2013 10:09 pm
Level 36 : Artisan Zombie
UndeadGaming606
UndeadGaming606's Avatar
This is a little bit off topic, but can you summon a mob riding an Ender Dragon? I know you can summon jockeys, but can you summon Ender Dragon jockeys? I don't have the 1.7 snapshot, yet, so I can't test it.
1
09/07/2013 10:39 pm
Level 16 : Journeyman Goblin
poltercreeper
poltercreeper's Avatar
yes you could, you would use the data tag {Riding:{ID:EnderDragon}}
1
09/16/2013 1:02 am
Level 6 : Apprentice Engineer
html_person
html_person's Avatar
Dear mercy, what has Jeb allowed to be created!?
*imagines creepers with thousand block explosion radii and one-tenth of a second fuses riding an Ender Dragon*
1
09/16/2013 3:24 pm
Level 56 : Grandmaster Taco
Mgreat
Mgreat's Avatar
Lol. Only problem with that, is that the creepers might kill the enderdragon with their explosion. XD
1
09/16/2013 3:43 pm
Level 21 : Expert Modder
Creeper_Modder
Creeper_Modder's Avatar
They would kill it in an instant.
1
09/07/2013 10:37 pm
Level 16 : Journeyman Goblin
poltercreeper
poltercreeper's Avatar
ok, im starting to figure this out, but i tried to make a villager with custom trades, and my minecraft crashed when i tried to trade with my glitch of a villager, can someone help me figure out how to use the summon command to spawn villagers with custom trades.
Edit: figued it out and found an awsome reddit page with lots of info on this: http://www.reddit.com/r/Minecraft/comments/1lsesa/how_to_use_the_summon_command/
1
09/07/2013 10:58 pm
Level 66 : High Grandmaster Hero
sed11
sed11's Avatar
/summon PrimedTnt ~ ~ ~ {Fuse:30}

(30 can be any number, of course. Without the fuse data tag, it will explode instantly.)

/summon EyeOfEnderSignal

The eye of ender flies off quickly.
1
09/07/2013 11:07 pm
Level 30 : Artisan Archer
gusgus
gusgus's Avatar
Yeah, I thought it might be the time but wasn't sure how to change it.. Thanks

Does anyone know how to change the Velocity of falling sand entities (either x, y or z) ? I think it has something to do with motion tag, but I'm not sure what to type in the command block..
1
09/08/2013 11:50 am
Level 16 : Journeyman Goblin
poltercreeper
poltercreeper's Avatar
I think I can Figure this out, I'll edit this post when I find the answer.
Edit: not entirely sure, but i think its this: {Motion:{dX:(velocity in the x direction),dY:(velocity in the y direction),dZ:(velocity in the z direction)}} be careful though, i messed up spawning a custom villager and crashed my minecraft, might happen if this is wrong too.
1
09/08/2013 7:09 am
Level 30 : Artisan Archer
gusgus
gusgus's Avatar
I've worked out how to spawn items..

/summon Item ~ ~ ~ {Item:{id:388, Count:5}}

^^Btw that's for spawning 5 emeralds..
1
09/08/2013 12:10 pm
Level 66 : High Grandmaster Hero
sed11
sed11's Avatar
Adding on to that: Setting the count to 128 on any item let's you have infinite if it's an item that places a block, (Such as redstone) or if it's a block itself. (So you cannot really have infinite materials from the single stack. Of course, you could if it's a block such as Diamond.)

Dropping the item and picking it back up will leave a clone of the dropped item.

Note: Collecting a normal stack of blocks, and maybe non-block items, will remove how you have an infinite stack with no number, so you will need to collect an infinite stack again.
1
09/08/2013 12:49 pm
Level 16 : Journeyman Goblin
poltercreeper
poltercreeper's Avatar
Found out the basics of summoning a mob spawner, you do this:
/Summon FallingSand {TileID:52,TileEntityData:{EntityId:(block/mob id of what you are trying to spawn)},Time:(any number over 0, i use 60)}
1
09/08/2013 1:12 pm
Level 3 : Apprentice Explorer
Bedroomcoder ONM
Bedroomcoder ONM's Avatar
Love this command. Spent yesterday making Villagers ride zombies. They make a good team xD
1
09/08/2013 1:39 pm
Level 23 : Expert Cake
Spellguard
Spellguard's Avatar
Here's a link that should provide insight to those wondering:

http://www.minecraftwiki.net/wiki/Chunk_format#Entity_Format

This is the Minecraft Wiki page on the NBT format for Chunks, Entities, and TileEntities.
It contains all the possible tags for every entity spawnable with the /summon command.
It also contains the data used with tile entities (i.e. chests, furnaces, spawners, comparators, etc.) so you could spawn them in with /summon

As far as creations go, you can literally do anything possible with custom spawners before.

(Actually, I haven't figured out how to flat-out delete a block; I've been able to change blocks into other blocks but not just delete say, a diamond ore.)

I've made creepers that explode instantly (scary), flying creepers that explode instantly, pretty diabolical zombies with full diamond enchants, and my favorite: minecarts that display blocks in them (used to be pretty difficult to do, now it isn't)

Only thing I haven't gotten yet is how to set motion data for entities. I would love to be able to remotely spawn in a projectile like an arrow and have it fly forwards.
1
09/08/2013 2:02 pm
Level 16 : Journeyman Goblin
poltercreeper
poltercreeper's Avatar
yep, ive been using that page, it is really helpful
1
09/08/2013 2:07 pm
Level 23 : Expert Cake
Spellguard
Spellguard's Avatar
My problem is adding a basically unusable trade (block id 34, a mechanical piston block) at the end of the villagers trading list. When I mouse over the piston block in the villager's trade menu, the game crashes.


EDIT: Don't f- up your custom villagers. You'll break the world.
Each trade needs to have a MaxUses value, apparently
1
09/08/2013 3:19 pm
Level 23 : Expert Cake
Spellguard
Spellguard's Avatar
Here's how to set motion on summoned entities (I'm betting someone else on the interwebz has already):

/summon Arrow ~ ~ ~ {Motion:[x.0, y.0, z.0]}

Notice the [] brackets.

The x, y, and z numbers are the distance/ velocity per tick the arrow travels, but they must always be inputted as decimals. (0.0, 1.0, 0.0) makes the arrow fly upwards for a few blocks.

It does not take a huge number to have an arrow fly a large distance, or any entity.
1
09/08/2013 3:43 pm
Level 31 : Artisan Dragonborn
ummay35
ummay35's Avatar
I Made a instant house in vanilla minecraft !!! NO Programs or mods used 100% in vanilla using the /summon command with falling sand entities http://www.youtube.com/watch?v=7fmC2AgcPyE
1
09/08/2013 4:47 pm
Level 16 : Journeyman Goblin
poltercreeper
poltercreeper's Avatar
and to imagine just a week ago you would need mcedit for that
1
01/14/2014 11:19 pm
Level 6 : Apprentice Crafter
sarcastic_ninja
sarcastic_ninja's Avatar
And now you can use /setblock
1
01/15/2014 7:26 pm
Level 16 : Journeyman Goblin
poltercreeper
poltercreeper's Avatar
yep times are changing , now you can even change whats in a chest in the house without destroying the block though the /blockdata command
1
09/08/2013 4:51 pm
Level 33 : Artisan Dwarf
spires33
spires33's Avatar
i dont have the snapshot but ender dragon with minecart on top!
1
09/08/2013 4:57 pm
Level 31 : Artisan Dragonborn
CrazyHecticLife
CrazyHecticLife's Avatar
I love this new command! But does anyone know if it's possible to give whatever you summon armor or weapons? Because I'm working on multiple adventure maps and I need armor and weapons on certain mobs.
1
09/08/2013 5:04 pm
Level 23 : Expert Cake
Spellguard
Spellguard's Avatar
Yup, it's possible!
http://www.minecraftwiki.net/wiki/Chunk_format#Entity_Format
Look under the Mobs section

It would be formatted like this:

/summon Zombie ~ ~ ~ {Equipment:[{id=276},{id=313},{id=312},{id=311},{id=310}]}
^ ^ ^ ^ ^
Item Feet Legs Chest Helmet (Order of the ids of the compoun tags)

That command spawns a diamond armor equipped zombie with a diamond sword. Change the id #'s to whatever you want
1
09/08/2013 5:59 pm
Level 30 : Artisan Archer
gusgus
gusgus's Avatar
Has anyone found out how to enchant armour, etc?
1
09/08/2013 6:13 pm
Level 23 : Expert Cake
Spellguard
Spellguard's Avatar
http://www.minecraftwiki.net/wiki/Player.dat_Format#Item_structure

This is the item tag structure. Look under enchantments.

Here's an example with /summon

/summon Item ~ ~ ~ {Item:{id:311,Count:1,tag:{ench:[{id:0,lvl:1}]}}}

This would summon a diamond chestplate with protection 1 on it.
You can change the enchantments under the ench[] list, and add more that one enchantment. Item names and Lore are also possible

/summon Item ~ ~ ~ {Item:{id:311,Count:1,tag:{display{Name:Battle Gear,Lore:[{It's ready for battle!}]}}}}
1
09/08/2013 7:50 pm
Level 6 : Apprentice Engineer
Bbaronx
Bbaronx's Avatar
this isn't really something special, its more of a bug, if you do the command
/summon PigZombie ~ ~ ~ {Riding: {Id: Giant}}
your zombie pigman will have no sword.
1
09/08/2013 8:08 pm
Level 2 : Apprentice Crafter
xAlmondx
xAlmondx's Avatar
That's due to the fact that the game ONLY spawns the Mob, not the Equipment they are often seen with.
Something I did is:

/summon Giant X Y Z {Riding:{id:EnderCrystal,Riding:{id:EnderCrystal,Riding:{id:EnderCrystal,Riding:{id:EnderCrystal,Riding:{id:EnderCrystal,Riding:{id:EnderCrystal,Riding:{id:EnderCrystal,Riding:{id:EnderCrystal,Riding:{id:EnderCrystal,Riding{id:Enderdragon,riding:id:Wolf}}}}}}}}}}}

Spawns a Giant on a Bunch of Ender Crystals on an Ender Dragon's back, riding a Wolf.
1. Tame wolf.
2. ???
3. Profit!

But you probably need to put it in a Command Block, so do /give @p 137.
1
11/10/2013 4:37 pm
Level 44 : Master Demolitionist
AetherMaster
AetherMaster's Avatar
he won't chase you either now thats a real Zistonian

how 'bout a name we need to give him a name maybe Zisteau?

/summon PigZombie ~ ~ ~ {ActiveEffects:[{Id:5,Duration:999999,Amplifier:2}],CustomNameVisible:1,CustomName:"Zisteau",Riding: {Id: Giant}}
1
09/08/2013 8:56 pm
Level 56 : Grandmaster Taco
Mgreat
Mgreat's Avatar
Looking awesome so far guys, thank you for all the great links, and commands. And just a note, I'm going to turn this thread into a "summon command" help thread, not just sharing. I figure it will be even better this way.

I haven't done too much with it yet, but here's a quick one I did.
/summon Ghast ~ ~ ~ {Riding: {Id: Giant}}

Lol, it's like a hat for the giant. XD
1
09/09/2013 1:21 pm
Level 18 : Journeyman Architect
Osca32
Osca32's Avatar
How do you make a block/fallingSand entity replace a block?
1
09/09/2013 3:07 pm
Level 56 : Grandmaster Taco
Mgreat
Mgreat's Avatar
I'm pretty sure, you have the falling sand block, spawn directly within the block you want to replace. And just don't change the time data thingy of it, from the default of the summon command. So normally, it would just disappear immediately, but this shouldn't, if it is inside a block.
1
09/09/2013 5:00 pm
Level 23 : Expert Cake
Spellguard
Spellguard's Avatar
You need two command blocks to do this, activated at the same time

/summon FallingSand ~ ~ ~ {TileID:blockID,Time:0,DropItem:0}
and
/summon FallingSand ~ ~ ~ {TileID:newBlock,Time:1,DropItem:0}

where the ~ ~ ~ is the coordinates of the block
blockID= the ID of the block you want to replace
newBlock= the block that will take the place of the old one

You could have another two command blocks that can reverse this effect, just by switching the two TileID's
1
09/09/2013 5:15 pm
Level 23 : Expert Cake
Spellguard
Spellguard's Avatar
Any ideas for minigames I could make featuring the /summon command?
1
09/09/2013 7:22 pm
Level 56 : Grandmaster Taco
Mgreat
Mgreat's Avatar
Hmmm, maybe you could make a pvp map, where players have to try and trap their opponent, in falling sand. Have two large boxes, with pressure plates, that trigger falling on the other one, or something. XD
1
09/09/2013 8:40 pm
Level 16 : Journeyman Goblin
poltercreeper
poltercreeper's Avatar
you could make a mob arena with custom-spawned mobs, like a zombie in full diamond armor and a diamond hoe (idk why, just sounds funny)
1
09/10/2013 3:04 am
Level 1 : New Explorer
HerpDerpTheGamer
HerpDerpTheGamer's Avatar
hey so i'm using a /summon PrimedTnt command for a "magic wall" on an adventure map of mine any1 know how to set a delay?
1
09/10/2013 3:10 pm
Level 56 : Grandmaster Taco
Mgreat
Mgreat's Avatar
Yes, just use this: /summon PrimedTnt ~ ~ ~ {Fuse:30}
Then change the fuse to whatever you need it to be.
1
09/10/2013 12:43 pm
Level 21 : Expert Modder
Creeper_Modder
Creeper_Modder's Avatar
And those guys who hated 1.7 -.- THIS IS FREAKING EPIC!
1
09/10/2013 8:41 pm
Level 16 : Journeyman Goblin
poltercreeper
poltercreeper's Avatar
agreed
1
09/11/2013 4:44 pm
Level 56 : Grandmaster Taco
Mgreat
Mgreat's Avatar
Yeah, this is the best thing, since they added the command block.
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome