i did that, but then the command wouldn't work so I added in ",score_Unicorn_min=1" in the @e brackets, and it still didn't work...
Also, I accidentally placed the radius value in there, when I placed it in the actual command block, I took that out. (Also, what is the 's' for? Because when I had the command in there previously, I had it without the 's'', and no error message came up.)
By adding the "score" parameter, you are ensuring that the command will never work in the first place. It's trying to find an item with a "Unicorn" score of 1, of which no item like that exists, which then stops the /scoreboard command from setting that score to the item. By not including that parameter, you ensure the command will succeed. The command I've presented does work.
The "s" is the datatype, standing for "Short". Without it, the datatype is "Integer". The game specifically assigns "Short" to enchantment IDs and levels in item NBT when enchanting or receiving enchantments on items in survival, so it's best to be consistent everywhere as item data will otherwise not be auto-corrected (and, if trying to target items based on their enchantment data, would require you to specify multiple commands to cover multiple datatypes).
So I did that, and now it says 'the dataTag does not match for aed428fa-4b9c-4370-9328-f4002d7c1ec9'
Sorry for all of the trouble, but I'm completely new to redstone and command blocks... thanks so much for helping me.
If there are other item entities on the ground, then the error message will not be useful since the command must iterate for each item entity to locate a match. The last output will show the last item processed, which will not necessarily be the one(s) that matched.
A quick way to ensure it worked is to instead target it based on its score:
That would explain it, seeing as I have a repeat command block that is set to kill any slime in a radius of about 500 or something :P. (I kinda got sick of the slimes...)
Also, do I have to input that into a command block? (Sorry I had like 2 seconds to test it out, so I just put it in chat, and it says that the player wasn't found, so I'm assuming I have to put it in a command block.) I'll try it out tomorrow, thank you so much for the help
These are my three commands. When I place them into the command block, no error message comes up, but I receive no spawn egg, let alone an enchanted one.
These are my three commands. When I place them into the command block, no error message comes up, but I receive no spawn egg, let alone an enchanted one.
Sorry, just noticed the /give command is malformed; you need to specify a count and Damage value before specifying NBT data:
Thanks, it worked! I simply added that, then made that command block a repeat as well :D. Which leads me to ask, what's the best type of hopper clock? Because from what I know, it's not possible to summon a repeat command block. But if I'm wrong, please say otherwise :). Thanks once again!
Help! Can you please provid the commands for these blocks and effects? Red clay=kill. Green clay=speed 5. Yellow clay=jump boost 6. blue clay=levitation 2. Purple clay=teleports the player up 5 blocks. Brown clay=slowness 2. Black clay=blindness 3. And finally, Pink clay=teleports the player down 5 blocks. I don't know how long this will take but can you do it? Thanks!
How do you summon a fireball at snowballs or arrows? Also, how do you make it so when you crouch you get teleported into the block so its like your crawling in the block? The map Scary Blocks did this with pistons and I would like to do it with blue stained clay or glass!
You can do much more than double. Recently began to question just how many when I was playing with a random dungeon generation idea. I was using execute-detect to test for feature and room placement. Was generating them using some C# code, my largest execute-detect command was for a 60 block volume but I was optimizing away any tests for air blocks so I think the deepest it got was 18 or so.
This will break the block the arrow is in only if its glass and the arrow has a score because it is in glass. You could also do a conditional command block after those two that plays a sound of glass breaking to players near the arrow and do a particle effect of glass breaking for just some extra detail.
So I'm fairly new to using the /execute command, but have been working with command blocks for some time, and am having some difficulty identifying a problem...
I'm working on making a push-able block (smooth granite), and have the block be cloned to a space one further away from the player after a delay of 10 ticks (using a scoreboard with objective 'pushDelay'). I've set up a system whereby the following commands function as intended:
However, any other direction (negative x, positive or negative z) doesn't work. For example, the following command doesn't give me any output info, even though all I changed (I believe) was the direction:
EXECUTE-CEPTION
My youtube: https://www.youtube.com/channel/UCO9DtxabZWZpv_k-rsUx7FA
My steam group: https://steamcommunity.com/groups/castlecrashersarmy
By adding the "score" parameter, you are ensuring that the command will never work in the first place. It's trying to find an item with a "Unicorn" score of 1, of which no item like that exists, which then stops the /scoreboard command from setting that score to the item. By not including that parameter, you ensure the command will succeed. The command I've presented does work.
The "s" is the datatype, standing for "Short". Without it, the datatype is "Integer". The game specifically assigns "Short" to enchantment IDs and levels in item NBT when enchanting or receiving enchantments on items in survival, so it's best to be consistent everywhere as item data will otherwise not be auto-corrected (and, if trying to target items based on their enchantment data, would require you to specify multiple commands to cover multiple datatypes).
Minecraft-things: http://skylinerw.com
More Minecraft-things: https://sourceblock.net
Guides for command-related features (eventually moving to Source Block): https://github.com/skylinerw/guides
I primarily hang out in the /r/MinecraftCommands discord, where there's a lot of people that help with commands: https://discord.gg/QAFXFtZ
Their corresponding subreddit: https://www.reddit.com/r/MinecraftCommands/
It says that "No objective by the name 'Unicorn' was found". I have it set up like this:
The first one (the command block on repeat) is displaying this message.
You have to create the objective first:
Minecraft-things: http://skylinerw.com
More Minecraft-things: https://sourceblock.net
Guides for command-related features (eventually moving to Source Block): https://github.com/skylinerw/guides
I primarily hang out in the /r/MinecraftCommands discord, where there's a lot of people that help with commands: https://discord.gg/QAFXFtZ
Their corresponding subreddit: https://www.reddit.com/r/MinecraftCommands/
So I did that, and now it says 'the dataTag does not match for aed428fa-4b9c-4370-9328-f4002d7c1ec9'
Sorry for all of the trouble, but I'm completely new to redstone and command blocks... thanks so much for helping me.
If there are other item entities on the ground, then the error message will not be useful since the command must iterate for each item entity to locate a match. The last output will show the last item processed, which will not necessarily be the one(s) that matched.
A quick way to ensure it worked is to instead target it based on its score:
Minecraft-things: http://skylinerw.com
More Minecraft-things: https://sourceblock.net
Guides for command-related features (eventually moving to Source Block): https://github.com/skylinerw/guides
I primarily hang out in the /r/MinecraftCommands discord, where there's a lot of people that help with commands: https://discord.gg/QAFXFtZ
Their corresponding subreddit: https://www.reddit.com/r/MinecraftCommands/
That would explain it, seeing as I have a repeat command block that is set to kill any slime in a radius of about 500 or something :P. (I kinda got sick of the slimes...)
Also, do I have to input that into a command block? (Sorry I had like 2 seconds to test it out, so I just put it in chat, and it says that the player wasn't found, so I'm assuming I have to put it in a command block.) I'll try it out tomorrow, thank you so much for the help
The best way is:
List out all the commands about that blaze powder, we need to hunt for typos.
To get rid of the slimes temporary, type /gamerule mobSpawning false,
this is lag-free.
/scoreboard objectives add Unicorn dummy
/scoreboard players set @e[type=Item] Unicorn 1 {Item:{id:minecraft:blaze_powder}}
/execute @e[type=Item,score_Unicorn_min=1] ~ ~ ~ detect ~ ~ ~ fire -1 /give @p minecraft:spawn_egg {ench:[{id:16s,lvl:1s}]}
These are my three commands. When I place them into the command block, no error message comes up, but I receive no spawn egg, let alone an enchanted one.
Sorry, just noticed the /give command is malformed; you need to specify a count and Damage value before specifying NBT data:
Minecraft-things: http://skylinerw.com
More Minecraft-things: https://sourceblock.net
Guides for command-related features (eventually moving to Source Block): https://github.com/skylinerw/guides
I primarily hang out in the /r/MinecraftCommands discord, where there's a lot of people that help with commands: https://discord.gg/QAFXFtZ
Their corresponding subreddit: https://www.reddit.com/r/MinecraftCommands/
People do make mistakes, right? XD
Thanks, it worked! I simply added that, then made that command block a repeat as well :D. Which leads me to ask, what's the best type of hopper clock? Because from what I know, it's not possible to summon a repeat command block. But if I'm wrong, please say otherwise :). Thanks once again!
Help! Can you please provid the commands for these blocks and effects? Red clay=kill. Green clay=speed 5. Yellow clay=jump boost 6. blue clay=levitation 2. Purple clay=teleports the player up 5 blocks. Brown clay=slowness 2. Black clay=blindness 3. And finally, Pink clay=teleports the player down 5 blocks. I don't know how long this will take but can you do it? Thanks!
It's just a bunch of /execute and /scoreboard
is this rly that hard?
Hoverver I know you have only answered the question, please note the title of this thread.
How do you summon a fireball at snowballs or arrows? Also, how do you make it so when you crouch you get teleported into the block so its like your crawling in the block? The map Scary Blocks did this with pistons and I would like to do it with blue stained clay or glass!
You can actually use a double execute command, an execute command that executes another command. This is useful for targeting entities.
Creations are only restricted by your imagination.
You can do much more than double. Recently began to question just how many when I was playing with a random dungeon generation idea. I was using execute-detect to test for feature and room placement. Was generating them using some C# code, my largest execute-detect command was for a 60 block volume but I was optimizing away any tests for air blocks so I think the deepest it got was 18 or so.
You can not use the tag {inTile} because it doesn't really exist. What you can do, is
That will set the score of breakglass to 1 of any arrow in glass. To destroy the glass:
/execute @e[score_breakglass_min=1] ~ ~ ~ setblock ~ ~ ~ air 0 replace glass
This will break the block the arrow is in only if its glass and the arrow has a score because it is in glass. You could also do a conditional command block after those two that plays a sound of glass breaking to players near the arrow and do a particle effect of glass breaking for just some extra detail.
Click here for my youtube!
Click here for my modpack!
So I'm fairly new to using the /execute command, but have been working with command blocks for some time, and am having some difficulty identifying a problem...
I'm working on making a push-able block (smooth granite), and have the block be cloned to a space one further away from the player after a delay of 10 ticks (using a scoreboard with objective 'pushDelay'). I've set up a system whereby the following commands function as intended:
/execute @a ~ ~ ~ detect ~1 ~ ~ stone 2 scoreboard players add @a pushDelay 1
followed by
/execute @a[score_pushDelay_min=10] ~ ~ ~ detect ~1 ~ ~ stone 2 execute @a ~ ~ ~ detect ~2 ~ ~ air 0 clone ~1 ~ ~ ~1 ~ ~ ~2 ~ ~ masked move
However, any other direction (negative x, positive or negative z) doesn't work. For example, the following command doesn't give me any output info, even though all I changed (I believe) was the direction:
/execute @a ~ ~ ~ detect ~-1 ~ ~ stone 2 scoreboard players add @a pushDelay 1
Any idea what I'm doing wrong...?