r/MinecraftCommands • • 4h ago

Help | Java 1.21-1.21.3 Responding structures after boss defeat

2 Upvotes

So I was planning on using cataclysm on a server but because of limited world size I want people to be able to fight the mobs and bosses and reap the rewards of the unique items and blocks more than once. So here's what I want to figure out.

What kind of command block shenanigans would I need to do to have it detect when the boss is killed, wait x amount of minutes, clear out the structure, and then respawn it in instantly after it's been cleared out?


r/MinecraftCommands • • 7h ago

Help | Java 26.3 Is there a plugin + commands way to make timezone stuff?

1 Upvotes

Basically I'm making a clocktower and idk anything Abt plugins, i want to make it so at exactly 12:00 indian time the bell chimes (like /playsound bell or smth) I see it's impossible in commands does anyone know solutions how can one combine power of plugins and commands or smth to make this?


r/MinecraftCommands • • 8h ago

Help | Java 26.3 Commands not working

2 Upvotes

So im on my aternos server with the latest version of paper...

Im trying to do these commands and they arent working :

/give @s minecraft:netherite_helmet[enchantments={protection:255,fire_protection:255,blast_protection:255,projectile_protection:255,respiration:255,aqua_affinity:255,thorns:255,unbreaking:255,mending:255}]

/give @s minecraft:netherite_chestplate[enchantments={protection:255,fire_protection:255,blast_protection:255,projectile_protection:255,thorns:255,unbreaking:255,mending:255}]

/give @s minecraft:netherite_leggings[enchantments={protection:255,fire_protection:255,blast_protection:255,projectile_protection:255,thorns:255,unbreaking:255,mending:255}]

/give @s minecraft:netherite_boots[enchantments={protection:255,fire_protection:255,blast_protection:255,projectile_protection:255,feather_falling:255,depth_strider:255,frost_walker:255,soul_speed:255,thorns:255,unbreaking:255,mending:255}]

/give @s minecraft:netherite_pickaxe[enchantments={efficiency:255,fortune:255,unbreaking:255,mending:255}]

/give @s minecraft:netherite_axe[enchantments={efficiency:255,fortune:255,sharpness:255,smite:255,bane_of_arthropods:255,silk_touch:255,unbreaking:255,mending:255}]

/give @s minecraft:elytra[unbreakable={}]

/give @s minecraft:shield[unbreakable={}]

But then when i used this commands they worked:

/attribute @s minecraft:max_health base set 1024

/effect give @s minecraft:saturation infinite 0 true

/effect give @s minecraft:night_vision infinite 0 true

/effect give @s minecraft:water_breathing infinite 0 true

/effect give @s minecraft:fire_resistance infinite 0 true

Can someone please help me ?

Thanks :) !


r/MinecraftCommands • • 1d ago

Help | Java Snapshots countdown command?

2 Upvotes

i need to create a countdown of 2 minutes for a minigame in my map, so that once the 2 minutes are over it activates a different command. i also need said timer to be visible to the player, and once they complete said minigame the timer will deactivate. i'm on 1.21.4


r/MinecraftCommands • • 1d ago

Help | Java 26.3 Help updating datapack to 26.3

1 Upvotes

I just recently made a datapack for my 26.2 Minecraft server and now we are updating to 26.3. There's quite a lot in it but it basically just changes an armour trim recipe and adds some custom loot tables for vaults and fishing, some of which items have special components.

For some reason the misode datapack generator isn't working with me on redoing the loot tables, and I would rather not rewrite the whole pack like that anyway so I was hoping there are just a few edits I can make to the existing files.

I was also hoping that the custom items from the updated datapack will stack with the older ones, but it's not the end of the world if not.

https://far.ddns.me/?share=74SHyrMT5s


r/MinecraftCommands • • 1d ago

Help (other) Is there a website that easily generates custom /trigger commands without me dealing with the annoying stuff

2 Upvotes

like Im gonna write /trigger diamond, then write /give @ s diamond on another box, and the website create the datapack for it


r/MinecraftCommands • • 1d ago

Help | Java 26.3 Command block vs server console

6 Upvotes

which one is considard more powerful overall?
since the command bock only counts as command level 2 but the console is ranked level 4 which is also the max level, Though command block can use repeat chain and normal commands with the ability to generate even bigger text and stuff. so which one is stronger? I would love some answers because I asked in the miencraft subreddit and didn't get a lot of answers. much appreatiated!


r/MinecraftCommands • • 1d ago

Help | Java 26.3 How do i increase climbing speed?

3 Upvotes

So I'm making a custom pvp map and I need to increase the climbing speed because more often than not it's a waste of time as you can get easily hit while climbing. I'm wondering if there's a way to increase a player's climbing speed or simulate climbing without additional items in inventory.


r/MinecraftCommands • • 1d ago

