2
Command trouble?
hi making Mario in Minecraft PE and downloaded a lucky block addon. In Mario when you hit your head on lucky blocks it gives you a coin. Anyway to make something similar to that.
Create an account or sign in to comment.
5
1
you could try the command:
/execute at @a if block ~ ~1.8 ~ minecraft:bricks run give @a minecraft:gold_ingot{display:{Name:"[{\"text\":\"Gold Coin!\"}]"}}
Apply that into a repeating command block that "needs redstone" and have it powered for however long you want the mechanic to work.
alternatively you could replace the command "give @a minecraft:gold_ingot{display:{Name:"[{\"text\":\"Gold Coin!\"}]"}}" with a scoreboard command addition to allow for another command block to target the exact person that just hit a block (just to ensure that whatever ur doing will be multiplayer compatible)
hope that helps!
/execute at @a if block ~ ~1.8 ~ minecraft:bricks run give @a minecraft:gold_ingot{display:{Name:"[{\"text\":\"Gold Coin!\"}]"}}
Apply that into a repeating command block that "needs redstone" and have it powered for however long you want the mechanic to work.
alternatively you could replace the command "give @a minecraft:gold_ingot{display:{Name:"[{\"text\":\"Gold Coin!\"}]"}}" with a scoreboard command addition to allow for another command block to target the exact person that just hit a block (just to ensure that whatever ur doing will be multiplayer compatible)
hope that helps!
2
Thank you, so much!
1
You cant make good stuff that requires command blocking without plugins or tons of customised addons in Bedrock.
The command system is better in Java
The command system is better in Java
1
Oh thank you, but I have computer and have java. Do you know how to make it on that
1
Have you studied command blocking yet?
Its good to know the basics first, especially /execute which is going to be used alot
Its good to know the basics first, especially /execute which is going to be used alot