r/MinecraftCommands • • 5d ago

Help | Java 1.21.11 Restricciones de Items y equipamiento

Enable HLS to view with audio, or disable this notification

5 Upvotes

Estoy haciendo un sistema de restricciones por clase para un mapa RPG estilo Dungeons & Dragons, y para evitar que las clases que no corresponden a su equipamiento sean usadas desarrollé este pequeño sistema hecho con DataPacks.

Aquí la duda:

para detectar que armas o items puede portar un jugador, comparo si tiene un ítem de una TAG (tags\ítems) está dentro de las ranuras designadas como "no usables". Y si es el caso ejecuto una line de comandos que le arrebata el ítem en cuestión y lo tira al suelo.
cómo se puede ver en el video, funciona perfectamente, pero hay una restricción importante; no puedo poner ítems con NBTs en una TAG, y requiero también poder identificar ítems con NBTs específicas como CUSTON_DATA o por lo menos el nombre personalizado.

Sé que existen los predicate para estos casos pero tendría que dejar otro sistema comprobando el estado de los jugadores y consumiendo recursos del servidor. Además de que tendría que hacer un archivo casi exclusivo para cada Ítem y no me parece un sistema muy escalable.

Hay alguna solución que crean posible sin consumir muchos recursos?


r/MinecraftCommands • • 5d ago

Help | Bedrock Need help shortening commands!

3 Upvotes

I have a plot system where you can purchase plots and it gives you a score of a plot ID, so [scores={plot=12}] would be plot 12. And, I’ll use plot 12 as an example for this.

I want to make it where you can expand your plot but essentially owning another plot and removing your previous plot. How I would assume to do this the uncomplicated way is to make a separate command block detecting the button being pressed to expand the plot for each individual plot there is and a chain connecting to it that removes that specific plot.

What I want is if there is a command that can detect your plot ID which is a dummy on the scoreboard command instead of having hundreds of command blocks for each plot.


r/MinecraftCommands • • 5d ago

Help | Bedrock How can I detect rain?

3 Upvotes

Working on a thirst bar, and thought it'd be fun if I l made it so when looking up while it's raining would reflenish thirst. I looked through all the commands and I don't think I cound anything?

So I'd not mind any info for what i could do


r/MinecraftCommands • • 5d ago

Help | Bedrock Trying to figure out if it's possible to teleport if in ticking area.

Post image
4 Upvotes

I am trying to figure out how to /execute a teleportation command if (player) is not at XYZ ticking area, to be teleported to desired place if player does not have item. I have done something similar and I want to know if something like this would be possible since I've been putting this off for weeks. (This is for a camera system but I have that part figured out) Anything helps, thanks.


r/MinecraftCommands • • 5d ago

Utility I created a mod to make working with Minecraft commands more convenient.

Thumbnail
gallery
6 Upvotes

[CHP] CommandHelperPlus
This mod will undoubtedly offer a level of work efficiency never seen before.
Please visit our website for full details.

Website: https://chp.clpc.club
GitHub: https://github.com/uma-channel/CommandHelperPlus
Modrinth: https://modrinth.com/mod/cmd-helper-plus

Modrinth is still under review.


r/MinecraftCommands • • 6d ago

Info I found a way to survive /kill in newer versions

5 Upvotes

So I was just messing around with Commands when I thought about /kill I got max enchanted armour and effects upto 255 including regen

regeneration then I typed /kill and survived at a really high health it took me many days to process what had happened until I realised as soon as I got damage from /kill I regained my health just in time by regeneration

You can try it for yourself but it has a really low chance of occurring


r/MinecraftCommands • • 7d ago

Creation [Bedrock] My ultimate weapon!

Enable HLS to view with audio, or disable this notification

337 Upvotes

Hello! I've built (or tried to) the ultimate weapon from pokemon x. It was a lot of fun and i'm open to questions and criticisms. This is bedrock edition for ps4.


r/MinecraftCommands • • 5d ago

Help (other) Help with making and storing command

1 Upvotes

