• 3/6/25 8:50 am
- 482 views • 1 today
- save_alt 13 downloads
- Compatibility
- Minecraft 1.19
- to version
- Minecraft 1.21
- Changes include
- Functions
225
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 <command> with the desired command and <iterations> 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 packs? 👀
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 don't get paid anything for promoting this :))

This datapack makes it possible, easier than ever before!
How to use
Just run
/function mascom:run {c:"<command>",i:"<iterations>"}
and replace <command> with the desired command and <iterations> 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 packs? 👀
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 don't get paid anything for promoting this :))

More like this
6551838
119


Have something to say?