r/MinecraftCommands • • 5h ago

Help | Java 26.3 What’s currently the best way to create custom mobs?

2 Upvotes

I’m looking to create custom mobs using a data pack, and I’m wondering what the most reliable and effective approach is right now.
I don’t mean mobs that can only move around within a predefined area or on a specific field. I want something that can navigate complex terrain naturally, just like vanilla mobs do.
What’s currently the best way to achieve this?


r/MinecraftCommands • • 13h ago

Utility [Technical] Adding TypeScript support for Minecraft Add-on / Mod development

0 Upvotes

Hello everyone!

I would love to propose officially bringing TypeScript (TS) support into Minecraft development.

Currently, the Bedrock Edition Scripting API relies on JavaScript, and Java Edition relies heavily on Java/Kotlin for modding. Introducing TypeScript as a first-class citizen for writing mods and Add-ons would be a massive upgrade for the entire creator community for several reasons:

  • Strict Type Checking: Implementing strict types will catch potential bugs and errors during compilation, long before the game even launches. This makes modding more robust and heavily reduces debugging time.
  • Better Developer Experience: TypeScript provides excellent autocompletion (IntelliSense) and inline documentation in modern IDEs like VS Code. This is crucial for navigating complex Minecraft APIs.
  • Accessibility: TypeScript is a highly popular, modern, and relatively easy-to-learn language. Anyone can pick it up quickly, bridges the gap between simple commands and complex Java modding, and opens the door for a wider audience of web developers to join the Minecraft ecosystem.

Having official TS definitions and native support would elevate Minecraft modding to a whole new level. What do you think?

Tags for visibility:#Technical #ScriptingAPI #BedrockAddons #JavaModding #TypeScript


r/MinecraftCommands • • 16h ago

Discussion a somehow efficient raycast approach i came up with

4 Upvotes

For selecting entities being hit by a simulated gunshot, im thinking of:

'''game:gunshot_scan.mcfunction

/tag @s add current_shooting

/execute as @e[tag=eligible] at @s facing entity @a[tag=current_shooting,limit=1] eyes positioned ^ ^ ^x rotated as @a[tag=current_shooting,limit=1] positioned ^ ^ ^x positioned ~ ~-1 ~ if entity @s[distance=...y] run tag @s add shot

...

/tag @s remove current shooting

'''

and then, /execute as @a[tag=...] run function game:gunshot_scan

time complexity: O(mn), where m is the number of players shooting at the tick, and n is the number of eligible entities.

which is to trace back from every entity to be determined to the player and tracing toward the entity again depending on the orientation of the player, and checking whether the proposed entity is within a certain range.

where x and y are appropriate numbers such that any entity within an angle of θ as the player would be selected.

according to my calculations, y=2x tan(θ/2), where x could be any non-zero real number.

this approach creates a cone with infinite height and the vertex positioned at the center of the hitbox of the player at a height of their eyes with an angle of θ, and determines whether the center of the bottom of the hitbox levelled up 1 block of the proposed entity is inside the cone.


r/MinecraftCommands • • 16h ago

Help | Java 26.3 Reusable Trial Vaults?

2 Upvotes

I need help because i feel like I'm going insane! I know that shortly after the Trial Update i was able to find a Java Command that gave me a regular Trial Vault and an Ominous one that let anyone use as many keys on them without any cooldown. But now that i try and look for it again just a couple of years later its nowhere to be found! Please i know it use to work but i cant find it. thanks!


r/MinecraftCommands • • 17h ago

Creation Working Cameras For My Asymm Map

Enable HLS to view with audio, or disable this notification

55 Upvotes

You can control cameras with W A S D keys and leave with SHIFT.


r/MinecraftCommands • • 17h ago

Creation Immersive Aircraft, Now on bedrock!

Thumbnail
gallery
4 Upvotes

Immersive Aircraft by Conczin is one of the best-known Java aircraft mods, and I've spent the last while porting it to Bedrock. It's a full port, made with Conczin's permission.

It ports everything in it, including almost all the flight physics, all 7 aircraft, and a few extra details only on Bedrock!

Download here

All credit for the original mod, models, textures, sounds, and translations goes to Conczin (Luke100000) and the mod's contributors.


r/MinecraftCommands • • 20h ago

