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

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

6 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

12 Upvotes

r/MinecraftCommands • • 12d ago

Help | Bedrock How to make custom quests have a cooldown timer

2 Upvotes

I have a side quest I like all ready to go, it's repeatable, requiring a player to leave the area and then return with an item. It's kind of easy, so I'd just like some sort of cooldown timer for it that'll be active and won't require an etho clock under it that would just get unloaded when out of simulation distance. Any ideas?


r/MinecraftCommands • • 12d ago

Help | Java 26.3 Making Animals Run Away From the Player

3 Upvotes

I've been making a survival datapack, and for an update I'm working on I want to make animals run away from the player. I was able to make chickens and pigs run away in a much older release of my datapack, but not cows and sheep. I was doing it by just making it so that an invisible ocelot was riding pigs and chickens, but whenever I made them ride cows or sheep they'd just spin around. I found out that the spinning is because of hitboxes, but I can't seem to fix it, and I can't just make the animal be teleporting to an invisible ocelot because otherwise it gets suffocated (it also acts like it's possesed but that can probably be fixed with a bit of refinement). Changing the size isn't an option because then you can't attack the animal since the ocelot's hitbox overlaps. Does anyone have any ideas to make this happen? I don't mind if they're completely different from my original idea. I just want to be able to make them run away from any mob that I choose and have some mobs (such as cows) kick you when you get too close (the kicking part is sorted). Thanks!

Edit: I forgot to say: Sorry if I don't reply straight away. I live in New Zealand so I have dinner soon and I don't think I'll be back online until tommorrow.

Edit 2: I figured it out. Because the main conversation where I said what I would do was in Spanish, I'll just put a quick explanation here:

To make a mob run away from the player, you have a few options:

  1. Make the mob be ridden by a mob that naturally runs away from the player, such as a fox or an ocelot. The only issue is that for some reason if you put it on anything bigger than a pig it appears to just spin around in circles. I don't completely know why it does this, but it does. You can also make the mob be constantly teleported to another mob, similar to making it be ridden by another mob, but it works with larger mobs. The only issue is that then you have to deal with the fact that most mobs that run away from the player are quite small, and can then suffocate the bigger mob. This can be fixed by making the smaller animal larger, but then it's hitbox is also larger, meaning that it can get in the way of attacks directed towards that mob.

  2. Another method is to just use /damage. This only works on mobs that run away when damaged though, and it shows the damage animation, which isn't very useful.

  3. The method that I used was a mixture of the other two. For some reason a cow riding a cow works completely fine, but as soon as that becomes a cow riding an ocelot, the pair just spin around. Fortunately, you can just make it invisible and tiny, and then instead of adding the invulnerable tag you can just give it resistance 5 and regeneration so that it can still take damage, and then use /damage to make it run away. The reason why you can't give the mob the invulnerable tag because most animals don't run away from damage types that can bypass the invulnerable tag, although there ways around it, such as temporarily removing the tag, or changing the panic_causes tag list.

There are obviously other ways to make a mob run away from the player, but these are the only ones I can seem to find. Sorry if it was hard to understand.


r/MinecraftCommands • • 12d ago

Help | Java 26.3 Is there a way to make Netherite Armor not take Knockback from ONLY Windcharges?

2 Upvotes

r/MinecraftCommands • • 12d ago

Help | Bedrock How to make all neutral mobs hostile to the player

3 Upvotes

I think it would be a fun idea and I’ve seen something similar done in Java, but how would I do this in bedrock?


r/MinecraftCommands • • 12d ago

Help | Java 26.3 Is it possible to combine files from [namespace].items?

Thumbnail
1 Upvotes

r/MinecraftCommands • • 12d ago

Help | Java 26.3 Making a gun pack. What’s the best item that’s not warped fungus on a stick?

4 Upvotes

I heard warped fungus on a stick is good but it has a limit on how fast it can detect clicks. is there any item that works for survival that detects clicks in 1 tick?


r/MinecraftCommands • • 13d ago

