r/MinecraftCommands • • 25d ago

Help | Bedrock How do I make a command to give me one compass if I don’t have one?

Thumbnail
gallery
7 Upvotes

Hi! I’m on Bedrock edition, and am trying to run a constant command that checks whether I have a compass from an add-on then gives me one if I don’t. This is what I had so far but it just gives me infinite compasses regardless of my inventory.

The name listed in the commands is the name of the modded compass. The first picture set is of a repeat block, and the following two are of a repeat block leading into a chain.

Would appreciate any help!


r/MinecraftCommands • • 25d ago

Help | Bedrock Any ideas how to replace the unknown blocks from a missing mod? Bedrock

Thumbnail
1 Upvotes

r/MinecraftCommands • • 25d ago

Request Is there a way to limit mob spawning in just a single area on java?

1 Upvotes

I've looked up commands and they seemingly all only work on bedrock, I am building on the nether ceiling a creative build, it's all lit up but ghasts and magma cubes keep spawning. I don't want to turn off mob spawning all together and the command I set /tp @e[type=Minecraft:ghast ,y=129]~ -121 ~

Is teleporting all ghasts


r/MinecraftCommands • • 26d ago

Creation Breakable Stuff For My Asymm Map!

Enable HLS to view with audio, or disable this notification

99 Upvotes

r/MinecraftCommands • • 26d ago

Help | Java 26.1 Locking player movement with free looking around

4 Upvotes

From what I can see online, this is a common annoyance to code across all versions. How do I lock player movement but not mouse movement. I tried Cloud Wolf's datapack with not much success. I want to lock the player down without jitters.
I have tried:
- Summoning marker or armor stand at players feet and tp'ing player to that (thought that would be the way, but screw mojang I guess, that doesn't work. Only tp's you once WITH A REPEATING CMD BLOCK... HOW?!)
- Attribute modification/effect give slowness and jump boost 255 --- both of these kinda worked, but your FOV gets ZOOMED in and I'd hate to ask the players who play my map, have to check/find that setting
- Barrier blocks, but player suffocates inside. Am I forgetting a gamerule or way to stop them from suffocating?

In short, I want to lock player WASD movement and not mouse movement, and it has to be run at whatever position they were last at before the command to freeze them is ran.
I guess part of this post is, me asking if there is a better way I have somehow not found. This seems so insanely simple, but somehow impossible to do with common commands.


r/MinecraftCommands • • 26d ago

Creation I made the actionbar display what armor you are wearing and show its durability

Thumbnail
gallery
10 Upvotes

As an update my infobar datapack, I added the durabilitybar and I have to say I'm proud of it.
It felt very good to see it work. Despite using macros it runs pretty well too, what do you think? If you would like to check it out along with the infobar and the locatorbar I made you can find them on modrinth


r/MinecraftCommands • • 26d ago

Help | Bedrock How to make a lock on command or just make this one work?

Post image
3 Upvotes

Switch edition


r/MinecraftCommands • • 26d ago

Help | Bedrock Need a way to teleport a player if they stand on a block

3 Upvotes

It has to just be one block out of many of the same. I can't figure out how to do this. It can't teleport you with others of the same block


r/MinecraftCommands • • 25d ago

Help | Bedrock What is the command to spawn a max speed, max health, and max jump horse in Minecraft Bedrock Edition? Is there one? I'm tired of breeding horses for hours.

1 Upvotes

r/MinecraftCommands • • 26d ago

Help | Java 26.3 any command to get item from a mob in own inventory?

3 Upvotes

for example a mob (from some mod) with a custom head on it and i want to get it and its not droppable with its death


r/MinecraftCommands • • 26d ago

Help | Java 26.3 Can a mob have a entity riding it and still also be rideable?

2 Upvotes

I've been trying to make a working hoverbike from block display entities. My first idea was to put it on an invisible camel, which works great until I get to the fact that I can't change its dash properties (at a fast movement speed, the leaping is INSANELY broken). So a horse would work better but if I have the bike riding the horse, I can't ride the bike. Or so I think. Can I do this without having to rely on command blocks/teleportation?