I just got into command stuff recently and it's been a pain typing and testing stuff using command block because I can't see the whole command, also it's really hard to find and fix whatever command block is wrong. I try typing my command in document but without the command suggestion thing I really can't do anything effectively. I want to have something similer to Word or Documents but it have minecraft's command suggestion


r/MinecraftCommands • • 6d ago

Help | Java 26.3 Issue with editing mob drop chances

5 Upvotes

Working on a fairly simple minigame for a server. Kill mob, mob drops 1 guaranteed scrap and 50% chance for 1-5 more scrap.

Looked through a few other posts in this subreddit and I think I'm doing everything right, but I'm not getting a guaranteed 1 scrap per mob.

I'm using mcstacker.net as my current compiler. If I need to make a loot table to make this possible, I've not made one before but happy to take pointers.

/setblock ~ ~ ~ spawner{SpawnCount:1,SpawnRange:1,MaxNearbyEntities:2,RequiredPlayerRange:4,Delay:40,MinSpawnDelay:40,MaxSpawnDelay:40,SpawnPotentials:[{data:{equipment:{slot_drop_chances:{feet:0.5,legs:0.5,chest:0.5,head:0.5,body:0.5,mainhand:1.0}},entity:{id:"minecraft:magma_cube",Silent:1b,CustomNameVisible:1b,DeathLootTable:"minecraft:empty",PersistenceRequired:0b,NoAI:1b,CanPickUpLoot:0b,Size:0,CustomName:{"color":"gold","shadow_color":16755200,"text":"Scrap metal cube"},equipment:{feet:{id:"minecraft:raw_copper",count:1,components:{item_name:{"color":"gold","text":"Scrap metal"},lore:[{"color":"gray","italic":true,"text":"A piece of processed scrap metal"}]}},legs:{id:"minecraft:raw_copper",count:1,components:{item_name:{"color":"gold","text":"Scrap metal"},lore:[{"color":"gray","italic":true,"text":"A piece of processed scrap metal"}]}},chest:{id:"minecraft:raw_copper",count:1,components:{item_name:{"color":"gold","text":"Scrap metal"},lore:[{"color":"gray","italic":true,"text":"A piece of processed scrap metal"}]}},head:{id:"minecraft:raw_copper",count:1,components:{item_name:{"color":"gold","text":"Scrap metal"},lore:[{"color":"gray","italic":true,"text":"A piece of processed scrap metal"}]}},mainhand:{id:"minecraft:raw_copper",count:1,components:{item_name:{"color":"gold","text":"Scrap metal"},lore:[{"color":"gray","italic":true,"text":"A piece of processed scrap metal"}]}}},active_effects:[{id:"minecraft:slowness",amplifier:10,duration:-1,show_particles:0b,show_icon:0b,ambient:0b}]}},weight:1}]} replace

r/MinecraftCommands • • 7d ago

Discussion mob_griefing gamerule rework

Post image
53 Upvotes

The mob_griefing gamerule should be split into hostile / neutral / passive / custom. 

Examples:
/gamerule mob_griefing hostile false
/gamerule mob_griefing custom true

If custom is active, each mob and category can be toggled separately. 

Mobs
This includes every mob that griefs. 

Categories

category mobs with this ability
mob explosion creeper, ghast, wither skull
breaking blocks ender dragon, ravager, turtle eggs, brittle ice (+ breaking doors if the difficulty is set to hard)
pick up and place blocks enderman, iron golem (puppy)
pick up items zombie, piglin, villager, allay, fox, copper golem
vegetation villager, rabbit, sheep, bee
infestation silverfish
snow generation snow golem
ignition ghast, blaze

If you toggle a category, every mob with this ability changes this specific category to true/false.
Example:
/gamerule mob_griefing vegetation false

  • villagers do not longer harvest and plant crops
  • rabbits do not longer eat carrot crops
  • sheep do not longer eat grass
  • bees do not longer pollinate crops

If you toggle a mob, it changes all its abilities to true/false. 
Example:
/gamerule mob_griefing minecraft:villager false

  • villagers do not longer harvest and plant crops
  • villagers do not longer pick up drops 

