I have another question. Usually, if you want to make a command block to teleport you, you type in the commands and give it some power through redstone.After powering it, it teleports you to whatever coordinates you put in the command.
After teleporting you, it says '@:teleported PixelsDeepak to x y z.'
How do I stop that sentence from showing up in the chat tab? I've seen a few maps do that. What gamerule do I have to add?
I allways wondered that till I found the game rule command. Do /gamerule CommandBlockOutput False This will make shure that no command block output will display in the chat so if you have a redstone clock set up keeping the time at day it won't spamm the chat with "Set time to day".
I have another question, Feare. How do you check for a specific item in your inventory using commands? I have a map, and in it there is a door, and you can only go through it if you have a astronaut suit. How do I do that?
Rollback Post to RevisionRollBack
"Those aren't mountains,those are waves!"-Cooper from Interstellar
I have another question, Feare. How do you check for a specific item in your inventory using commands? I have a map, and in it there is a door, and you can only go through it if you have a astronaut suit. How do I do that?
Hey, nice job on this post, Feare. I personally know quite a bit about Command Blocks and all that, I just enjoy seeing what the community is doing. Keep up the good work!
fear command block question (: What's the correct way to give an item to a player in a specific XYZ? the command I'm trying to run is a give command but I don't want to mess it up by trying to add in my XYZ how and where do I add that? this is the command:
fear command block question (: What's the correct way to give an item to a player in a specific XYZ? the command I'm trying to run is a give command but I don't want to mess it up by trying to add in my XYZ how and where do I add that? this is the command:
/give @p iron_sword 1 0 {ench:[{id:16,lvl:10}]}
The command should work if add the XYZ after the selector. Like this:
Thanks, I thought that it was somewhere near the selector but I didn't want to mess it up.
==EDIT==
Well I tested it using McStacker and it generated the command to do what you suggested but it didn't seem to work. My test was pressing a button on the command block while sitting in the wrong XYZ and it still gave me the item (aka a blaze rod with fire aspect :D).
Thanks, I thought that it was somewhere near the selector but I didn't want to mess it up.
==EDIT==
Well I tested it using McStacker and it generated the command to do what you suggested but it didn't seem to work. My test was pressing a button on the command block while sitting in the wrong XYZ and it still gave me the item (aka a blaze rod with fire aspect :D).
Did a quick test and fix. Just add a radius parameter after the coordinates!
Ok thanks my map isn't heavy on the command blocks (it's meant as a survival/RP map) but I'm using as much commands as possible to make up for plugins.
alright so in my map you have some choices for what kit you want to start out as. And one of those is the wizard kit. The problem is I want the wizard's "staff" to be a golden hoe, but I don't want it to still be able to hoe the ground. Is it possible to disable it with commands? and if too complicated tell me, it's not too important.
alright so in my map you have some choices for what kit you want to start out as. And one of those is the wizard kit. The problem is I want the wizard's "staff" to be a golden hoe, but I don't want it to still be able to hoe the ground. Is it possible to disable it with commands? and if too complicated tell me, it's not too important.
It's not possible to remove a tools default use unfortunately. Well, not that I know of, and I can't think of a concept to be able to achieve such a thing. Apologies.
It's not possible to remove a tools default use unfortunately. Well, not that I know of, and I can't think of a concept to be able to achieve such a thing. Apologies.
- xFeare_
No problem. I just thought it looked cooler than a blaze rod.
I hope i don't get whipped on my head for being a "dinosaur digger" but it came to me after a thorough search and could not find a particular answer. When a commandblock issues by automated clock a full spread (all people) gamemode command, is there a way to exclude users like it is possible with tp @a [r=5,name=!Mr_Killer] ~ ~15 ~ which brings everything within a radius of 5, 15 blocks in the air.
Hi there! I'm trying to use a command block as a teleporter on a vanilla multiplayer server, but for some reason I just cannot get it to work. I've been using "tp @p x y z" and "/tp @p x y z" and even tried @a and my username, but still nothing. :< It keeps saying "The entity UUID is in an invalid format" each time I try. I know where I'm teleporting to and it's not as if I'm teleporting into a wall, so I honestly don't know what to do to get it to work. If you could help, I would really really really appreciate it!
I don't know if you have the answer, but try this:
tp @a[r=5] ~ ~15 ~ this brings everything in a radius of 5, 15 blocks in the air. If you want to exclude yourself, use this:
tp @a[r=5,name=!sylveonne] ~ ~15 ~Don't forget the exclamation mark (!) in front of your name, otherwise.... you'll go up too.
Experiment on this...
EDIT: I just went on trying, but if you issue a TP command and you are too far from the commandblock, as outside it's radius, you\ll get that error, because it could not find anything to transport
The Meaning of Life, the Universe, and Everything.
Location:
Neverland
Join Date:
2/1/2015
Posts:
246
Location:
The Mesa
Member Details
This is really cool! I have been using some of these for a project I am working on!
Just one thing: I would like to have particles set so that when a player joins a certain team, the particles will start floating around players of that team only. For example, I want it set so portal particles (enderman, nether portals, etc.) will work only for team A and will never play around team B or vice versa.
My first thought: Oh, just do /execute @p /particle portal ~ ~ ~ ~ ~ ~ 1 10.
Upon further testing: I tested the particles out, started both clocks, and ran around a bit, but noticed I was getting both particles (I was testing a multiplayer map on singleplayer bc my computer is terrible :P), not just the ones specific to my team.
I remember watching a guy do something like this except in 1.7 using a /summon command (fire particles) with /testfor, but I am not sure how /testfor works and I have broken my computer enough xD
Hello all! Sorry for my absence! I've been busy lately with school and my power kind of skitzed it - needed to get a power-point fixed. But I'm back and ready to help you all!
Hi i would like the command block to tell me the nearest players name after the text "kill?" Any ideas because it won't work for me. Here's the code:
/tellraw prime8852 ["",{"text":"Kill? @p ","clickEvent":{"action":"run_command","value":"/kill @p"},"hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"Are you sure?"}]}}}]
To add in a player name, simply add the "extra" tag, like so: extra:[{selector:"@p"}] A working command is pasted below:
/tellraw @a ["",{"text":"Kill? ",extra:[{selector:"@p"}],"clickEvent":{"action":"run_command","value":"/kill @p"},"hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"Are you sure?"}]}}}]
I hope i don't get whipped on my head for being a "dinosaur digger" but it came to me after a thorough search and could not find a particular answer. When a commandblock issues by automated clock a full spread (all people) gamemode command, is there a way to exclude users like it is possible with tp @a [r=5,name=!Mr_Killer] ~ ~15 ~ which brings everything within a radius of 5, 15 blocks in the air.
Is that also possible???
Quite simple, really. Using the /gamemode command, have it like normal but simply attach parameters, like so:
/gamemode 1 @a[r=3,m=2]
Anyone within 3 blocks of the command blocks and in Adventure mode (gamemode 2) will be changed to Creative mode. Anyone NOT within this radius and in this mode will be unaffected.
This is really cool! I have been using some of these for a project I am working on!
Just one thing: I would like to have particles set so that when a player joins a certain team, the particles will start floating around players of that team only. For example, I want it set so portal particles (enderman, nether portals, etc.) will work only for team A and will never play around team B or vice versa.
My first thought: Oh, just do /execute @p /particle portal ~ ~ ~ ~ ~ ~ 1 10.
Upon further testing: I tested the particles out, started both clocks, and ran around a bit, but noticed I was getting both particles (I was testing a multiplayer map on singleplayer bc my computer is terrible :P), not just the ones specific to my team.
I remember watching a guy do something like this except in 1.7 using a /summon command (fire particles) with /testfor, but I am not sure how /testfor works and I have broken my computer enough xD
If there is a way to do this, thank you!
Pretty simple. Again, as seems to be most cases, it's simply parameters after the player selector. Examples:
Hey Feare im creating a large city map and it includes an amusement park, I wish to include a mtiplayer pacman minigame but I can't figure how to make it work, Plz help! My problem is that when the player that is supposed to be pacman walks over a gold block (the dots from the game) i want the gold to turn into a different bloc and give the player a point, i just don't know how to make the block change (I know how to add points)! Also It would be great if you could show how to use command blocks to automatically equip armour and put it back on them if they take it off
Such a mechanic would work like this:
(input received from a fast clock) /execute @p ~ ~ ~ testforblock ~ ~-1 ~ gold_block
(comparator from previous command block into this one) execute @p ~ ~ ~ setblock ~ ~-1 ~ cobblestone
However, if the player is sprints, this poses some problems. Perhaps disallow players to sprint - make non-pacman slower so he he has a chance to catch them though!
Now I feel like an idiot xD I was doing /execute ~ ~ ~ @p[team=teamA] /particle portal ~ ~ ~ 0 0 0 5 10 (I lag a lot and so I have to put some limits on the particles xD)
Pretty much what I did was type the command incorrectly and use the wrong selector xD
I allways wondered that till I found the game rule command. Do /gamerule CommandBlockOutput False This will make shure that no command block output will display in the chat so if you have a redstone clock set up keeping the time at day it won't spamm the chat with "Set time to day".
Thank you again.
"Those aren't mountains,those are waves!"-Cooper from Interstellar
I have another question, Feare. How do you check for a specific item in your inventory using commands? I have a map, and in it there is a door, and you can only go through it if you have a astronaut suit. How do I do that?
"Those aren't mountains,those are waves!"-Cooper from Interstellar
Active Slots: /testfor @p {SelectedItemSlot:0}
Item: /testfor @p[r=10] {Inventory:[{id:"minecraft:diamond_sword"}]}
OR
/testfor @p[r=10] {Inventory:[{id:"minecraft:emerald",Count:2b}]}
Item in slot: /testfor @p[r=10] {Inventory:[{Slot:0b,id:"minecraft:diamond_sword"}]}
Item in active slot: /testfor @p[r=10] {SelectedItemSlot:0,Inventory:[{Slot:0b,id:"minecraft:diamond_sword"}]}
Named Item: /testfor @p[r=10] {Inventory:[{tag:{display:{Name:"Ice Blade"}}}]}
Named Item in Active Slot: /testfor @p[r=10] {SelectedItemSlot:0,Inventory:[{Slot:0b,tag:{display:{Name:"Ice Blade"}}}]}
-xFeare_
(Unable to edit formatting as sent from my phone)
Hey, nice job on this post, Feare. I personally know quite a bit about Command Blocks and all that, I just enjoy seeing what the community is doing. Keep up the good work!
fear command block question (: What's the correct way to give an item to a player in a specific XYZ? the command I'm trying to run is a give command but I don't want to mess it up by trying to add in my XYZ how and where do I add that? this is the command:
The command should work if add the XYZ after the selector. Like this:
/give @p[x,y,z] iron_sword 1 0 {ench:[{id:16,lvl:10}]}
Let me know if that works for you.
- xFeare_
Thanks, I thought that it was somewhere near the selector but I didn't want to mess it up.
==EDIT==
Well I tested it using McStacker and it generated the command to do what you suggested but it didn't seem to work. My test was pressing a button on the command block while sitting in the wrong XYZ and it still gave me the item (aka a blaze rod with fire aspect :D).
Did a quick test and fix. Just add a radius parameter after the coordinates!
/give @p[x,y,z,r=1] iron_sword 1 0 {ench:[{id:16,lvl:10}]}
- xFeare_
Ok thanks my map isn't heavy on the command blocks (it's meant as a survival/RP map) but I'm using as much commands as possible to make up for plugins.
alright so in my map you have some choices for what kit you want to start out as. And one of those is the wizard kit. The problem is I want the wizard's "staff" to be a golden hoe, but I don't want it to still be able to hoe the ground. Is it possible to disable it with commands? and if too complicated tell me, it's not too important.
It's not possible to remove a tools default use unfortunately. Well, not that I know of, and I can't think of a concept to be able to achieve such a thing. Apologies.
- xFeare_
Nice job!
No problem. I just thought it looked cooler than a blaze rod.
So can't you add a selector to a command for a scoreboard team? Like /effect @p whatever [team epic]. Sort of like the XP selector.
I hope i don't get whipped on my head for being a "dinosaur digger" but it came to me after a thorough search and could not find a particular answer. When a commandblock issues by automated clock a full spread (all people) gamemode command, is there a way to exclude users like it is possible with tp @a [r=5,name=!Mr_Killer] ~ ~15 ~ which brings everything within a radius of 5, 15 blocks in the air.
Is that also possible???
I don't know if you have the answer, but try this:
tp @a[r=5] ~ ~15 ~ this brings everything in a radius of 5, 15 blocks in the air. If you want to exclude yourself, use this:
tp @a[r=5,name=!sylveonne] ~ ~15 ~Don't forget the exclamation mark (!) in front of your name, otherwise.... you'll go up too.
Experiment on this...
EDIT: I just went on trying, but if you issue a TP command and you are too far from the commandblock, as outside it's radius, you\ll get that error, because it could not find anything to transport
This is really cool! I have been using some of these for a project I am working on!
Just one thing: I would like to have particles set so that when a player joins a certain team, the particles will start floating around players of that team only. For example, I want it set so portal particles (enderman, nether portals, etc.) will work only for team A and will never play around team B or vice versa.
My first thought: Oh, just do /execute @p /particle portal ~ ~ ~ ~ ~ ~ 1 10.
Upon further testing: I tested the particles out, started both clocks, and ran around a bit, but noticed I was getting both particles (I was testing a multiplayer map on singleplayer bc my computer is terrible :P), not just the ones specific to my team.
I remember watching a guy do something like this except in 1.7 using a /summon command (fire particles) with /testfor, but I am not sure how /testfor works and I have broken my computer enough xD
If there is a way to do this, thank you!
so
All my social media whachamacallsems!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Youtube: youtube.com/c/puppyspirit36teamender
Twitter: twitter.com/kittykqtender
Hello all! Sorry for my absence! I've been busy lately with school and my power kind of skitzed it - needed to get a power-point fixed. But I'm back and ready to help you all!
To add in a player name, simply add the "extra" tag, like so: extra:[{selector:"@p"}] A working command is pasted below:
/tellraw @a ["",{"text":"Kill? ",extra:[{selector:"@p"}],"clickEvent":{"action":"run_command","value":"/kill @p"},"hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"Are you sure?"}]}}}]
Indeed you can, easily too. Say we have our two teams; Recon and Heavy. We want recon to have Speed and Heavy to have Nausea.
/effect @a[team=Heavy] nausea 10
/effect @a[team=Recon] speed 10 5
Of course, to make these infinite you can simply adjust the timing, and make sure players have no access to milk.
Quite simple, really. Using the /gamemode command, have it like normal but simply attach parameters, like so:
/gamemode 1 @a[r=3,m=2]
Anyone within 3 blocks of the command blocks and in Adventure mode (gamemode 2) will be changed to Creative mode. Anyone NOT within this radius and in this mode will be unaffected.
Pretty simple. Again, as seems to be most cases, it's simply parameters after the player selector. Examples:
/execute @a[team=Heavy] ~ ~ ~ particle portal ~ ~1 ~ 0 0 0 0 100
/execute @a[team=Recon] ~ ~ ~ particle reddust ~ ~1 ~ 0 0 0 0 100
Such a mechanic would work like this:
(input received from a fast clock) /execute @p ~ ~ ~ testforblock ~ ~-1 ~ gold_block
(comparator from previous command block into this one) execute @p ~ ~ ~ setblock ~ ~-1 ~ cobblestone
However, if the player is sprints, this poses some problems. Perhaps disallow players to sprint - make non-pacman slower so he he has a chance to catch them though!
Happy Minecrafting!
-xFeare_
Now I feel like an idiot xD I was doing /execute ~ ~ ~ @p[team=teamA] /particle portal ~ ~ ~ 0 0 0 5 10 (I lag a lot and so I have to put some limits on the particles xD)
Pretty much what I did was type the command incorrectly and use the wrong selector xD
so
All my social media whachamacallsems!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Youtube: youtube.com/c/puppyspirit36teamender
Twitter: twitter.com/kittykqtender