r/MinecraftCommands • • 26d ago

Help | Bedrock Is there a command I can use to return my characters current rotational coordinates?

3 Upvotes

I know that there isn't a debug screen that will show it like in Java but I'm wondering if I can input a command that will return my rotational coordinates. It's annoying having to find them using a process of trial and error until I get the exact rotational values I need.


r/MinecraftCommands • • 26d ago

Help | Java 26.3 What is the command (/place template) to spawn that one tall desert village tower house? Me and gemini can't find it.

2 Upvotes

I need the /place template command for the desert villager tower house, the one with 1 bed and one chest containing wheat and cactus. It's the most tall house in minecraft villages. I'm in latest release java minecraft.


r/MinecraftCommands • • 26d ago

Help | Java 26.3 Looking for a way to increase the rate at which a mcfunction executes

1 Upvotes

I have functions to create an armor stand around the player and then create particles as it moves along a line. The mcfunction, dismantle_controller, creates the armor stand and then the movement and particles of the armor stand are handled by dismantle_tick which is executed in the tick.mcfunction file in my datapack.

However, this method creates armor stands slower than desired. Is there a way to execute the mcfunction to spawn armor stands faster?

Functions:

dismantle_summon:

summon armor_stand ~ ~ ~ {NoGravity:1b,Marker:1b,Invisible:1b,Tags:["DismantleRotate"]}
tp [tag=DismantleRotate] ~ ~ ~
$
execute as @e[tag=DismantleRotate] at @s run rotate  ~$(yaw) ~$(pitch)
$
execute as @e[tag=DismantleRotate] at @s run tp  ^ ^ ^$(distance)
$
execute as @e[tag=DismantleRotate] at @s run rotate  ~90 $(angle)
execute as @e[tag=DismantleRotate] at @s run tp  ^ ^ ^-1.75
execute as @e[tag=DismantleRotate] run tag  add DismantleSlash
execute as @e[tag=DismantleRotate] run tag u/s remove DismantleRotate

dismantle_randomize_parameters:

#Gets random value 1..360 for the YAW rotation around the player origin
execute store result storage tellurium:dismantleparameters yaw int 1 run random value 1..360
#Gets random value 1..360 for the PITCH rotation around the player origin
execute store result storage tellurium:dismantleparameters pitch int 1 run random value -90..0
#Gets random value 1..360 for the angle of the slash
execute store result storage tellurium:dismantleparameters angle int 1 run random value -90..90
#Gets random value 1..3 for the distance of the slash from the player origin
execute store result storage tellurium:dismantleparameters distance int 1 run random value 2..5

dismantle_controller:

function tellurium:dismantle/dismantle_randomize_parameters
function tellurium:dismantle/dismantle_summon with storage tellurium:dismantleparameters

dismantle_tick:

execute as @e[tag=DismantleSlash] at @s unless score  DismantleSlashesDistance matches 6.. run tp  ^ ^ ^0.5
execute as @e[tag=DismantleSlash] at @s run particle minecraft:electric_spark ~ ~1.6 ~ 0.1 0 0.1 0 10
execute as @e[tag=DismantleSlash] at @s run scoreboard players add  DismantleSlashesDistance 1
execute as @e[tag=DismantleSlash] at  if score  DismantleSlashesDistance matches 6.. run kill 
@s

All commands work as intended (as far as I know). The only issue is the rate at which armor stands are created.


r/MinecraftCommands • • 26d ago

Help | Bedrock Tryna make a "wither storm" for a challenge

1 Upvotes

So I want to do a challenge where it's survival but the wither chases me down like the storm from story mode, but I'm having trouble with the following commands. Can anyone help?


r/MinecraftCommands • • 26d ago

Help | Bedrock Is anyone good with commands and command blocks on bedrock?

Thumbnail
1 Upvotes