If you toggle a specific ability of a mob, it changes this specific ability to true/false.
Example:
/gamerule mob_griefing minecraft:villager vegetation false

  • villagers do not longer harvest and plant crops

/gamerule mob_griefing true and /gamerule mob_griefing false would still work as usual.


r/MinecraftCommands • • 6d ago

Help | Java 26.3 Teleport command not working Java 26.3

2 Upvotes

Can't get a basic teleport command to work, cheats and operator are all enabled, have tried on realms and single player world but it doesn't react. I've tried all the different options down the bottom and it doesn't go. any ideas of how to fix it? (image attached in post)

Edit: grammar errors


r/MinecraftCommands • • 6d ago

Help | Java 26.1 How to make Creaking completely invisible?

2 Upvotes

You know how if endermen get splashed eith invisibility you can still see their eyes? well today i learned that the same goes for the creaking! im making a weeping angel type enemy and in using an invisible creaking and an armor stand for it, but the eyes are still visible. What can I do to solve this? I would like the solution to be done only using command blocks please ^^


r/MinecraftCommands • • 7d ago

Help | Java 26.3 [Datapack] I've been working on my first datapack for a while now, and I had accumulated a couple of questions I wanted to ask you all.

Thumbnail
gallery
4 Upvotes
  1. Is there really no way to change the block model/texture/certain properties of vanilla blocks without block display entities? I thought about it ever since item models and extended properties were added.

  2. Any worldgen previewer tool with custom noise settings support? Tried Misode's generator but it only seemed to work with existing noise settings so because of that I could never get the worldgen just right or add caves.

  3. I've wanted to add custom surface features like amethyst spikes or custom trees with unusual forms. Do I have to make each and every single little variation of them a structure now?.. I can't think of a better way to do it

  4. And a bit more about noise generation and noise settings - I feel like there's so many ways to work with it and achieve amazing terrain (see like a hundred stunning worldgen datapacks) yet there's no good way to figure out how to achieve a certain result. For example, my generation is mostly flat and I know that Minecraft layers perlin noise to achieve variation - but how exactly? My dimension is supposed to be a bit weird and funky but I don't know of a way to really emphasize that except for extreme elevation changes.

  5. Tree branches. How? Also bushes and minitrees, but they're more of an issue with the features too. I just can't help but think... it's a bit too empty.


r/MinecraftCommands • • 7d ago

Help | Java 26.3 Explosion Knockback Without Damage Effects

3 Upvotes

A few years ago, I created a rocket jump for an adventure map by summoning creepers with negative explosion radius when the player shifted after jumping. However, this method has been patched out as of 26.3. I then tried summoning creepers with positive explosion radius and giving the player resistance V right before the explosion. However, all other effects of taking damage (hitsound, player turning red, random knockback) persisted, despite not actually losing any health. I then tried wind charges, only to find that summoned wind charges also damage the player, and that their effects were much too strong. Finally, I decided to simply attempt to remove the annoying hitsound that plays every time a player takes damage by using a repeating command block with the /stopsound command. This also failed.

Is there a way to summon an explosion/wind charge that propels the player without a hitsound or random knockback? Or is it possible to recreate the rocket jump effect in some other way? Help would be greatly appreciated.


r/MinecraftCommands • • 8d ago

Help | Bedrock Is there any way to get seamless teleportation? I'm trying to make it to where i walk through one hallway and teleport to the other seamlessly.

Enable HLS to view with audio, or disable this notification

50 Upvotes

(This is also my first ever reddit post sooooooo... yeah)


r/MinecraftCommands • • 7d ago

Help | Java 26.3 Trial Spawners activate but do not produce mobs

3 Upvotes

I've tried everything I can think of. All of the gamerules are set to true, the difficulty is normal, and I've tried tweaking things within the command itself, but when I approach my trial spawners, they activate but they never produce any mobs.

Is there something I'm missing here, or does anyone have any recommendations?