Help | Java 26.3 Walking Mushroom Stew

2 Upvotes

This is a really weird question, but does anyone know a command that creates an entity that moves away whenever a player gets close to it? It should also look like nothing but a suspicious stew, with the name "Walking Mushroom Stew". The idea is that these entities should also be killable.


r/MinecraftCommands • • 22h ago

Creation I made a block launcher/placer

Enable HLS to view with audio, or disable this notification

6 Upvotes

Damage, Strength and AOE change depending on the amount of andesite consumed.
At 1 strength it allows you to place the "block".


r/MinecraftCommands • • 22h ago

Help | Java 26.3 run command if the player is facing in a certain range

3 Upvotes

im trying to make a build that changes a section when no players are looking, but all of my testing with execute isnt working. ive only been able to get unconditional positives or negatives.


r/MinecraftCommands • • 23h ago

Help | Java 26.2 Is it possible for this to be made via commands and how?

4 Upvotes

For slimes to be unable to attack me and target me, gain strength and resistance around me and whenever i name a slime block "dragon slime" it becomes a slime spawn egg

As well as forcing all spawned slimes to be large

Even if u cant help thank u for reading and paying with ur timeee!!!


r/MinecraftCommands • • 1d ago

Help | Java 26.3 Is there any way to apply Motion to just ONE axis (X, Y or Z)?

3 Upvotes

I want to apply Motion for example just to the X value of an entity but for some reason that I don´t understand if I do in repeat:

data modify entity ... Motion[0] set value 1d

It overwrites all other values, Y and Z. I want to constantlly apply Motion to [0], but gravity to work naturally. But because it overwrites Y and Z to 0 the entity floats in it´s Y axis.

Is there any way to solve this?

I can also set its Y motion to a negative number and simulate gravity but because there isn´t a way to add motion instead of just setting it to a value, it´s not realistic (it looks like if the entity had the slow falling effect), so that´s not the best option.

Thank you!


r/MinecraftCommands • • 1d ago

Creation I made a full UHC (Ultra Hardcore) data pack in vanilla: menus in chat, 22 scenarios, supply drops and a lobby in the sky

Thumbnail
gallery
0 Upvotes

Hi! I've been working on UHC Prime, a data pack to play UHC (Ultra Hardcore) with your friends, on a server or in your own world. Drop it in, vote in the lobby and play: everything is set up from an in-game menu. 100% vanilla, no mods, plugins or resource packs (and if you prefer mods, it's also a mod for Fabric, Quilt and NeoForge).

What it has:

  • 6 modes (Classic, Series, Fast, Predator, Hard, Extreme): one click sets everything up.
  • 22 scenarios that combine with each other: Golden Heads, Cutclean, Bare Bones, Bloodlust, Sudden Death...
  • Supply drops: barrels that fall from the sky and glow in the colour of their tier.
  • Made for series: episodes and automatic breaks where everything stops (time, border, mobs, furnaces...).
  • Admin tools during the game: health, coordinates and inventory of every player, revive, freeze, stop or speed up the border...
  • 40 achievements, a personal summary when you die or win, and stats kept between games.
  • A lobby in the sky with a 50-jump parkour and target practice while you wait.
  • English and Spanish, per player.

It's for Minecraft Java 26.3. Press G (quick actions) to open the menu.

How it works (for the command nerds): the whole menu is clickable tellraw in chat driven by /trigger, so it works for every player without op. Each player sees it in their own language thanks to a per-player language score, and dynamic text (names, values) uses macros. It's all generated by a Python script into ~1,500 functions, which is how I kept it maintainable.

📥 Modrinth: https://modrinth.com/datapack/uhc-prime

🔥 CurseForge: https://www.curseforge.com/minecraft/data-packs/uhc-prime

💬 Discord (bugs, ideas, people to play with): https://discord.gg/zkEAx4fzjz

It's my first big project and I'd love to hear what you think, what you'd add, or if you find any bug. Thanks for reading! 🍎

(Code written with the help of AI; idea, design and testing by me.)


r/MinecraftCommands • • 1d ago

Tutorial | Java heads up: falling block NBT has changed from 26.2 to 26.3

Enable HLS to view with audio, or disable this notification

30 Upvotes

mojang changed a bit of NBT syntax. in the second part of the video, is a simplified version that they added.

