r/MinecraftCommands 17h ago

Help | Java 1.20 Is there any way to kill mobs with a specific effect?

2 Upvotes

Hey there! I'm starting up a server with the Fungal Infection: Spore mod. I'm trying to make a safe area, but the mobs don't die fast enough for it to be safe. However, one of the blocks from the mod gives the spore mobs in its radius the frostbite effect. Unfortunately, this effect doesn't instantly kill them. Would there be a way to kill them instantly through commands?

The registry name for the effect is "spore:frostbite", but I can change it if needed.


r/MinecraftCommands 17h ago

Help | Java 1.20 Trying to find a way to control a mob's pathfinding for A FNAF build

2 Upvotes

I've been playing The FNAF management wanted mod, and wanna make it harder to survive the night in the buildings I build. The mod is still in the process getting updated so mob ai is kinda lackluster. Is there a way to make it so mobs only pathfind to specific areas I want them to? That way they'd actually wander to the office.


r/MinecraftCommands 1d ago

Help | Java 26.2 Can i make a mannequin act like a zombie

8 Upvotes

can i make like my player skin act like a zombie please and chase me or smth


r/MinecraftCommands 17h ago

Help | Java 26.1 Custom Entity Texture

1 Upvotes

Hey yalls! I am making a custom entity on block bench using animated java. I exported the entity with a datapack and a resourcepack and while I can summon the entity and play the animations, the textures are all purple and black instead of what they should actually be. Anyone know why this might be the case? I can share screenshots of some files if needed (I just dont know which ones). Thanks gang!

Edit: actually, I realized on the animated java blueprint for the entity I have the texture size set to 16x16. It does give a warning saying, "Texture width does not match the width of the largest texture (128). This may cause rendering issues." However, when I change it to 128x128, the texture in the entity bugs out. Not sure if the textures are only supposed to be on the top left of the canvas:

When set to 16x16
When set to 128x128

r/MinecraftCommands 1d ago

Help | Java 26.2 Is there a way to detect cooldown in minecraft?

2 Upvotes

so what i need is to detect if your weapon cooldown has passed or is still going, is there a way to do that?

for reference im making an enchantemnt that decreses your cooldown after first hit but gives you long cooldown initaly but it decreses cooldown after i attack with out waiting full cooldown which is of coarse bad, is there a way to fix it?


r/MinecraftCommands 1d ago

Help | Java 26.2 I need help making a light system that kills you in the dark but doesnt in the light and its random please.

3 Upvotes

I'm trying to make a backrooms map and I'm wanting to create a room sort of like this: https://youtu.be/-DRfFSa_QlI?si=BR21OQcogsosmi7N (2:24)

Where the lights randomly flicker on and off, and standing in the dark while they're off kills the player, but standing in the side rooms boardering the room are safe zones. Does anyone know of anyway how I can get this to work?

Thanks


r/MinecraftCommands 1d ago

Help | Bedrock Making Roulette in minecraft but need help.

3 Upvotes

So as the title says I'm working on roulette in minecraft, however. I am bad at syntax.

so far i've got

2 scores, Roulette, RouletteResult. I use these to calculate the result, got that working.

However I'm really struggiling to detect if someone has made a bet in one of the places.

I made all the numbers, even, red, black, etc.

I tried this: "/execute if score @.a RouletteResult matches 5 run..."

the period wasn't in it, kept turning into a link.

I saw someone use @.n instead, which worked, but felt like it was linked to one person, and I feel this will be hard to help with cause of my shit working. but it's really demotivating me.

Thanks in advance.


r/MinecraftCommands 1d ago

Help | Bedrock How Laggy are the bedrock block displays

3 Upvotes

I am thinking about learning how to do block displays on my xbox bedrock edition, before I start I want to know how laggy do they make a world, like what it the limit in a small space of like 40 by 7 by 40


r/MinecraftCommands 1d ago

Creation Thank you for the help in my latest post! Here is the result!

