Hello! So I'm in the process of making a PenPen TriIcelon map, and i'm working on making bumpers. I didn't think of anything better, but I had two commands that I thought would work to make it seem like a bumper.
/execute if entity @p at @s if block ~ ~-1 ~ minecraft:magenta_glazed_terracotta run effect give @p minecraft:levitation 1 4 true
/execute if entity @p at @s if block ~ ~-1 ~ minecraft:magenta_glazed_terracotta run effect give @p minecraft:speed 1 4 true
I was hoping this would make the player gain levitation and speed for 1 second after running over magenta glazed terracotta, because I had no other ideas on how to make a bumper similar to the ones in the game. However, once I put the first command into a repeat command block that was always active, it won't work. The command works fine if I use it while I'm standing on the block, but nothing else works. Does anyone have any ideas on a better bumper system, or how to make this work?
/execute if block ~ ~-1 ~ minecraft:magenta_glazed_terracotta run effect give @p minecraft:speed 1 4 true
this command ALSO works when the player uses in in the chat, but for some reason, will NOT work in command blocks. I'm looking for the command to also impact every player if they hit a bumper, but if someone has a solution to just getting it to work for @p, by all means, I'll take it.
EDIT:
/execute if entity @s if block ~ ~-1 ~ minecraft:magenta_glazed_terracotta run effect give @p minecraft:levitation 1 4 true
This ALSO works but still won't work in command blocks. GAH.
YES! This worked absolutely perfectly. I thought @s would make it so that it would only affect the player who started the command, this makes much more sense. I got it to work using /execute at @p if block ~ ~-1 ~ minecraft:magenta_glazed_terracotta run effect give @p minecraft:levitation 1 4 true
Do you know if there's any way to improve upon this command by making it only select the player that hit the bumper?
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hello! So I'm in the process of making a PenPen TriIcelon map, and i'm working on making bumpers. I didn't think of anything better, but I had two commands that I thought would work to make it seem like a bumper.
/execute if entity @p at @s if block ~ ~-1 ~ minecraft:magenta_glazed_terracotta run effect give @p minecraft:levitation 1 4 true
/execute if entity @p at @s if block ~ ~-1 ~ minecraft:magenta_glazed_terracotta run effect give @p minecraft:speed 1 4 true
I was hoping this would make the player gain levitation and speed for 1 second after running over magenta glazed terracotta, because I had no other ideas on how to make a bumper similar to the ones in the game. However, once I put the first command into a repeat command block that was always active, it won't work. The command works fine if I use it while I'm standing on the block, but nothing else works. Does anyone have any ideas on a better bumper system, or how to make this work?
I've even tried doing this as a replacement:
/execute if block ~ ~-1 ~ minecraft:magenta_glazed_terracotta run effect give @p minecraft:speed 1 4 true
this command ALSO works when the player uses in in the chat, but for some reason, will NOT work in command blocks. I'm looking for the command to also impact every player if they hit a bumper, but if someone has a solution to just getting it to work for @p, by all means, I'll take it.
EDIT:
/execute if entity @s if block ~ ~-1 ~ minecraft:magenta_glazed_terracotta run effect give @p minecraft:levitation 1 4 true
This ALSO works but still won't work in command blocks. GAH.
YES! This worked absolutely perfectly. I thought @s would make it so that it would only affect the player who started the command, this makes much more sense. I got it to work using /execute at @p if block ~ ~-1 ~ minecraft:magenta_glazed_terracotta run effect give @p minecraft:levitation 1 4 true
Do you know if there's any way to improve upon this command by making it only select the player that hit the bumper?