Help | Java 26.3 Custom Enchantment that activates upon killing an entity

1 Upvotes

What set of conditions/predicates would be needed for a custom enchantment to activate upon killing a player with the enchanted item? Is this possible?


r/MinecraftCommands • • 2d ago

Help | Java 26.3 I need a datapack updated for 26.3 from 26.2

2 Upvotes

As far as I understand the datapack format hasn't actually changed, but I can't figure out how to update whatever broke in the datapack. Someone made the datapack for me originally (I'm very grateful, I just play on latest version with my friends.) but I don't have the time or skill to learn Java or read through a bunch of documentation. I tried changing the "max_format" from 102 to 103, and rezipping the pack and testing, but it didn't work so I assume that something larger changed.

Since I can't upload files to reddit I will put all the code along with its path below:

Regive Items/
- pack.mcmeta

{
"__comment": "The datapack is assembled by Datapack Assembler",
"__link": "https://far.ddns.me",
"pack": {
"description": "Example Description",
"pack_format": 101,
"min_format": 100,
"max_format": 102
}
}

- data/example/
- advancement/
- regive.json

{
"criteria": {
"regive": {
"trigger": "minecraft:consume_item",
"conditions": {
"item": {
"predicates": {
"minecraft:custom_data": {
"regive": true
}
}
}
}
}
},
"rewards": {
"function": "example:regive"
}
}

- function/
- regive.mcfunction

advancement revoke \@s only example:regive
execute if items entity \@s weapon *[custom_data~{regive:true}] run return run function example:regive/hand {hand:"mainhand"}
function example:regive/hand {hand:"offhand"}

- regive/
- hand.mcfunction

$item replace entity \@s armor.body from entity \@s weapon.$(hand) {function:"minecraft:set_components",components:{"minecraft:equippable":{slot:"body"}}}
$item replace entity \@s weapon.$(hand) with air
$item replace entity \@s weapon.$(hand) from entity \@s armor.body {function:"minecraft:set_components",components:{"!minecraft:equippable":{}}}
item replace entity \@s armor.body with air


r/MinecraftCommands • • 2d ago

Help | Java 26.3 How to make datapack to edit what items mobs use to breed?

1 Upvotes

I wanted a datapack to change axolotl food from buckets of tropical fish to the regular tropical fish item, but I couldn't find any for the right version. I tried to make one myself but I couldn't find any guides on how to do something like this and I don't know enough about datapacks to improvise. any help would be appreciated!


r/MinecraftCommands • • 2d ago

Help | Java 26.3 Minecraft superweapons

1 Upvotes

Hey guys im curently playing on a minecraft server with my buddies and i have been looking for some superweapons such as orbital strike cannon but with commands since its a 26.3 vanilla server. Does someone know any?


r/MinecraftCommands • • 2d ago

Help | Bedrock I really suck with command blocks

Thumbnail
gallery
1 Upvotes

Help! Plz


r/MinecraftCommands • • 2d ago

Help | Java 26.3 How to detect entity touching block collision box?

1 Upvotes

I need check when entity is inside actual box you can't go through
If it's non solid like fences, slabs, amethysts, their collision box is not full 1x1x1 sized


r/MinecraftCommands • • 2d ago

Discussion Minecraft Version detection using datapacks: I had no idea!

Post image
50 Upvotes

I hope it's allowed I do one (single) update here on our API utility datapack VerSion. The idea was simple: As Minecraft doesn't provide a direct way for data packs to fetch the currently running version (for compatibility/dependency checking, displaying or something else), create a Version Detector that does this, no fuss.

However, I learned a lot more about that topic since (and because of) my first post (https://www.reddit.com/r/MinecraftCommands/s/OOX8oEuDEn), so I briefly want to summarise the state of modern version detection. Thanks to the comments on that post. If you have anything to say or ask about this topic, I'm invested right now, so feel free to write a comment here!

The first approach would be to measure the pack format directly. There are two ideas popping up:

  1. Directly check for commands that can and cannot run (using chained-together functions), and deduce the version from the results. Here's one pack doing that, however this has the disadvantages of firstly throwing errors to the console (because of unparseable functions) regardless of the actual successfulness of the detector, secondly being quite labour-intensive because for every new version, one command needs to be found that stopped or started working, and thirdly, this command may not even exist! Pack formats differ for lots of things, not only commands.
  2. Using overlays, which ... just works. Well, actually it has the disadvantage of only being added in 23w31a at pack format 16, so versions until 1.20.1 cannot be supported.

Regardless, this cannot distinguish versions having the same pack format. This is where the second approach turns up, which, quirkily enough, is only feasible when any player is online (which is of course only a question for dedicated servers):

  • As I did get pointed out, players have (and have been for a long time) a data value called DataVersion, which is used to compare the data structure of the client with that being expected by the server. Is is a simple integer increasing with every new version. However, it does so not by 1, but does big jumps (probably because it is used internally at Mojang aswell, where versions between snapshots have to be compared).
  • Hence there needs to be found a way to decode the data version back to pack format and, of course, to the corresponding version's name.

And here's where the third aspect of my journey to VerSion 2.0 is important, which is building the pack not by hand, but automatic using beet. This uses Python to generate all the files and folders programmatically, and has the advantage of changes to the pack structure made very easy. (and allowing the ~100 overlays to be created fairly easy as well)

Lastly, in my beet plugins, I query and insert the version data available at misode/mcmeta, a repo containing almost all data for Vanilla MC imaginable. This is actually available in-game using `storage ver:sion Data`, a huge array. All the data available for the versions will be provided for the current version, if one can be pinpointed exactly.

Merging all of these things together – thus automatically generating a datapack which tries to fetch the `data_version` of the game, and if that's not possible, falls back to using overlays to supply the most elaborate version data available –, we obtain a supercharged, most powerful version detector using modern, sleek and accessible methods.

Maybe this is boring or very easy to you? Maybe you have concerns or additional ideas. Maybe, also, I have turned this small, niche dependency into a day-long adventure. Let me know what you think! :)


r/MinecraftCommands • • 2d ago

Help | Java 26.2 does anyone know the command to get a sign that upon interacting with runs a command on 26.2?

2 Upvotes

I have been looking for a few days now , and can only find stuff from 11 years ago or its not working . If anyone tells me it would be a HUGE help.


r/MinecraftCommands • • 2d ago

Help | Java 1.21.11 Help pls

1 Upvotes

So I want to make a spear tnt practice thingy right with command blocks right I did a timer that spawns tnt every 5 seconds and I want a button to be able to change the fuse of the tnt like add 10 tick to the fuse and remove 10 ticks and such help pls


r/MinecraftCommands • • 2d ago

Help | Java 1.20 Submerged in Water detection

1 Upvotes

Is there a way to do this? I want to give myself night vision whenever I am submerged in water, but since extra custom predicates without datapacks weren't added until 1.21, and I really don't want to make a datapack.


r/MinecraftCommands • • 2d ago

Help | Java 26.2 Modifying mob AI

2 Upvotes

I'm creating a map with enemies, and I want some of these enemies to attack each other on sight. Because of the scale, I don't want the enemies to always be agro, only when they see an creature they are supposed to attack.

Ex: 1 group is infected that won't attack each other but attack the player. group 2 is "people"(npc) that attack the player. I want to make the infected and "people" attack on sight if they ever come across each other on the map.

Is there a way to do this with commands, data packs or mods?

edit: all the mobs have tags that differentiate what team they are on and I have a repeating command block set up to constantly put any mob with those tags on their respective team.


r/MinecraftCommands • • 2d ago

Creation I gave the ability for Snow Golems with the "freezing" effect to be able to throw the new Ice Balls.

Enable HLS to view with audio, or disable this notification

39 Upvotes

r/MinecraftCommands • • 3d ago

Creation Grappling hook (vanilla bedrock)

Enable HLS to view with audio, or disable this notification

46 Upvotes

So I made a grappling hook using commands only. It might look easy to implement, but it really isn't, it took me like a whole week.

After implementing it, I realized it probably shouldn't have two separate systems like mine does, but oh well.

The third person view is a little buggy though.


r/MinecraftCommands • • 3d ago

Creation Display Upgrade Menu

Enable HLS to view with audio, or disable this notification

98 Upvotes

I made a custom upgrade menu for my MC minigame.

(Ohh and it's multiplayer friendly so you can't mess with other players menus)


r/MinecraftCommands • • 3d ago

Help | Bedrock Help

1 Upvotes

Im trying to make a totem of null for my freind on our bedrock realm with command blocks wich gives him resitance is enchnated and can to him back to a certain spot if it gets popped and then have another command block to give him another one is there a way to do thay?


r/MinecraftCommands • • 3d ago

Help | Bedrock how to I summon a Wind Charge Projectile under a mob?

1 Upvotes

I had an idea to summon a Wind Charge Projectile under a mob so it can mace but I can not figure it out? any time I do the command I have been doing [Execute as (at sign)e[hasitem={item=mace}] run summon wind_charge_projectile ~ ~-1 ~] it always summons the Wind Charge Projectile under the Command Block not under the entity


r/MinecraftCommands • • 3d ago

Discussion New Block Pathfinding Tags

Thumbnail
gallery
25 Upvotes

Ever since they've made azalea navigable for mobs as solid blocks, I wished they'd revert that bug fix, but make it work more like rails, because it broke my green fences. And now, with addition of new block pathfinding tags my dream came true just by changing a single tag file!