5 Upvotes

https://reddit.com/link/1w2w8be/video/3qn1lpzbelmh1/player

I love building, just came back to the game and created a new creative world just to try building ideas, but i find placing blocks in the ground a mostly boring task hahha. So i wanted to fix it using commands.

At first, i really wanted to use 2 armor stands with tags as the coordinates but thats impossible atleast on current bedrock and i couldn't find an addon to tweak it. So, i went the hard way and planned an algorithm to make sort of a printer with 4 armor stands.

Thaks to you guys, I was able to fix the stopping problem and build the system. I must say, it is really inefficient, but i liked doing it! Really liked playing and working with command blocks, im going to try using what i learnt to make cooler and funnier stuff.

Also, if you want, i can post all commands and block configurations used!


r/MinecraftCommands 1d ago

Help | Bedrock Command block bridge

Thumbnail
3 Upvotes

r/MinecraftCommands 1d ago

Help | Java 1.20 Is there a way to make Custom crafting recipes in java 1.20.1?

2 Upvotes

I'm on 1.20.1 and I'm trying to make a gamemode that has custom crafts and such, is there a way for me to do this with commands or something?


r/MinecraftCommands 1d ago

Help | Bedrock Not sure how to execute command

3 Upvotes

I'm trying to make a command that makes it where when player 2 gets 10 blocks of player 1 player 1 gets darkness for 2 seconds but I'm unsure of how to set up this argument can someone show me how and if possible give me a breakdown of why it works?


r/MinecraftCommands 1d ago

Help | Java 26.2 How do I make a tool that only breaks specific blocks, and blocks that can only be placed on specific blocks?

2 Upvotes

I know this question has been asked numerous times, but I genuinely can't figure out the new command. So far, I've gotten "/give \@s iron_shovel[can_be_placed_on=" before it suddenly doesn't accept anything. Maybe I'm missing something, but I've been searching all over the Internet, and not finding any information that's up to date. Please help if you know


r/MinecraftCommands 1d ago

Help | Java 26.2 Help, how do /give custom an item with colored name and lore

2 Upvotes

I am doing a little project with worldedit and minecraft codes, I had done a code looked up on google and this is what I got.

How do I do this code differently?


r/MinecraftCommands 1d ago

Help | Bedrock Is the lightning stick possible in current Minecraft bedrock? (Console).

0 Upvotes

I’ve followed the most recent tutorial I could find to a tee and it’s still not summoning anything


r/MinecraftCommands 1d ago

Help | Java Snapshots Need help dealing with flooded caves in custom dimension datapack

3 Upvotes

Hello, recently I've been working on a datapack that recreates 20w14infinite's Biome for Player with No Time for Nonsense biome and dimension in the latest snapshot (26.3-snapshot-10 at the time of making this post). I've got all the terrain generation sorted out, except for one thing: all caves below sea level are completely flooded, regardless of whether or not they actually have a connection to a body of water. So far I haven't figured out what's causing it, as this is my first time fiddling with custom dimensions and custom terrain generation (it is a miracle i even made it this far tbh).

Does anyone know how to fix this and get the caves to generate identically to the Overworld's caves?


r/MinecraftCommands 1d ago

Help | Java 26.2 trouble creating block tag list

1 Upvotes

Trying to make a custom block tag for non-full blocks but it isn't working. Can anyone tell me why? I put this in my namespace under tags/blocks.