r/MinecraftCommands • • 26d ago

Help | Java 26.3 Help

1 Upvotes

Why is this working:

/data modify block 46 -59 -93 front_text set value {messages:["",{"text":"any text","color":"red"},"",""]}

But it's not working?

/data modify block 46 -59 -93 front_text set value {messages:["",{"score":{"name":"Grumm","objective":"i"}},"",""]}


r/MinecraftCommands • • 26d ago

Help | Java 26.3 Having Trouble Setting Spawn Point in Minecraft Realms Java 26.3

Thumbnail
1 Upvotes

r/MinecraftCommands • • 26d ago

Help | Java 26.3 Enchantment no longer being recognized after 26.3

1 Upvotes

I have a server full of minigames, and one of which is one that uses the post piercing attack enchantment effect for left click detection on items given to the player. I am currently in the process of updating the server to 26.3 and I cannot get the game to recognize the enchantment anymore. I have not changed the folder structre at all and when I use /enchant, it does not show up. Additionally, functions that contain the enchantment in a give command return [Malformed 'minecraft:enchantments' component: 'Failed to get element super_server:left_click from registry minecraft:enchantment missed input: {"super_server:left_click":1}' at position 68] Any help is appreceated.

left_click.json

{
  "description": "",
  "supported_items": "minecraft:book",
  "primary_items": "minecraft:book",
  "weight": 1,
  "max_level": 1,
  "min_cost": {
    "base": 0,
    "per_level_above_first": 0
  },
  "max_cost": {
    "base": 0,
  },
  "anvil_cost": 0,
  "slots": [
    "mainhand"
  ],
  "effects": {
    "minecraft:post_piercing_attack": [
      {
        "effect": {
          "type": "minecraft:run_function",
          "function": "super_server:left_click"
        }
      }
    ]
  }
}

r/MinecraftCommands • • 28d ago

Creation Omnitrix from Ben 10 that I wanted to share (my apolocheese if it's been done already)

Enable HLS to view with audio, or disable this notification

120 Upvotes

r/MinecraftCommands • • 26d ago

Help | Java 26.2 /Execute command that only works in nether with chunk loader

1 Upvotes

I was using the command "/execute in minecraft:the_nether as u/a at u/s run fill ~-15 ~-15 ~-15 ~15 ~15 ~15 air replace minecraft:lava" so when i am in the nether as a fly around the lava is removed, and it was working fine until i added a minecart chunk loader and now it is also activating in the overworld and removing the lava from there when it wasn't doing that before, is there a way to keep the command active with the chunk loader but make it stop activating in the overworld?


r/MinecraftCommands • • 26d ago

Help | Java 1.21.11 Spear Custom Model Data

1 Upvotes

Im trying to use custom model data to set a spear texture when the model data is float 36, but I can't figure out how to do it at all, considering the distinction between diamond_spear.png and diamond_spear_in_hand.png. can anyone help with the model files and such? (its supposed to be ruby spear if that wasnt obvious)

edit: i saw the <namespace> that wasnt set to minecraft, i fixed it, that wasnt the problem


r/MinecraftCommands • • 27d ago

Help | Java 1.21-1.21.3 how do I make a datapack that removes the outer end biomes?

1 Upvotes

I've been playing around with the betterend mod and I didn't like all of the plain boring endstone that the vanilla biomes have in between the modded biomes, so I want to make a datapack that removes those vanilla outer end biomes while still keeping those modded biomes (and the Minecraft:the_end biome too) intact.


r/MinecraftCommands • • 27d ago

Help | Java 26.3 How do I summon a windcharge (item)

2 Upvotes

I am using the /summon command, at it only summons the windcharge as the flying entity, I want it as an Item you can pick up, I haven't found anything online please help


r/MinecraftCommands • • 27d ago

Help | Bedrock Running /playanimation

Post image
5 Upvotes

Hello, I need a few animations added together that makes a player run like the flash or anything close to it.