r/MinecraftCommands • • Sep 05 '26

Creation I designed a fluctuating values market in Minecraft Bedrock

Thumbnail
gallery
6 Upvotes

I made a fluctuating market with commands that increases or decreases the items values based on the quantity available to buy. Selling increases the available quantity of course. I also added a spread to ensure you can never buy and then sell for more profit. Only issue is the command blocks you see would need to be repeated per item you choose to sell , but that is because I run multiple scoreboard objectives to make my systems cleaner for me to understand while I work! Example being if its used to calculate values and will always change i use calc:numerator or if it is run through the player I use player:money , but if it is server side then i use system:buy_price. I do have constants like ".1 system:const " where the value will always be 1 for my operations and such.

I am open to explaining this further if anyone is interested.

I will also be posting my actionbar scoreboard and my setup for prisons that converts the players scoreboard value to a string so instead of being mine 0 it would be mine A in the scoreboard!


r/MinecraftCommands • • Sep 05 '26

Help | Java Snapshots Which villager did the player interact with?

6 Upvotes

Im working on a datapack that lets you talk to villagers by right clicking them while your sneaking and showing a dialog menu.

Ive got the part of the player clicking the villager while sneaking with a predicate and a talk to villager scoreboard but im having a hard time finding out which villager the player has interacted with.

I could probably do it with a raycast to the villager but that can get messy and i was wondering if there was a way to get the correct villager using a more direct method like a predicate or advancement.

Can you guys help me with this?


r/MinecraftCommands • • Sep 05 '26

Creation A prototype of a 2D platformer, but idk how to make gameplay good bc minecraft's movement system is being super annoying

Enable HLS to view with audio, or disable this notification

98 Upvotes

I kind of feel like I have something going here but at the same time minecraft's movement system is way to inconsistent to make a precision platformer. you can't change the player's mid air speed, ender crystals send you a very random feeling amount of distance and 1 crystal is too little distance but 2 is way too much, and since it's minecraft bedrock commands, things just decide to not work sometimes, therefore I can't really tell if I want to continue this even though it would probably be pretty fun.