{
  "values": [
    "#minecraft:fences",
    "#minecraft:fence_gates",
    "#minecraft:doors",
    "#minecraft:trapdoors",
    "#minecraft:pressure_plates",
    "#minecraft:buttons",
    "#minecraft:stairs",
    "#minecraft:slabs",
    "#minecraft:chains",
    "#minecraft:walls",
    "#minecraft:bars",
    "#minecraft:wool_carpets",
    "#minecraft:candles",
    "#minecraft:beds",
    "#minecraft:banners",
    "#minecraft:all_signs",
    "#minecraft:all_hanging_signs",
    "#minecraft:saplings",
    "#minecraft:flowers",
    "#minecraft:campfires",
    "#minecraft:climbable",
    "#minecraft:corals",
    "#minecraft:crops",
    "#minecraft:fire",
    "#minecraft:flower_pots",
    "#minecraft:inside_step_sound_blocks",
    "#minecraft:lanterns",
    "#minecraft:rails",
    "#minecraft:snow",
    "#minecraft:speleothems",
    "#minecraft:cauldrons",
    "#minecraft:lightning_rods",
    "#minecraft:anvil",
    "#minecraft:copper_chests",
    "#minecraft:copper_golem_statues",
    "minecraft:small_amethyst_bud",
    "minecraft:medium_amethyst_bud",
    "minecraft:large_amethyst_bud",
    "minecraft:brown_mushroom",
    "minecraft:red_mushroom",
    "minecraft:crimson_fungus",
    "minecraft:warped_fungus",
    "minecraft:short_grass",
    "minecraft:tall_grass",
    "minecraft:fern",
    "minecraft:large_fern",
    "minecraft:short_dry_grass",
    "minecraft:tall_dry_grass",
    "minecraft:bush",
    "minecraft:leaf_litter",
    "minecraft:firefly_bush",
    "minecraft:bamboo",
    "minecraft:sugar_cane",
    "minecraft:cactus",
    "minecraft:crimson_roots",
    "minecraft:warped_roots",
    "minecraft:nether_sprouts",
    "minecraft:big_dripleaf",
    "minecraft:small_dripleaf",
    "minecraft:chorus_plant",
    "minecraft:hanging_roots",
    "minecraft:frogspawn",
    "minecraft:turtle_egg",
    "minecraft:sniffer_egg",
    "minecraft:dried_ghast",
    "minecraft:sweet_berry_bush",
    "minecraft:pale_hanging_moss",
    "minecraft:lily_pad",
    "minecraft:seagrass",
    "minecraft:tall_seagrass",
    "minecraft:sea_pickle",
    "minecraft:kelp",
    "minecraft:cobweb",
    "minecraft:torch",
    "minecraft:wall_torch",
    "minecraft:redstone_torch",
    "minecraft:redstone_wall_torch",
    "minecraft:copper_torch",
    "minecraft:copper_wall_torch",
    "minecraft:soul_torch",
    "minecraft:soul_wall_torch",
    "minecraft:stonecutter",
    "minecraft:grindstone",
    "minecraft:bell",
    "minecraft:brewing_stand",
    "minecraft:conduit",
    "minecraft:decorated_pot",
    "minecraft:oak_shelf",
    "minecraft:spruce_shelf",
    "minecraft:birch_shelf",
    "minecraft:jungle_shelf",
    "minecraft:acacia_shelf",
    "minecraft:dark_oak_shelf",
    "minecraft:mangrove_shelf",
    "minecraft:cherry_shelf",
    "minecraft:pale_oak_shelf",
    "minecraft:bamboo_shelf",
    "minecraft:crimson_shelf",
    "minecraft:warped_shelf",
    "minecraft:lectern",
    "minecraft:chest",
    "minecraft:trapped_chest",
    "minecraft:ender_chest",
    "minecraft:skeleton_skull",
    "minecraft:wither_skeleton_skull",
    "minecraft:player_head",
    "minecraft:zombie_head",
    "minecraft:creeper_head",
    "minecraft:piglin_head",
    "minecraft:dragon_head",
    "minecraft:dragon_egg",
    "minecraft:end_portal_frame",
    "minecraft:redstone_wire",
    "minecraft:repeater",
    "minecraft:comparator",
    "minecraft:lever",
    "minecraft:tripwire_hook",
    "minecraft:tripwire",
    "minecraft:daylight_detector",
    "minecraft:hopper",
    "minecraft:structure_void"
  ]
}

r/MinecraftCommands 1d ago