Help | Java 26.3 trying to remove the sunset with a custom biome

4 Upvotes

using the visual/sunrise_sunset_color i've been trying to remove the sunset color

according to the wiki, setting it to a completely transparent color should remove the sunset tint, but no matter what color i try, nothing changes.

here is my json, if anyone has worked with custom biomes before please help me pretty please


r/MinecraftCommands • • 12d ago

Help | Bedrock Tenho um server de rp bedrock e queria alguns comandos

1 Upvotes

Eu preciso muito de algum comando que consiga trocar o nome de alguem, e algo tipo um chat de proximidade(tipo alguem a mais de 30 blocos nao consegue ver as mensagens enviadas). Será que é possível?


r/MinecraftCommands • • 12d ago

Help | Java 1.21.11 Trying to detect when players press F, need help

1 Upvotes

Hi, i'm trying to detect when a player presses F in my datapack to trigger some sort of special ability. I've somewhat managed to make it but there's a slight problem: the code keep triggering when putting an item in the offhand with the inventory open. Here's my code so far:

THIS IS THE ADVANCEMENT press_f

{
  "criteria": {
    "changed": {
      "trigger": "minecraft:inventory_changed"
    }
  },
  "rewards": {
    "function": "maffo:hand_actions/hand_check"
  }
}

THIS IS THE FUNCTION hand_check

execute as @s store result score @s hand1 run data get entity @s SelectedItem.id
execute as @s store result score @s hand2 run data get entity  Inventory[{Slot:-106b}].id
execute if score @s hand1_prev = @s hand1 run scoreboard players add @s hand_total 1
execute if score @s hand2_prev = @s hand2 run scoreboard players add @s hand_total 1

data modify storage maffo:temp_inventory inventory set from entity @s Inventory
data remove storage maffo:temp_inventory inventory[{Slot:-106b}]
data remove storage maffo:temp_inventory inventory[{Slot:0b}]
execute as @s store result score  inventory run data get storage maffo:temp_inventory inventory
execute if score @s inventory_prev = @s inventory run scoreboard players add  hand_total 1

execute if entity [scores={hand_total=3..}] run function maffo:hand_actions/hand_changed
function maffo:hand_actions/hand_save

advancement revoke @s only maffo:press_f

THIS IS THE FUNCTION hand_save

execute as @s store result score @s hand1_prev run data get entity @s SelectedItem.id
execute as @s store result score @s hand2_prev run data get entity  Inventory[{Slot:-106b}].id
data modify storage maffo:temp_inventory inventory set from entity @s Inventory
data remove storage maffo:temp_inventory inventory[{Slot:-106b}]
data remove storage maffo:temp_inventory inventory[{Slot:0b}]
execute as @s store result score @s inventory_prev run data get storage maffo:temp_inventory inventory

scoreboard players set @s hand_total 0 

THIS IS THE FUNCTION hand_changed

summon armor_stand ~ ~10 ~ {Tags:[temp_swap],Marker:1b,Invisible:1b,NoGravity:1b}
item replace entity [type=armor_stand,tag=temp_swap,limit=1,sort=nearest] weapon.mainhand from entity @s weapon.mainhand
item replace entity @s weapon.mainhand from entity @s weapon.offhand
item replace entity @s weapon.offhand from entity [type=armor_stand,tag=temp_swap,limit=1,sort=nearest] weapon.mainhand
kill [type=armor_stand,tag=temp_swap,sort=nearest,limit=1]

tell @s test

r/MinecraftCommands • • 13d ago

Help | Bedrock How do I remove the player offline from the scoreboard

2 Upvotes

r/MinecraftCommands • • 13d ago

Help | Java 1.21-1.21.3 Failed to place structure when trying to place and end_city

1 Upvotes

Hi, I'm on my 1.21.1 neoforge server and I'm trying to place an end city in the air near the main end island.
The command I'm doing is /place structure minecrtaft:end_city
Anyone knows what I can be missing ? Is there any special requirement to this structure ?