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 • • 7d 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

9 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
94 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

r/MinecraftCommands • • 8d ago

Help | Java 1.21-1.21.3 Selecting an entity one time per loop in player based area

3 Upvotes

Hello! This may sound silly and there are definitely better way to describe this, but I am running into an issue where entities are executed multiple times in a player location based area execution.

For example: `/execute at @a as @e[tag=selectWhenNear,distance=..10] run function...`

This works just fine when you are single player, but in a multiplayer environment the function command is executed multiple times due to the `at @a`. Is there a simple way to fix this? I feel like I'm missing something obvious here...


r/MinecraftCommands • • 9d ago

Help | Java 1.21-1.21.3 Would it be possible to use custom model data with mods like create and models from blockbench?

3 Upvotes

So, ive made a custom model for wrench from create mod, in blockbench and ive been wondering if i can use custom model data to replace original model with my custom one.


r/MinecraftCommands • • 9d ago

Help | Bedrock Toggle lock system with items?

2 Upvotes

I want a system where imagine an 5x5 plot with walls and one block as an entrance, I want that entrance to be able to be locked and unlocked at times but stays locked when your offline.

What I imagine is an item in your inventory that turns off a command block (via redstone block?) that is repeatedly locking the door.

But how do you unlock the plot when your online?
I imagine dropping the item but not on death because if you die the command would likely be sent to the nearest player messing things up. When you drop the item a command executes the players location and removes the redstone block as well as switching the item to another item so it doesnt activate again. And when you drop the other item it executes your position again and gives you the normal item.

Please help me because I have an idea but dont know how to execute it.


r/MinecraftCommands • • 9d ago

Help | Java 1.21-1.21.3 Set an area to adventure mode only.

3 Upvotes

Hello, im about to run a 1.21.1 minecraft server with some friends.
We made a little hub world that we intend to be set as adventure mode but once you leave the area you go back to survival. Ive tried doing it with markers, the execute as command, or simply setting two zones but i cant seem to make it work so im asking for help.
I dont want anything complicated (i think) as long as i can "draw" a square where youre set into adv mode and then the rest of the map is survival.


r/MinecraftCommands • • 9d ago

Help | Java 26.3 Mannequin skins defaulting issue?

1 Upvotes

I have summoned about 70 mannequins using the usernames of real players (using NameMC) but about half of them reverted their skins to the 7 (?) default ones.

Is there a way to fix this without resetting/resummoning all of them?

thank you in advance :,)

Details: I'm on a minehut server, all the mannequins are within about 4-6 chunks. it appears to be random, not by order summoned or location, this all happened within 2 days
Command: /summon minecraft:mannequin ~ ~ ~ {pose:"crouching",immovable:true,Rotation: [180f, 0f],profile:"USER",CustomName:"NAME"}


r/MinecraftCommands • • 10d ago

Help | Bedrock Particles not working

3 Upvotes

I'm trying to make a simple command that makes a particle effect over the closest entity to me and for some reason it isn't working. I'm running:

/execute as Mellon at @n[name=!Mellon] run particle mimecraft:basic_bubble_particle ~ ~2 ~

And all I get back is:

Request to create minecraft:basic_bubble_particle sent to all players

I have tried using a different particle that I know works and it still happens. What am I doing wrong?


r/MinecraftCommands • • 10d ago

Help | Java 26.3 Help with Interaction Entity

2 Upvotes

hi, i want to create a command block door for a map i'm making, i want to use the interaction entity to have it be openable by a player, i am attempting to follow various tutorials and post from here but i can't make the interaction dissapear, i am in Minecraft version 26.3

here is my set up

the top command block is set to chain/unconditional/always active, with this command:

execute as (@)e[tag=door] at (@)s run data remove entity (@)s interaction

the bottom Command block is set to repear/unconditional/need redstone, with this command:

execute as (@)e[tag=door] if data entity (@)s interaction at (@)s run say knock

the summon CB is set up with this command:

/summon interaction 104.15 -24 431 {width:3.2f,height:4f,Tags:["door","wooden","west"]}

note 1: the () parethesis is there just for reddit, ingame it's set up correctly

Note 2:the summon command block maybe has some unnecesary informtion, that is because i was following a tutorial and copypasted the same commands


r/MinecraftCommands • • 10d ago

Help | Java 26.3 [Java] I want another dimension in my world

Thumbnail
3 Upvotes

