1

Command Block Questions

66678976543456's Avatar 666789765434564/26/15 4:51 pm
1 emeralds 379 7
4/29/2015 3:23 pm
66678976543456's Avatar 66678976543456
Hello People -
I've been messing around with a lot of command blocks, and have a few questions about some specific commands.

1 - Is it possible to set a specific colour for /particles such as mobSpell, cloud, or fireworksSpark? [Ex: Red fireworksSpark particles]

2 - Can you set a /playsound to be heard to all players, but only in a specific block radius? [Ex: 10 blocks]

3 - What command deals a specific amount of damage to a players in a specific radius? [Ex: 1/2 a heart to players within 5 blocks]

4 - How do you summon the purple rays that appear during the Ender Dragon's death?

Thanks ~
Kai
Posted by 66678976543456's Avatar
66678976543456
Level 1 : New Miner
0

Create an account or sign in to comment.

7

1
04/29/2015 3:23 pm
Level 1 : New Miner
66678976543456
66678976543456's Avatar
Thank you, Jmal
1
04/27/2015 5:41 pm
Level 33 : Artisan Engineer
Jmal116
Jmal116's Avatar
Well I think there's a slight bug with snowballs, for some reason I can't seem to get them to actually knock me back :/

I was able to get it to work with arrows though, if you don't mind the sounds. I have it set up so that the arrow only deals 1/2 heart of damage, I don't think there's any way to make it go lower.execute @p ~ ~1 ~ summon Arrow ~2 ~ ~ {Motion:[-2.0,0.0,0.0],damage:0.5}
You can play around with the direction and coordinates however you like, this was just the first thing I got that worked. The only really important thing is that the motion has the opposite direction of where it is spawned (so ~2 ~ ~ becomes -2,0,0).
1
04/27/2015 5:07 pm
Level 1 : New Miner
66678976543456
66678976543456's Avatar
Jmal, could you please write a sample command for this? As of yet I'm not experienced with manipulating vectors in minecraft.
1
04/26/2015 8:37 pm
Level 52 : Grandmaster Imposter
Jewelman
Jewelman's Avatar
I'm not sure you can. Sorry if I'm wrong. :/
1
04/26/2015 8:07 pm
Level 1 : New Miner
66678976543456
66678976543456's Avatar
Thank you Jmal
I have one more question for you
What command deals knockback to a player?
1
04/27/2015 3:45 pm
Level 33 : Artisan Engineer
Jmal116
Jmal116's Avatar
Do you mean as if they had been hurt by something? There isn't a command to do that as far as I'm aware. Maybe you could try summoning a snowball or something near the player with a certain motion so that it hits them in a direction? I'm not actually sure how well that would work, but it's the best I can come up with right now.
1
04/26/2015 6:20 pm
Level 33 : Artisan Engineer
Jmal116
Jmal116's Avatar
1 - I know it's possible with the mobSpell particle, however I think that's the only one from your list that will work for. I haven't actually tried anything like that myself, so I'm not 100% sure on the specifics. There's some pretty specific info about it on the wiki, though, I'd suggest you check it out. http://minecraft.gamepedia.com/Commands#particle

2 - I know you can put a radius on the player selector used in /playsound (i.e. @a[r=10], however I believe that players near those players will also be able to hear the sound, even if they are more than 10 blocks away. If your radius doesn't need to be that specific, then it shouldn't really matter too much.

3 - You can use the /effect command to give the player a weak instant damage effect.effect @p instant_damage 1 [amplifier]Keep in mind an ampliefier of 0 will remove (I think) 3 hearts. To remove less, combine the instant damage with a resistance effect to weaken it a bit. You'll have to play around with the strength of the two potions to get the correct amount of health loss, as I'm not aware of any formula.

4 - Unfortunately, the dragon lights are neither an entity or particle, so they can't be summoned at will. The best way to do this is to spawn a dragon with 0 health so it dies instantly, and will then create the lights. Keep in mind it will rise up about 20 blocks as it dies, so you'll have to either spawn it below the ground, or riding a minecart so that it doesn't move.
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome