r/MinecraftCommands • • 20h ago

Creation I made an economy system for singleplayer Minecraft: summon a chest shop anywhere and earn coins by playing (pure data pack, no mods)

7 Upvotes

I wanted a real economy in my singleplayer worlds — a shop to buy and sell items, and coins for just playing — without installing mods. Nothing like it existed as a data pack, so I built one.

Vanilla Economy (Java 26.3):

  • /trigger shop summons a 6-row shop chest in front of you — 1,535 items in 10 categories
  • you earn coins for mining, digging, chopping, farming, fishing and fighting
  • prices are calculated from the real crafting recipes, so there's no craft-and-sell money loop
  • selling never touches your hotbar, armour or enchanted items
  • Nether/End/boss items unlock as you progress

No mods, no resource pack, works without cheats.

Download: https://modrinth.com/datapack/vanilla-economy · Source: https://github.com/vanilla-economy/vanilla-economy

It's my first public pack, so feedback and bug reports are very welcome!


r/MinecraftCommands • • 17h ago

Help | Java 26.3 how to modify a sulfur cube to have wood/bouncy physics while having a beacon as physical block?

3 Upvotes

doing an "data merge entity @ selector {equipment:{body:{id:"minecraft:beacon"}}}" changes it visually to a beacon, but changes the physics from bouncy to heavy, making it no longer work for a minigame where the goal is to knock sulfur cubes into buckets, the weight prevents it from properly being scored


r/MinecraftCommands • • 23h ago

Help | Java 1.21.11 Changing a scoreboard when an entity is near, and again when they're far away.

2 Upvotes

Heya, been trying to do this with drowneds to change day to night temporarily to make them aggro for an indoors adventure map i'm doing.

What i've figured out now is:

execute unless score %DrownedAggro enemyVariables matches 1 at @ a if entity @ n[type=drowned, distance=0..5, limit=1] run scoreboard players set %DrownedAggro enemyVariables 1

execute unless score %DrownedAggro enemyVariables matches 0 at @ a if entity @ n[type=drowned, distance=5..100, limit=1] run scoreboard players set %DrownedAggro enemyVariables 0

The problem with this is that when there's more than one drowneds spawned on different positions, it'll start constantly going changing from 0 to 1 and stuff, haven't found a way to fix this. Any help?


r/MinecraftCommands • • 1h ago

Help | Java 26.2 Is it possible to create a dynamic player list in a dialog using only command blocks? [1.21.11]

1 Upvotes

I'm trying to create a simple ban menu in my vanilla Minecraft world that opens when I run /trigger banmenu.

The idea is to automatically display a list of all currently online players, with a "Ban" button next to each player's name. Banning a player would simply teleport them to a specific location rather than actually using the /ban command.

The teleportation part isn't a problem. What I can't figure out is how to dynamically retrieve the list of online players and generate dialog buttons for each of them.

I want the player list to update automatically whenever the menu is opened, without having to manually specify player names.

Is this possible using vanilla commands or a datapack, or is it a limitation of the dialog system?

I'm open to any vanilla workarounds.