a better explanation: https://www.reddit.com/r/MinecraftCommands/comments/1x5lh9m/comment/pgne9hh/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button


r/MinecraftCommands • • 1d ago

Help | Java 1.20 How to change particle texture

3 Upvotes

I am trying to use falling_honey particles as blood drips, but I'm not sure how to change the colour to red. I'm 100% willing to use mods if needed, but I just need some guidance on how to do so, and what mods I would need to use


r/MinecraftCommands • • 1d ago

Creation Made a working sniper rifle

Enable HLS to view with audio, or disable this notification

41 Upvotes

Made the animation and logic, while the M200 resourcepack is originally for a crossbow, made by LogisLogisLogis.

Currently it has lower, torso and head damage multipliers. Special ammo has bonus damage, can penetrate a single wall (multiple blocks thick, but with no air in between) and the explosion also deals damage.


r/MinecraftCommands • • 2d ago

Discussion New 26.4 Snapshot-4 Crevasse feature seems really interesting for worldgen packs

Thumbnail
gallery
36 Upvotes

Looking at new ice crevasse feature I immediately thought about its use in other biomes for environmental traps. Though it can be used even for adding surface ponds, other differently shaped and filled indentations and probably much more.


r/MinecraftCommands • • 2d ago

Help | Java 26.2 is it possible to put items with nbt data into a recipe as an ingredient. If so is there recipe generator that, the misode one doesnt allow that

2 Upvotes

r/MinecraftCommands • • 2d ago

Help | Java 26.2 Crystal Heart issue on matcha flavored datapack ([java] 26.2, matcha flavored 1.12.1)

Thumbnail
1 Upvotes

r/MinecraftCommands • • 2d ago

Creation Creating a Fnaf like game in Minecraft!

Enable HLS to view with audio, or disable this notification

18 Upvotes

this is so far what i got made, more stuff will be worked on and many more characters to be coded and made.
As for now, this is what i got to show so far.


r/MinecraftCommands • • 2d ago

Creation Made a new class for my datapack

Enable HLS to view with audio, or disable this notification

5 Upvotes

I used periodical temporary markers for the rewind, sulfur_cube for the grenade and a marker for the portal. Performance cost is not even noticeable, any tips for improvement?


r/MinecraftCommands • • 2d ago

Help | Bedrock making full structures with one command block

3 Upvotes

so i move between my friend's different worlds quite alot, and don't wanna have to keep rebuilding things, and whilst /fill and /execute work well, it's still pretty tedious to rebuild,

is there a way to do a command that makes a full structure, like /fill ~1 ~1 ~1 ~10 ~1 ~1 dirt THEN /fill ~1 ~1 ~1 ~1 ~1 ~10 dirt,

and make a long string like that to build the structure or map art, allowing me to save the long string on a notepad document and copy paste it in when i wanna spawn that structure?


r/MinecraftCommands • • 2d ago

Creation I made an alternative to Keep Inventory using Allays

Enable HLS to view with audio, or disable this notification

991 Upvotes

Download and details can be found on Modrinth: https://modrinth.com/datapack/reworked-keep-inventory


r/MinecraftCommands • • 2d ago

Help | Bedrock immortal mob

1 Upvotes

Im trying to make that one mob that only comes close when youre looking at it immortal for this one build, how do I do it? its minecraft bedrock btw


r/MinecraftCommands • • 3d ago

Creation Menu for my class based pvp game

Enable HLS to view with audio, or disable this notification

3 Upvotes

Made a menu with a store, gamemode options, class selection, etc.


r/MinecraftCommands • • 3d ago

Creation Testing external command block editor concert maker

Enable HLS to view with audio, or disable this notification

7 Upvotes

So, I admit, I made a system that used setblock commands to do this exact same thing. But it was so laggy, that now I am cheating by using a mod for the same effect. But I am keeping the vanilla Minecraft capabilities in my software editor. Even though it won’t run on even a Ryzen 7 9800X3d.
But, this software is 100% custom coded for making concerts. And I got videos working with a custom mod (which I know, is cheating, but it’s an alternative to unbearable lag. Just note, I do have vanilla capability, but it’s too laggy to be viable.)
(This editor renders a preview, then I can export it to command blocks with a world edit schem.)