Mascom (Mass Commands)
Ever wanted to execute a single command multiple times without repeatedly pressing the up arrow and Enter? With this datapack, it's incredibly simple!
Usage
To execute mass commands, simply use:
function mascom:run {c:"<command>",i:"<iterations>"}
Replace <command> with your desired command and <iterations> with how many times it should be executed. That's it!
Usage Examples
function mascom:run {c:"summon sheep ~ ~ ~",i:"100"}
This command instantly summons 100 sheep at the player's position.
function mascom:run {c:"kill @e[type=!player]",i:"2"}
Destroys all entities except the player, twice. This effectively cleans up items that might have dropped from killed mobs. Important: using kill @e may disrupt other datapacks.
function mascom:run {c:"execute if predicate {'condition':'minecraft:random_chance','chance':0.1} run say This message appears with 10% chance!",i:"100"}
The system works perfectly with conditional commands like execute if. Ideal for testing probability-based events!
[Video demonstration can be here]