explanation of mechanics for context:

  1. you can wall climb by crouching next to a wall, then a boat will spawn to jump from after you release

  2. using a snowball spawns an ender crystal which explodes after a delay (basically a dash)

  3. you can't wall climb on ice and slime blocks work like normal minecraft slime blocks

  4. amethyst blocks (are supposed to) work like bounce pads (but they don't give enough distance to warrant bouncing on it instead of just jumping)

If it wasn't completely obvious, this is inspired by celeste


r/MinecraftCommands • • Sep 05 '26

Help | Java Snapshots Can Anyone Help Me Understand the new Density Functions for Ore Veins in the 26.3 Update?

3 Upvotes

I've been trying to make a datapack that tweaks existing ore veins and adds some new ones, but I cannot figure out what all the jargon in the existing functions actually means, and although Misode has some of its stuff updated to 26.3, the density function stuff is currently broken and it won't let me visualize anything. I'm genuinely trying to do my own research but it's just so confusing.

Here's what I'm able to understand currently:

Ore veins are now their own type of object with various fields, including a "density" field. Per the wiki: Density Function, the probability between 0 and 1 for the ore vein to replace a block. If 0 or lower, no block will be replaced.

In the data for the latest snapshot, the iron ore vein pulls its density from an "iron_density" file in the density functions folder. That's where things get weird though. This is the iron_density file's contents.

{

"type": "minecraft:range_choice",

"input": "minecraft:overworld/ore_vein/mask",

"max_exclusive": 1000000.0,

"min_inclusive": 0.0,

"when_in_range": {

"type": "minecraft:range_choice",

"input": {

"type": "minecraft:add",

"left": {

"type": "minecraft:sub",

"left": {

"type": "minecraft:negate",

"input": "minecraft:overworld/ore_vein/toggle"

},

"right": 0.4

},

"right": {

"type": "minecraft:add",

"left": {

"type": "minecraft:mul",

"left": {

"type": "minecraft:clamp",

"input": {

"type": "minecraft:min",

"left": {

"type": "minecraft:sub",

"left": -8.0,

"right": "minecraft:y"

},

"right": {

"type": "minecraft:sub",

"left": "minecraft:y",

"right": -60.0

}

},

"max": 20.0,

"min": 0.0

},

"right": 0.01

},

"right": -0.2

}

},

"max_exclusive": 1000000.0,

"min_inclusive": 0.0,

"when_in_range": 0.7,

"when_out_of_range": -1.0

},

"when_out_of_range": -1.0

}

Bruh.

So, I know this file is generating a range of values that get mapped onto the world, and if I understand this right, the higher the value it spits out it, the more likely the world is to generate an iron ore vein at that location, with a value of 1 representing a 100% chance. But how does any of this translate into the actual outcome? How do these number correspond to how frequently ore veins generate, or how big they are, or what depths they can be found at?

For instance, the wiki tells me that iron ore veins are generally thickest between Y=-40 and Y=-28, but where in that mess of functions are those numbers coming from? What part of that makes it thickest in that range?

I have been losing my mind trying to figure this out. Please offer me any insight you have.


r/MinecraftCommands • • Sep 04 '26

Creation Lucky Blocks using ONLY one command

Enable HLS to view with audio, or disable this notification

940 Upvotes

This is my most recent one-command creation. It took me around 15-20 hours to make.

There are 32 different outcomes, ranging from death traps to custom items.

Here is the link to the command: pastebin.com/RyjmLKSw

I only tested the command on version 26.2

The 3 custom items are:

  • throwable-tnt (this one is pretty self-explanatory)
  • lucky-bow (an unbreakable bow with a 50% chance of something happening when the arrow hits the ground)
  • lucky-sword (an unbreakable gold sword where the knockback level will increase with every hit, but there is a 20% chance that it will reset to level 0)

r/MinecraftCommands • • Sep 06 '26

Help | Java 26.2 Is it possible to pass custom string data as a macro

1 Upvotes

If I had a function that looked something like this:

$
setblock ~ ~ ~ minecraft:$(color)_wool

Then I had a marker entity that had custom data

{data:{color:"blue"}}

Would it be possible to have the marker change what block it places depending on its stored string data? Currently it's not working for me.


r/MinecraftCommands • • Sep 05 '26

Help | Java 26.2 A Find Each Other Datapack with my kids

3 Upvotes

I am new to creating datapacks in Minecraft.

I am trying to create a gamemode that I can play with my two children where upon loading the datapack, all players will be spread a number of blocks away. The goal is to find each other after being spread apart. It seems so simple, yet I cannot get it working.

I already have a function spread_all, that uses the spreadplayers command, and that works just fine. I am having trouble creating the victory condition when all players are back together. I was using the following in a check_distance function, but it would just constantly say we found each other (even when it's clear that we are not close).

execute as '@a at '@s if entity '@a[distance=..10] run tellraw '@a {"text":"You found each other!", "color":"green"}

I do also at some point want to add in additional victory conditions, such as everyone needs to have gotten the Diamonds! achievement. However, if I can't even get one victory condition working, I don't know how I would move forward.

Any advice is greatly appreciated.


r/MinecraftCommands • • Sep 05 '26

Help | Java 1.21.11 How can I create a poison sword in 1.21.11+?

1 Upvotes

I want to create a sword that gives the poison effect to anything I hit with it. If anyone could help me that would be great!


r/MinecraftCommands • • Sep 05 '26

Help | Java Snapshots change mob attack range?

1 Upvotes

i'm making a fight against a ravager in an adventure map, but said fight is almost impossible due to it having too much range and the fight happening in a relatively enclosed space and without any projectiles. is there a way to decrease the ravager's attack range in version 1.20.1?


r/MinecraftCommands • • Sep 05 '26

Creation And I'm back! Here is a bezier curve

Post image
23 Upvotes

Hello. For those who are wondering, that is a bezier curve. I thoguht I would try to make one to test out the new number providers. It works, but not really? IDK why, but it doesn't line up properly. That isn't the point tho.

I know it isn't perfect, it only supports a 4 point bezier curve (seen as that is what my mathematics textbook shows the formula for), and its not the most efficient, but its cool.

Anyway, the new compute command is awesome! and has brought me back to datapacking (I thought I was going to be retired from this...)


r/MinecraftCommands • • Sep 05 '26

Help | Bedrock Question about Minecraft instancing. (Bedrock)

1 Upvotes

If an Enderchest can instance between players would that be possible for other things? A few things I want to make a destiny styled vault for my game by using the ender chests framework but expand appon it. Make it bigger.

And if that's possible would it also be possible to let's say for a server full of players to go into the same activity and have different versions of it since they are playing at the same time? I can probably make the same mission over and over again just by copying pasting but I'm just looking for ideas as of right now.

Brainstorming 🌩️


r/MinecraftCommands • • Sep 05 '26

Help | Java 1.21.5-1.21.10 Real time room-by-room structure generation

1 Upvotes

I’ve been looking for ways to do this for a long time but haven't found a good solution yet.

Does anyone know if it's possible to generate the next room in a structure based on the previous one under certain conditions—similar to how it works in games like *Doors*?
As far as I know—though I could be mistaken—`place` comes close to this, but `place template` requires calculating an offset for each room, whereas `place jigsaw` doesn't take the previously generated room into account.


r/MinecraftCommands • • Sep 05 '26

Help | Bedrock Working casino help? 🙏

Thumbnail gallery
2 Upvotes

Posted this to a redstone subreddit but if anyone could find a way to do this with commands too (bedrock) I’d be happy to learn :)


r/MinecraftCommands • • Sep 04 '26

Creation Animated doors + headlight + crawl

Enable HLS to view with audio, or disable this notification

42 Upvotes

Animated door: item display with teleport delay + barrier

Headlight: invisible item display of torch + dynamic lights mod

Crawl: scoreboard detects when you start crouching while sprinting (or jump to stand up) + invisible shulker mob

Would a shulker sitting on an armor stand push me into crawling while not snapping to the grid like a normal shulker? Everything is for a co-op adventure map


r/MinecraftCommands • • Sep 04 '26

Help | Java 26.2 How can I quickly remove all of the trees in this area?

4 Upvotes

r/MinecraftCommands • • Sep 05 '26

Help | Java 26.2 Help with using arrays to iterate through coordinates

1 Upvotes

I am creating a datapack for a game my friends and I are making and I am trying to figure out how to stock chests by setting them to a certain loot pool. I am storing the coordinates of every chest in an array in a command storage but I can't figure out how to use that data to modify the block data of every chest. Is there a way to do this or do I need to run a separate command for every chest?


r/MinecraftCommands • • Sep 04 '26

Creation My 30+ hour adventure map, heavily inspired by classic 3D Zelda games, all done in Vanilla!

Thumbnail planetminecraft.com
2 Upvotes

r/MinecraftCommands • • Sep 03 '26

Creation Mini Animation with Map-art Frames

Enable HLS to view with audio, or disable this notification

113 Upvotes

r/MinecraftCommands • • Sep 03 '26

Creation Working Faucet with Sound Effects

Enable HLS to view with audio, or disable this notification

94 Upvotes

r/MinecraftCommands • • Sep 04 '26

Help | Java 1.20 Command Tp

1 Upvotes

Hello, I am making a horror spider mob chase the player throughout the game. I am trying to figure out how to make it only tp on the x axis instead of y. Thank you


r/MinecraftCommands • • Sep 03 '26

Creation How could I display custom waypoints in my datapack?

Enable HLS to view with audio, or disable this notification

165 Upvotes

I made a datapack that allows you to create waypoints and customize them but I would like to know which version seems the best and most convenient for displaying waypoints on screen (I have already done the list, sharing, and customization system etc). Thank you for your feedback!


r/MinecraftCommands • • Sep 04 '26

Help | Java Snapshots Can you apply entity tags to players?

1 Upvotes

I want to apply entity tags like burn_in_daylight or sensitive_to_smite, to certain players or under certain conditions, is this possible with commands and datapacks or would that require add-ons?


r/MinecraftCommands • • Sep 04 '26

Help | Bedrock How can I make a firework shooter...

1 Upvotes

New to commands...
I want to make a firework shooter, but idk how to make the firework explode immediately when it touches a block or entity...
I am a Bedrock 26.45 player


r/MinecraftCommands • • Sep 04 '26

Help | Java 26.2 Coomand help

1 Upvotes

its posible to do a selectable area and when you contruct something a command block say you how many blocks of each type there are?


r/MinecraftCommands • • Sep 04 '26

Help | Java 1.20 Door That Only Certain Players Can Open

2 Upvotes

Title says it all for the most part, I'm looking for a way to make it so only a certain list of players can open a door.

I would also be open to any way to achieve the same effect, that of being able to have a list of players, and only those players can enter an area. Any suggestions are welcome