The Meaning of Life, the Universe, and Everything.
Join Date:
9/22/2013
Posts:
47
Member Details
Hi, I'm looking for a block to take the place as a person. I want the player to be invisible while a bock is on the ground in there place. As the player moves, so does the block. I have tried myself using the execute command as well as invisible armor stands and have been able to get it to work for the most part. The only thing I can't get to work is the block to move as the player does. It only works if the player is stationary. Any help would be appreciated, thanks.
The Meaning of Life, the Universe, and Everything.
Location:
Redstone
Join Date:
7/28/2016
Posts:
104
Minecraft:
LetzTaco
Member Details
Alright, here is everything I've done and it's worked perfectly so far. The only thing that most likely won't work is having it work for more than one player at a time. I've also made it so it only activates for players who have a stone block in their hand, if the player has a stone block , it'll show the player as being a stone block.
First, type this command: /scoreboard objectives add block dummy
Then, have a repeat command block that's always active connected to a chain command block that's always active.
Like this, (click here) just with only 1 chain command instead of 2.
Before typing anything into the chain command block, type this into the repeat command block: /scoreboard players set @a block 0
Then, type into the chain command block this: /scoreboard players set @a block 1 {Inventory:[{id:"minecraft:stone"}]}
After you have that all done, set another always active repeat command block, type this command into it:
/effect @a[score_block=1] invisibility 1 10 true
After that's done, setup another repeat command block that's always active with this command: /testfor @a[score_block_min=1
Have a redstone comparator connected to that command block, then after the comparator, set a repeater, then have the repeater connect to an impulse command block (regular command block) with this command: /execute @a[score_block_min=1] ~ ~ ~ summon ArmorStand ~ ~-1.4 ~ {Invisible:1,Tags:["block"],ArmorItems:[{},{},{},{id:minecraft:stone,Count:1b}]}
Now, have redstone wires continue after that, and lead to a torch, have the torch connect to another impulse command block with this command:
do /execute @a ~ ~ ~ /setblock "blockname" ~ ~ ~ and do /execute @a ~ ~ ~ /setblock (one for every block around the player) air 0 replace "blockname"
that will set a block of whatever you want to every player and remove the block trails behind them.. they would still count as blocks and rather hard to control..
or you can probably use /summon FallingSand to make it more as an entity.. that would actually work..
for sponges, you can use /execute detect command to remove invisibility, or probably use scoreboard to keep things more organized.. I'm not entirely great at commands but i hope these helped..
Hi, I'm looking for a block to take the place as a person. I want the player to be invisible while a bock is on the ground in there place. As the player moves, so does the block. I have tried myself using the execute command as well as invisible armor stands and have been able to get it to work for the most part. The only thing I can't get to work is the block to move as the player does. It only works if the player is stationary. Any help would be appreciated, thanks.
Alright, here is everything I've done and it's worked perfectly so far. The only thing that most likely won't work is having it work for more than one player at a time. I've also made it so it only activates for players who have a stone block in their hand, if the player has a stone block , it'll show the player as being a stone block.
First, type this command: /scoreboard objectives add block dummy
Then, have a repeat command block that's always active connected to a chain command block that's always active.
Like this, (click here) just with only 1 chain command instead of 2.
Before typing anything into the chain command block, type this into the repeat command block: /scoreboard players set @a block 0
Then, type into the chain command block this: /scoreboard players set @a block 1 {Inventory:[{id:"minecraft:stone"}]}
After you have that all done, set another always active repeat command block, type this command into it:
/effect @a[score_block=1] invisibility 1 10 true
After that's done, setup another repeat command block that's always active with this command: /testfor @a[score_block_min=1
Have a redstone comparator connected to that command block, then after the comparator, set a repeater, then have the repeater connect to an impulse command block (regular command block) with this command: /execute @a[score_block_min=1] ~ ~ ~ summon ArmorStand ~ ~-1.4 ~ {Invisible:1,Tags:["block"],ArmorItems:[{},{},{},{id:minecraft:stone,Count:1b}]}
Now, have redstone wires continue after that, and lead to a torch, have the torch connect to another impulse command block with this command:
/kill @e[tag=block]
An example would look like this: (click here)
Lastly, setup another always active repeat command block connected to an always active chain command block.
Have the repeat command block have this command: /tp @e[tag=block] @a[score_block_min=1]
Then, have the chain command block have this command: /tp @e[tag=block] ~ ~-1.4 ~
And that's all. If you have any questions feel free to reply to this post. hope I helped.
Mapper
My Youtube
Thanks for the help, I really appreciate it! I have a couple of questions.
The block the player "turns into" is not normal size. The block is smaller than a typical minecraft block. Is there anyway to fix this?
Also, how would I go about setting this up for multiple blocks (9ish)? Is it an easy fix or do I need a separate setup for each block?
Next, I would only like the player to turn into the block if their cursor is over the block on the hotbar/inventory. Easy fix?
Finally, would it be easy to make it so that if the player is over a certain block (i.e. sponge) the player is no longer invivisble?
Thanks for the help! I really do appreciate it!
One more question. I would like the function to work for more than one person if possible. Thanks!
do /execute @a ~ ~ ~ /setblock "blockname" ~ ~ ~ and do /execute @a ~ ~ ~ /setblock (one for every block around the player) air 0 replace "blockname"
that will set a block of whatever you want to every player and remove the block trails behind them.. they would still count as blocks and rather hard to control..
or you can probably use /summon FallingSand to make it more as an entity.. that would actually work..
for sponges, you can use /execute detect command to remove invisibility, or probably use scoreboard to keep things more organized.. I'm not entirely great at commands but i hope these helped..