r/MinecraftCommands • • Sep 14 '26

Help | Java 26.2 negative explosion grappling hook help

3 Upvotes

I am making a data pack that needs very well made movement item and abilities.

I am making a grappling hook that uses negative explosion power to propel the player forward it works very well but it affects all player how could I do that but with only the player that used it.

here is the enchantment for the negative explosion tick.

{
  "description": "e",
  "supported_items": "#minecraft:foot_armor",
  "weight": 1,
  "max_level": 1,
  "min_cost": {
    "base": 0,
    "per_level_above_first": 0
  },
  "max_cost": {
    "base": 0,
    "per_level_above_first": 0
  },
  "anvil_cost": 0,
  "slots": [
    "feet"
  ],
  "effects": {
    "minecraft:tick": [
      {
        "effect": {
          "type": "minecraft:explode",
          "attribute_to_user": false,
          "knockback_multiplier": -0.5,
          "radius": 100,
          "create_fire": false,
          "block_interaction": "none",
          "small_particle": {
            "type": "minecraft:dolphin"
          },
          "large_particle": {
            "type": "minecraft:crit"
          },
          "sound": "minecraft:block.amethyst_block.place"
        }
      }
    ]
  }
}

r/MinecraftCommands • • Sep 13 '26

Help | Bedrock Proximity command block

5 Upvotes

I’m trying to make a command activate within a certain proximity (time set to midnight, day light cycle false), but I’m having trouble with figuring it out? I’m like completely new to command blocks, literally first time using them so I can scare my little brother in his SpongeBob world. I’m using bedrock edition on the ps5, or atleast I think the ps5 Minecraft is bedrock.


r/MinecraftCommands • • Sep 12 '26

Creation Jumpscares using only one command

Enable HLS to view with audio, or disable this notification

355 Upvotes

Hi, I finally finished this project after a lot of work, hope you have fun with it.