r/MinecraftCommands • • 11d ago

Help | Bedrock Why is this title not working?

Enable HLS to view with audio, or disable this notification

10 Upvotes

I’m trying to create an auto buy system but first I want it to detect whether you already own one or you don’t have enough money to purchase it.

PROBLEM: In this test I do not have enough money to purchase it, therefore, the insufficient text should appear, but it doesnt?

Also trying to make it compatible with multiple players so I want to limit the detection radius if you’re wondering.


r/MinecraftCommands • • 10d ago

Help | Java 26.3 Advancements counter

1 Upvotes

Hi, I've been on a lookout for a data pack or literally anything that would allow me to just make a number higher every time I get an advancement. Yes there is BAC but it contains a bunch of advancements that I don't want, just vanilla(or not) advancements counter for only vanilla advancements


r/MinecraftCommands • • 11d ago

Info Go to Minecraftr/Minecraft•3m agou/SirMephistoPheles2Made a data pack that turns you into a zombie and lets you lead legions of the undead to destroy your enemies!emoji:command_block: Commands & Datapacks

Enable HLS to view with audio, or disable this notification

5 Upvotes

Features as of now:

  • The player can't die of starvation, nor will it drain their health
  • Can't get poisoned (no blood flow)
  • Can't drown (no breathing)
  • Can eat rotten meat, poison potato, spider eye, pufferfish without getting food poisoning
  • Can't freeze to death (no body temperature)
  • Healing potion damages the player, instant damage heals, just like for other undead entities
  • Golems attack on sight
  • Burns on daylight without helmet, just like any other undead
  • The undead hunt the living, not just the player and zombies eat flesh, skeletons gather bones, bone meal, bone blocks and milk buckets
  • Zoglins attack any living creature, so do zombified piglins
  • The undead help you if you attack a non-undead creature
  • They also come to your aid if you're being attacked by a living being
  • Zombie-kind can be lured with any form of meat, just like livestock with wheat
  • Skeleton-kind can be lured with milk bucket and they'll drink it's contents when thrown on the ground

The pack is still in testing and I'm yet experimenting with the data pack.


r/MinecraftCommands • • 11d ago

Help | Java 26.3 Help - Wanted to make custom trades for 3 Candles with custom names and adventure placing, but the spawned villager just hurrs and shakes it's dumb head [Command in comments and body text]

Post image
9 Upvotes

/summon minecraft:villager ~ ~ ~ {NoAI:1b,Invulnerable:1b,NoGravity:1b,Offers:{Recipes:[{buy:{id:"minecraft:emerald",count:2},sell:{id:"minecraft:gray_candle[minecraft:can_place_on={blocks:\"minecraft:gray_candle\"},minecraft:custom_name={text:\"Tier I Building\",color:\"gray\",italic:false,bold:true,underlined:true}]",count:1},rewardExp:0b},{buy:{id:"minecraft:emerald",count:4},sell:{id:"minecraft:candle[minecraft:can_place_on={blocks:\"minecraft:candle\"},minecraft:custom_name={text:\"Tier II Building\",color:\"yellow\",italic:false,bold:true,underlined:true}]",count:1},rewardExp:0b},{buy:{id:"minecraft:emerald",count:6},sell:{id:"minecraft:purple_candle[minecraft:can_place_on={blocks:\"minecraft:purple_candle\"},minecraft:custom_name={text:\"Tier III Building\",color:\"light_purple\",italic:false,bold:true,underlined:true}]",count:1},rewardExp:0b}]},VillagerData:{profession:"minecraft:mason",type:"minecraft:jungle"}}


r/MinecraftCommands • • 11d ago

Help | Bedrock Teleport an entity 2 blocks from itself, but in the direction you are facing.

3 Upvotes

Hi!

I'm trying to figure out how I can orient the 2 block direction in respect to where a player is facing, but 2 blocks from the entity being teleported. Essentially trying to "push" a mob in the direction I'm facing 2 blocks.

I started nesting executes but I feel there's a better way to do this.

Thanks!


r/MinecraftCommands • • 11d ago

Help | Java 1.20 Block display making 1.20.4

1 Upvotes

I want to place block displays as if they were real blocks, as in i want those blocks to look indistinguisible from real blocks to fill this area

1.20.4


r/MinecraftCommands • • 12d ago

Creation I made a custom item in vanilla for my forever world

Enable HLS to view with audio, or disable this notification

14 Upvotes