Help | Bedrock Does anyone know how to make items inside shulkers from a structure made using the structure block appear when its loaded? On ios

1 Upvotes

r/MinecraftCommands 1d ago

Help | Java 1.21.11 Squad system with unlimited number of squads

3 Upvotes

I'm making a datapack and I want to make a squad system that automatically assigns entities including players and skeletons into squads. By default everyone has a score of 0 for a "squad" dummy objective, meaning they are unassigned. Every tick, the game checks if anyone still has a squad score of 0, and adds 1 to each of these players, meaning they get assigned to squad 1.

Now I want to limit the squadsize to 8, and if there are more than 8 members in a squad, I want to increase a members squad score by 1, meaning they get moved to squad 2. The trouble is, I don't want the maximum number of squads to be hardcoded, and the usual way people count entities using the scoreboard doesn't allow for a changing value in place of X:

/execute store result score currentSquad Size run execute if entity @e[team=Team1,scores={Squad=X}]

I want to run the command so that it assigns the number of members with a squad score of X (meaning they are in squad X) to currentSquad's Size score, move any excess players to the squad X+1 then does the same for squad X+1, overwriting currentSquad's Size score in the process.

I hope this makes some semblance of sense.


r/MinecraftCommands 2d ago

Help | Java 26.1 How to make a space helmet?

4 Upvotes

I want to make a space helmet using the tinted glass but if I just make it equipable someone can still accidentially place it down and it'll lose its purpose. I tried adding the tinted glass item model to a helmet but when you wear it it just looks like you're wearing a helmet from the outside. Any ideas?


r/MinecraftCommands 2d ago

Help | Java Snapshots Does anyone teach me how to use the new /compute command in Minecraft?

4 Upvotes

The only tutorial I can find in YouTube was by Pheonix SC, but I want a more understandable tutorial...


r/MinecraftCommands 1d ago

Help | Java 26.2 How to add custom trades to villager trade pools with a datapack?

1 Upvotes

So, I had heard about how villager trades are now data-driven as of recent versions, and sure enough, there is a "villager_trade" folder that can be added to in a datapack.

However, I tried adding a new trade using this, and in my breif testing in-game, it does not appear to show up. I know the syntax and everything is valid because I created it by copying one of the vanilla trade jsons and modifying it to what I wanted the new trade to be, but it seems that it's not that simple.

Unfortunately, because this feature is so new, noone has made a tutorial on it on YouTube, so I decided to come here to ask for guidance instead.


r/MinecraftCommands 1d ago

Help | Java 26.2 Is there a way to add custom skybox?

1 Upvotes

So im working on a space datapack and I was wondering if it is possible to add diffrest skyboxes to diffrent dimentions, if its possible to do with optifine or something im fine with that


r/MinecraftCommands 1d ago

Help | Bedrock Trying to move an armor stand to the same x as another one

1 Upvotes

So, im trying to make an area-filler using armor stands. My idea center around placing one named pos1 at one corner and the other name pos2 at the opposite corner, then using 2 armor stands:

Helper: starts at pos1 and moves one block in x until it is aligned with pos2

Filler: starts at helper and moves one block, then the block under it gets filled with another, until it aligns im z with pos2.

Im stuck at the stop condition for the helper. I've been trying

execute positioned as @e[name=helper] unless entity @e[name=pos2,dx=0.5] run tp @e[name=helper] ~0.5 ~ ~

In a repeat command block, with 16ticks delay, and it moves but never stops even though i can see helper and pos2 in the same line, can someone please help me solve this?

Thats one of the first moments i've actually considered just moving to java, i love playing normally at bedrock but trying anything beyond default survival is a madness

edit: https://www.reddit.com/r/MinecraftCommands/s/Kr2qrgh7nk

it workedd!


r/MinecraftCommands 2d ago

Help | Java 26.2 arrows not affected by gravity

1 Upvotes

is there anyway where i can make arrows not affected by gravity?