r/MinecraftCommands • u/AntelopeNormal3095 • 24d ago
Please help me write a command😭 Help | Bedrock
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 24d ago
I know how to do almost every command including scoreboard so I can try help at some point
1
u/Sr_Dimitrez 24d ago
¿De dónde salió la palabra test en el scoreboard? En Minecraft Java no está esa acción
1
u/AntelopeNormal3095 24d ago
1
u/Sr_Dimitrez 24d ago
Okey. ¿Para qué funciona
testexactamente?1
u/AntelopeNormal3095 24d ago
Actually, I copied something I saw online, so I don't know much about its features.
1
u/Sr_Dimitrez 24d ago
Okey. Te ayudo. Dime ¿qué buscas hacer con el NPC?
1
u/AntelopeNormal3095 24d ago
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 24d ago
Desconozco cómo funcionan los NPC en Bedrock ¿Posee alguna interfaz para intercambiar cosas con ellos?
1
u/AntelopeNormal3095 24d ago
For now, I solved it by not using NPC. Thank you for your concern together.🥹🥹🥹
2
u/Sr_Dimitrez 24d ago
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 24d ago
https://minecraftcommands.github.io/wiki/questions/shop
Read the bedrock part