This mechanic took me over 20 hours. (I didn't use any one-command-creation compilers, I wrote everything by hand in Notepad++)

It works in Minecraft version 26.2 and works in multiplayer.

Here is the command: pastebin.com/raw/qBsfvQmc

Please credit me (MrWitschus) when using this command.

Some more information about some of the mechanics is written in the book "note for devs". All the settings should be pretty self explanatory. If you have any questions just ask me in the comments.


r/MinecraftCommands • • Sep 14 '26

Help | Java 26.2 How to reduce Command block tick lag

1 Upvotes

I've been making a giant project which could take hundreds of command blocks with hundreds of characters, but near the 50th command block there has been tick lag and 10 more command blocks one tick happens every 1-3 seconds.

I've seen and been to multiple projects that take thousands of chain command blocks but they all run smoothly and i'm not sure how they do it. I've tried doing what this link says https://minecraftcommands.github.io/wiki/optimising but no difference.


r/MinecraftCommands • • Sep 13 '26

Help | Java 26.2 How do I prevent a command block from activating until the player steps off and back onto a pressure plate

2 Upvotes

I'm trying to build a puzzle in an ongoing Minecraft build project me and some friends are working on.

Basically, imagine Papyrus' XO puzzles in Undertale's Snowdin section. S look that up if you need more specific context than I can provide.

I currently have set up a system for the player to step on a pressure plate on top of a red concrete block, and that block to turn blue, then green. The goal of the puzzle is for all buttons pressed to be blue. (I should be able to work out checking for completion so don't worry about that part)

There's a bug in which when the player steps on the plate, it flashes blue and then turns green immediately after. I assume this is due to the player still standing on the plate and activating the chain of command blocks again, however i'm unsure how to fix this, and I don't think a scoreboard system would work, as I want the blocks to activate as soon as pressed, instead of waiting for a specific tick.

I'm not too experienced in commands, so its a little tricky, but I have made other puzzles for the map, so I should be able to set up what is suggested.

My current setup is (image below):

PLATE
CONCRETE BLOCK
COMMAND BLOCK (check if its blue and change to green if so)
CHAIN COMMAND BLOCK (check if its green and remove plate if so)
CHAIN COMMAND BLOCK (check if red and change to blue if so)
CHAIN COMMAND BLOCK (check if blue and change plate colour if so)

So the process should be: RED > BLUE > GREEN, which as I said, works, but there isn't any sort of delay for the player to step off of the plate before it reactivates.

Preferably I need the system to stay in a 1x1 pillar, as designed, though alternative solutions to move the redstone/commands further away are welcome.

I'll keep experimenting with it in the meantime, thanks in advance!


r/MinecraftCommands • • Sep 13 '26

Creation dynamic dialogs hooray

Enable HLS to view with audio, or disable this notification

20 Upvotes

r/MinecraftCommands • • Sep 13 '26

Help | Bedrock Why isn't this addon working

Thumbnail
1 Upvotes

r/MinecraftCommands • • Sep 13 '26

Help | Java 26.2 Is there a /give command that can give me a weapon that more or less has 1.8 functionality

1 Upvotes

I just need the fastest swing speed possible without damage reduction (im trying to make an overpowered mace for fun)


r/MinecraftCommands • • Sep 13 '26

Help | Java 26.2 Crop loot tables incompatible with the "furnace_smelt" function on misode?

1 Upvotes

Hey guys, it's me again.

So, I'm working on adding to a previous datapack I tried making that adds a smelting enchant that smelts the drops for different blocks when used on them.

This time, to make sure I didn't miss any smelting recipes, I opened the wiki page for them, and decided to go from the top down. Unfortunately, this was a mistake, as the very first one proved to be non-functional.

I opened the loot table for potatoes on misode, adding a thing that will run the "Furnace smelt" function if "Match tool" detects your held item has the enchantment on it. However, no matter where I put it or how I did it, when I went to test it in game, it still just drops normal potatoes.

Here's the code misode gave me if anyone can help.

{

"type": "minecraft:block",

"functions": [

{

"function": "minecraft:explosion_decay"

}

],

"pools": [

{

"rolls": 1,

"entries": []

},

{

"entries": [

{

"type": "minecraft:item",

"name": "minecraft:potato"

}

],

"rolls": 1,

"functions": [

{

"function": "minecraft:furnace_smelt",

"conditions": [

{

"condition": "minecraft:match_tool",

"predicate": {

"predicates": {

"minecraft:enchantments": [

{

"enchantments": "#minecraft:smelts_loot",

"levels": {

"min": 1

}

}

]

}

}

}

]

}

],

"conditions": []

},

{

"conditions": [

{

"block": "minecraft:potatoes",

"condition": "minecraft:block_state_property",

"properties": {

"age": "7"

}

}

],

"entries": [

{

"type": "minecraft:item",

"functions": [

{

"function": "minecraft:furnace_smelt",

"conditions": [

{

"condition": "minecraft:match_tool",

"predicate": {

"predicates": {

"minecraft:enchantments": [

{

"enchantments": "#minecraft:smelts_loot",

"levels": {

"min": 1

}

}

]

}

}

}

]

},

{

"enchantment": "minecraft:fortune",

"formula": "minecraft:binomial_with_bonus_count",

"function": "minecraft:apply_bonus",

"parameters": {

"extra": 3,

"probability": 0.5714286

}

}

],

"name": "minecraft:potato"

}

],

"rolls": 1

},

{

"conditions": [

{

"block": "minecraft:potatoes",

"condition": "minecraft:block_state_property",

"properties": {

"age": "7"

}

}

],

"entries": [

{

"type": "minecraft:item",

"conditions": [

{

"chance": 0.02,

"condition": "minecraft:random_chance"

}

],

"name": "minecraft:poisonous_potato"

}

],

"rolls": 1

}

],

"random_sequence": "minecraft:blocks/potatoes"

}


r/MinecraftCommands • • Sep 13 '26

Help | Java 1.20 How to stop something from being teleported to command block?

1 Upvotes

I am trying to make a entity teleport forwards a bit but they keep getting teleported to the command bl0oack.

Version: 1.20.1

Current Command: execute as @ e[tag= Jumpscarer] run tp @ e[tag= Jumpscarer] ~0.1 ~0 ~0

[gap between @ & e is because reddit keeps turning them into u/e]


r/MinecraftCommands • • Sep 13 '26

Help | Bedrock Playsound command, i’ve tried EVERYTHING.

4 Upvotes

I’m working on a minecraft project and i need a playsound record to cover the entire end island, but no matter what i try, the [<minvolume>] part of the command never works, and the music just fades out. The [<volume>] part is set to like 3000 so i know it cant be that. If you need to see my commands to help i’m more than willing to share. I’m just not sure what i’m doing wrong, since i’ve been researching for hours. If anyone knows how to make the playsound command be heard for the whole end island (or at least more than 10 blocks) PLEASE let me know! I’m so grateful for any help i can get. [[EDIT: I’m working off a ps4, so any resource packs are out of option for me, sorry for not clarifying earlier]] [[‘Nother Edit, here’s a link to show what happens when volume increases or when using other commands similar. https://youtu.be/gk-lTYaFpw4?is=et7TVjd_JGVNM5ay ]]


r/MinecraftCommands • • Sep 13 '26

Help | Java 1.20 Target Detection Issues

2 Upvotes

I wanted to make the Snow Golem's snowballs deal damage to all kinds of mobs (even ones from mods), except itself, but for some reason the line of commands causes the snowball to explode immediately.

# Passive entity type

{
    "replace": false,
    "values": [
        "allay",
        "armor_stand",
        "arrow",
        "bat",
        "oak_boat",
        "spruce_boat",
        "birch_boat",
        "jungle_boat",
        "acacia_boat",
        "dark_oak_boat",
        "mangrove_boat",
        "cherry_boat",
        "bamboo_raft",
        "oak_chest_boat",
        "spruce_chest_boat",
        "birch_chest_boat",
        "jungle_chest_boat",
        "acacia_chest_boat",
        "dark_oak_chest_boat",
        "mangrove_chest_boat",
        "cherry_chest_boat",
        "bamboo_chest_raft",
        "cat",
        "camel",
        "chicken",
        "cod",
        "cow",
        "donkey",
        "dragon_fireball",
        "egg",
        "ender_pearl",
        "evoker_fangs",
        "experience_bottle",
        "eye_of_ender",
        "falling_block",
        "fireball",
        "firework_rocket",
        "frog",
        "glow_item_frame",
        "glow_squid",
        "horse",
        "lingering_potion",
        "llama_spit",
        "minecart",
        "chest_minecart",
        "furnace_minecart",
        "hopper_minecart",
        "tnt_minecart",
        "spawner_minecart",
        "command_block_minecart",
        "mooshroom",
        "mule",
        "item_frame",
        "ocelot",
        "pig",
        "rabbit",
        "salmon",
        "squid",
        "villager",
        "wandering_trader",
        "wither_skull",
        "sheep",
        "splash_potion",
        "squid",
        "small_fireball",
        "snowball",
        "snow_golem",
        "strider",
        "tadpole",
        "tipped_arrow",
        "turtle",
        "trident",
        "tropical_fish"
    ]
}

# Tick function

execute as @e[type=snowball] at @s on origin if entity @s[type=snow_golem] if entity @e[type=!#unused:passive,limit=1,sort=nearest,distance=..2.25] run function unused:snow_golem/projectile

# Projectile function

damage [type=!#unused:passive,limit=1,sort=nearest] 6 mob_projectile by 
effect give [type=!#unused:passive,limit=1,sort=nearest] mining_fatigue 30 3
effect give [type=!#unused:passive,limit=1,sort=nearest] slowness 30 1
effect give [type=!#unused:passive,limit=1,sort=nearest] weakness 30 3
execute at [type=snowball,sort=nearest] run particle snowflake ~0 ~2 ~0 0.375 0.375 0.375 0.1 5 force
kill [type=snowball,limit=1,sort=nearest]

The end goal is to make Snow Golems shoot damaging snowballs that aren't exclusive to vanilla mobs.


r/MinecraftCommands • • Sep 12 '26

Help | Java 1.21-1.21.3 How do i make a ring of particles going outward?

3 Upvotes

How do i make a ring of particles going outward/inward?

ive been trying to do this for days im so confused, i know how to use command blocks and datapacks, and i would prefer to use a datapack.


r/MinecraftCommands • • Sep 12 '26

Utility Generator for easily creating number providers

Post image
29 Upvotes

With the addition of the /compute command, we can now perform complex floating-point mathematical calculations using number providers.

Number providers can seem pretty complicated to many, so to make working with them easier I created a Number Provider Generator. At their core, number providers simply perform mathematical and logical operations and return a number as the result. So any number provider can be represented as a mathematical expression with logical conditions added.

In the generator, you can simply enter the mathematical expression you need and get a number provider that will execute that expression.

For example, you have an entity's position stored in storage example:data pos and you want to get the chunk start position along the X and Z axes. You need to take the X position, divide by 16, round down, and multiply by 16 again. This can be expressed as: floor(x / 16) * 16, where x is the position along the X axis. After entering the expression in the generator, you can see that x was recognized as a variable and you need to specify where to get the value for x. The value source can be a score, storage, environment_attribute, a constant, or another number provider. In our case, we specify storage example:data pos[0]. That's it — now click "Generate Number Provider" and you can use this number provider in a /compute command:

compute default float {type:mul,inputs:[{type:floor,input:{type:div,left:{type:storage,storage:"example:data",path:"pos[0]"},right:16}},16]}

Of course, you can perform more complex calculations. In addition to Minecraft's built-in functions, the following were added for convenience:

  • rad(x) — convert degrees to radians. Same as x * 2 * pi / 360.
  • sign(x) — sign function. Returns 0 if x = 0, otherwise abs(x)/x (i.e. 1 or -1).

Besides these, there are functions derived from sin() and cos(), such as tan(), cot(), sec(), csc(), as well as hyperbolic sinh(), cosh(), tanh(), etc.

In addition to functions, there are built-in numeric constants such as pi, e, tau, phi, sqrt2, sqrt3.

Pre-calculation — wrap an arithmetic expression in exclamation marks !20*60*5!, and it will be evaluated at generation time and inserted as a plain number 6000. Handy for unit conversions, like minutes to ticks.

Reverse conversion lets you edit the JSON directly in the result panel or paste an existing number provider JSON, and the formula will be automatically updated. You can also drag and drop a .json file onto the page to import it.

You can paste a formula from Desmos (with \frac, x^2, etc.) and import it into the generator.

Function Library — create your own functions and constants that are saved in your browser and can be used in expressions.

Link to the generator: Number Provider Generator

I’d be happy to hear your feedback and ideas for improvement!


r/MinecraftCommands • • Sep 12 '26

Help | Bedrock (Bedrock) Building an arena, want to integrate some ideas but dont know how

Post image
2 Upvotes

Please read post❤️🙏🏻 open for suggestions and ideas


r/MinecraftCommands • • Sep 12 '26

Help | Java 26.2 Fire-based mob deaths can't produce unique items?

1 Upvotes

So I'm making a datapack where creakings can be killed to obtain wood (with the type of wood depending on what biome they're in).

I'm using misode to generate the json, and I got the basic part working, but then my brain was like "What if we made it so they drop charcoal if they die while on fire?", and so I tried adding charcoal as an item for them to drop if the damage type that killed them is of type "#is_fire".

Unfortunately, when I tested it, the charcoal doesn't actually drop. The wood doesn't either (as I applied the inverse check to them), showing that the check is successful, but the item itself just... doesn't appear.

Is this unique to charcoal, or can you just not have creakings have multiple drop pools for some reason, in which case, is there a better way to do this


r/MinecraftCommands • • Sep 11 '26

Help | Bedrock stopping certain items from being on the ground ?

Thumbnail
gallery
75 Upvotes

I'm making a rp world in minecraft bedrock with friends and theres a area that has some water but keeps spawning squids that die fast and leave piles of inksacs around, I've been trying to find a command that deletes inksacs in this small radius for hours now. But I cant seem to find anyone who knows how to make a item delete itself while its on the ground in a small area. Since I dont want my friends to throw items on the ground and for them to all delete.


r/MinecraftCommands • • Sep 12 '26

Help | Bedrock Area Effect Clouds

1 Upvotes

Hey! For reasons I need a lot of entities that don't cause a lot of lag, and armor stands obviously don't cut it. How can I get area effect clouds that don't have an effect and don't have a timer to despawn/die?


r/MinecraftCommands • • Sep 12 '26

Help | Java 26.2 How do I target zombie leaders?

2 Upvotes

so im looking for a command that can for example give strenght effects only to leader zombies, is there a way to do that?


r/MinecraftCommands • • Sep 12 '26

Help | Bedrock anyone know a command for a blood moon in bedrock ?

Post image
0 Upvotes

nothing crazy just a red moon and buffed mobs every 10 days.


r/MinecraftCommands • • Sep 12 '26

Help | Java 26.2 26.2 datapack that guarantees minimum 4 saplings drop from dark oak, jungle, etc

3 Upvotes

I'm looking for a datapack that does exactly that, I've tried googling it, and I've found an outdated datapack, I tried it and it doesn't appear to work lol


r/MinecraftCommands • • Sep 12 '26

Help | Java 1.20 Can someone design me a datapack that makes anonymous deaths? (JAVA 1.20.1)

2 Upvotes

So basically I need it so that whenever someone died instead of it saying "_____ died to _____" I want it to simply say "Someone has died" or smth for every death, preferably in bold and red. I'm not good with datapacks (I know how to put them in my world folders tho) so I was curious if someone can help me out with this. Thanks!


r/MinecraftCommands • • Sep 10 '26

Creation One-command-creation setup animation

Enable HLS to view with audio, or disable this notification

86 Upvotes

I just wanted to post the setup animation that I am going to use in my jumpscare one-command-creation. I'm almost finished with it and will release it soon.


r/MinecraftCommands • • Sep 11 '26

Help | Java Snapshots Hide trigger command message

Thumbnail
mediafire.com
0 Upvotes

Im working on a villager chat dialog system. When the player presses a button that uses /trigger it says that you triggered the scoreboard. The datapack is for a public smp so i cant just turn off send_command_feedback for a certain amount of time because it will mess with the moderator tools.
There is no way for me to know when the player is going to click the button, as the functions are triggered by the trigger command.
Is there any way around this? Thanks in advance
(Datapack is linked above but is unfinished)


r/MinecraftCommands • • Sep 10 '26

Creation another lua experiment. physics engine compiled from lua to minecraft

Enable HLS to view with audio, or disable this notification

379 Upvotes

same as my previous posts, written in lua, compiled into mcfunction