HomeJavaDatapacksMascom (Mass Commands)
Mascom (Mass Commands)
DatapacksJava

Mascom (Mass Commands)

by Flyrr · on Modrinth

Which build do you need?

This mod ships a separate file for every mod loader and every version of the game. Pick both, then download — the wrong build installs fine and then does nothing in the game.

Mod loader

Minecraft version

⬇ Download for 1.20.4–1.21.4 · Data pack⬇ Download for 1.20.4–1.21.4 · Fabric⬇ Download for 1.20.4–1.21.4 · Forge⬇ Download for 1.20.4–1.21.4 · NeoForge⬇ Download for 1.20.4–1.21.4 · Quilt
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.

Ever wanted to run one command multiple times but at once and without spamming the up-arrow and enter-key? This datapack makes it possible, easier than ever before!

How to use

Just run

function mascom:run {c:"<command>",i:"<iterations>"}

and replace with the desired command and with how often you want the command to be run, it's easy as that :)

Examples

function mascom:run {c:"summon sheep ~ ~ ~",i:"100"}

Summons 100 sheep at the players position

function mascom:run {c:"kill @e[type=!player]",i:"2"}

Kills everything but the player, twice. This instantly gets rid of any items the killed mobs might drop.
NOTE: Running kill @e will break most other datapacks

function mascom:run {c:"execute if predicate {'condition':'minecraft:random_chance','chance':0.1} run say There's a 10% chance of this message being displayed!",i:"100"} 

Of course you can also use this with conditional commands like execute if. You could use it to test probability-based events!

Interested in making your own datapacks?

I am one of the founders of Datapack Hub, the perfect discord server for helping you do just that! Whether you are just getting started or have advanced questions, with ~2500 members and our team of verified helpers, we got you covered!
(This is a passion project and I am not getting paid for promotion)
Click here to join the Datapack Hub Discord server!

Quick facts

Install steps are the general flow for this file type — see the MC Java Mods guides for the full walkthrough.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more