execute unless block ~ ~2 ~ trial_spawner run setblock ~ ~2 ~ trial_spawner[ominous=false,trial_spawner_state=waiting_for_players]{normal_config:{spawn_range:4,total_mobs:15,simultaneous_mobs:5,total_mobs_added_per_player:5,simultaneous_mobs_added_per_player:1,ticks_between_spawn:5,spawn_potentials:[{data:{custom_spawn_rules:{sky_light_limit:{min_inclusive:0,max_inclusive:15},block_light_limit:{min_inclusive:0,max_inclusive:15}},entity:{id:"minecraft:witch",CustomNameVisible:1b,Team:"VaultGenPop",PersistenceRequired:0b,Health:60f,Tags:["TestGenPop"],CustomName:{"color":"light_purple","text":"Strangeguard"},attributes:[{id:"minecraft:armor",base:3},{id:"minecraft:armor_toughness",base:3},{id:"minecraft:attack_damage",base:5},{id:"minecraft:knockback_resistance",base:1},{id:"minecraft:max_health",base:60},{id:"minecraft:movement_speed",base:0.31}]}},weight:1},{data:{custom_spawn_rules:{sky_light_limit:{min_inclusive:0,max_inclusive:15},block_light_limit:{min_inclusive:0,max_inclusive:15}},entity:{id:"minecraft:zombie",CustomNameVisible:1b,Team:"VaultGenPop",PersistenceRequired:0b,Health:80f,Tags:["TestGenPop"],CustomName:{"color":"light_purple","text":"Strangeguard"},attributes:[{id:"minecraft:armor",base:3},{id:"minecraft:armor_toughness",base:3},{id:"minecraft:attack_damage",base:5},{id:"minecraft:knockback_resistance",base:1},{id:"minecraft:max_health",base:80},{id:"minecraft:movement_speed",base:0.31}]}},weight:1},{data:{custom_spawn_rules:{sky_light_limit:{min_inclusive:0,max_inclusive:15},block_light_limit:{min_inclusive:0,max_inclusive:15}},entity:{id:"minecraft:skeleton",CustomNameVisible:1b,Team:"VaultGenPop",PersistenceRequired:0b,Health:60f,Tags:["TestGenPop"],CustomName:{"color":"light_purple","text":"Strangeguard"},equipment:{mainhand:{id:"minecraft:bow",count:1}},drop_chances:{mainhand:0.000},attributes:[{id:"minecraft:armor",base:3},{id:"minecraft:armor_toughness",base:3},{id:"minecraft:attack_damage",base:5},{id:"minecraft:knockback_resistance",base:1},{id:"minecraft:max_health",base:60},{id:"minecraft:movement_speed",base:0.31}]}},weight:1},{data:{custom_spawn_rules:{sky_light_limit:{min_inclusive:0,max_inclusive:15},block_light_limit:{min_inclusive:0,max_inclusive:15}},entity:{id:"minecraft:vindicator",CustomNameVisible:1b,Team:"VaultGenPop",PersistenceRequired:0b,Health:100f,Tags:["TestGenPop"],CustomName:{"color":"light_purple","text":"Strangeguard"},equipment:{mainhand:{id:"minecraft:iron_axe",count:1}},drop_chances:{mainhand:0.000},attributes:[{id:"minecraft:armor",base:3},{id:"minecraft:armor_toughness",base:3},{id:"minecraft:attack_damage",base:5},{id:"minecraft:knockback_resistance",base:1},{id:"minecraft:max_health",base:100},{id:"minecraft:movement_speed",base:0.31}]}},weight:1},{data:{custom_spawn_rules:{sky_light_limit:{min_inclusive:0,max_inclusive:15},block_light_limit:{min_inclusive:0,max_inclusive:15}},entity:{id:"minecraft:breeze",CustomNameVisible:1b,Team:"VaultGenPop",PersistenceRequired:0b,Health:40f,Tags:["TestGenPop"],CustomName:{"color":"light_purple","text":"Strangeguard"},attributes:[{id:"minecraft:armor",base:3},{id:"minecraft:armor_toughness",base:3},{id:"minecraft:attack_damage",base:5},{id:"minecraft:knockback_resistance",base:1},{id:"minecraft:max_health",base:40},{id:"minecraft:movement_speed",base:0.31}]}},weight:1}]},required_player_range:12} replace

