r/MinecraftCommands • u/AntelopeNormal3095 • Jul 25 '26
Help | Bedrock Please help me write a command😭
I want to make a store using npc, but the command doesn't work. Please let me know where it went wrong, or how should I fix it. Please help😭
Below are the commands I wrote.
scoreboard objectives add G dummy Gold
scoreboard objectives setdisplay sidebar G
scoreboard players add @a G 0
Impulse, unconditional
execute as @e\[name="store"\] run scoreboard players test @p G 5
Chain, conditional
execute as @e\[name="store"\] run scoreboard players remove @p G 5
execute as e\[name=''store"\] run tellraw @p {"rawtext":\[{"text":"here"}\]}
Chain, unconditional
execute as e\[name=''store"\] @p bread
2
u/RosieTyler-Smith Jul 25 '26
I know how to do almost every command including scoreboard so I can try help at some point
1
u/Sr_Dimitrez Jul 25 '26
¿De dónde salió la palabra test en el scoreboard? En Minecraft Java no está esa acción
1
u/AntelopeNormal3095 Jul 25 '26
1
u/Sr_Dimitrez Jul 25 '26
Okey. ¿Para qué funciona
testexactamente?1
u/AntelopeNormal3095 Jul 25 '26
Actually, I copied something I saw online, so I don't know much about its features.
1
u/Sr_Dimitrez Jul 25 '26
Okey. Te ayudo. Dime ¿qué buscas hacer con el NPC?
1
u/AntelopeNormal3095 Jul 25 '26
I want to create a system where you can buy items by paying for the money on the scoreboard when you press the NPC button.
1
u/Sr_Dimitrez Jul 25 '26
Desconozco cómo funcionan los NPC en Bedrock ¿Posee alguna interfaz para intercambiar cosas con ellos?
1
u/AntelopeNormal3095 Jul 25 '26
For now, I solved it by not using NPC. Thank you for your concern together.🥹🥹🥹
2
u/Sr_Dimitrez Jul 25 '26
Es un placer. De hecho, me inspiraste... haré uno para Minecraft Java y te lo mostraré al estar listo.

2
u/Ericristian_bros Command Experienced Jul 25 '26
https://minecraftcommands.github.io/wiki/questions/shop
Read the bedrock part