2

Command trouble?

HockeyandMarvel101 9/14/19 8:18 pm
287
9/18/2019 9:03 pm
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.
Posted by
HockeyandMarvel101
Level 2 : Apprentice Miner
0

  Have something to say?

JoinSign in

5

tomatotownn
09/18/2019 6:13 am
Level 41 : Master Sailor
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!
1
HockeyandMarvel101
09/18/2019 9:03 pm
Level 2 : Apprentice Miner
Thank you, so much!
2
HoboMaggot
09/14/2019 9:06 pm
Level 56 : Grandmaster Blob
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
1
HockeyandMarvel101
09/15/2019 5:14 pm
Level 2 : Apprentice Miner
Oh thank you, but I have computer and have java. Do you know how to make it on that
1
HoboMaggot
09/16/2019 3:01 am
Level 56 : Grandmaster Blob
Have you studied command blocking yet?
Its good to know the basics first, especially /execute which is going to be used alot
1

Welcome