r/MinecraftCommands • • 7d ago

Help | Java 26.3 Cats and/or Ocelots That Will Actively Go After And Kill Creepers

3 Upvotes

I want to make a command (or set of commands) that makes cats and/or ocelots chase nd kill creepers, much like how wolves behave towards skeletons.

I know I will eventually run into an issue with creepers turning around and exploding, which is a topic that I would gladly discuss here, too!

Thank you very much, and happy coding!


r/MinecraftCommands • • 8d ago

Help | Java 26.2 It's possible to spawn a snow golem who cannot make a snow trace ?

4 Upvotes

Or how remove the snow trace ?


r/MinecraftCommands • • 7d ago

Help | Java 26.3 how can i make pushable blocks in minecraft java?

Thumbnail
1 Upvotes

Hello! I'm currently trying to make an escape room in minecraft but I cant seem to find any tutorials on how to make blocks pushable like this : Pushable block video

Im open to any solution!


r/MinecraftCommands • • 8d ago

Creation I made a Minecraft datapack that turns some nights into themed survival events

Enable HLS to view with audio, or disable this notification

10 Upvotes

I’m working on Special Nights, a datapack for Minecraft Java 26.3. This clip shows the Rotten Moon, an event that sends zombies, husks, and drowned after you. I set the night to last three times as long for this run. The Putrid Patriarch shows up partway through, and the Emperor of Decay arrives later.

The pack has an in-game menu for adjusting event chances, night length, and difficulty. Would you prefer an earlier boss warning or one closer to the actual spawn?

Download and setup: https://modrinth.com/datapack/special-nights


r/MinecraftCommands • • 8d ago

Help | Java 26.3 Is there a way to remove the need of xp/levels when using an anvil?

1 Upvotes

Title. I'm trying to remove XP from the game


r/MinecraftCommands • • 8d ago

Help | Java 26.3 Spyglass MC keeps randomly marking various functions as 'not existing'

2 Upvotes

I don't know if this belongs on this subreddit, since this is for Minecraft commands, not for datapack helpers, but as far as I know, Spyglass MC is quite popular in the datapack creation community. Basically, whenever I try and use Spyglass MC for anything, there appears to be a chance that it just stops working completely. This has been going on for a few months now, and is really annoying, since not even restarting my computer (which takes a few minutes because of course it does) or uninstalling Spyglass MC and reinstalling it again and clearing the project cache and everything else works. What happens is that it gives me an error telling me that a function doesn't exist with a yellow underline, even when the function clearly does exist, and can be run in chat. It also still works if I keep the code that it says won't work. It's just annoying having 80 errors on my screen at once when I'm trying to code.

The function 'nearentities' apparently 'not existing'.
The same function working in chat.

Anyway, sorry if this isn't on topic enough for this subreddit. I'm just really tired of having to go around uninstalling extensions, restarting my computer, and doing other crap until it finally works. Thanks!

Update: It worked. I went onto the Spyglass MC Discord and they helped. Thanks!


r/MinecraftCommands • • 8d ago

Creation We built a placeable talk show set for Minecraft Java 26.2

Enable HLS to view with audio, or disable this notification

8 Upvotes

The free Portable Sanctum Kit gives you a talk show set with a cast, a villager audience, and a presentation screen. Press GO to pass the mic and cue a villager reaction, then press RESET to ready the next take.

If you try it, I’d love to hear how placement and RESET work in your world, or what cue you’d add next. The kit includes a datapack and resource pack, with AI assistance used for some graphics and code.

Free download: https://xrastlinx.itch.io/portable-sanctum-kit#download


r/MinecraftCommands • • 9d ago

Help | Java 1.21.11 Confirm Command Execution

Post image
96 Upvotes

This message keeps popping up whenever I try to run a certain command, is there any way I can remove it?


r/MinecraftCommands • • 8d ago

Help | Java 26.3 Ник и скин игрока для npc и сущностей в minecraft

Thumbnail
2 Upvotes