HeadBash Commands

Quick rating

HeadBash Commands

No reviews yet

Various command utilities, including /bash

Mod Loaders
NeoForge
Minecraft

Community voices

Reviews

Versions
Loading versions…
Match includes

Click once to include, again to exclude, again to clear

Rating Any
Any 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0
Min
Max
Play Status
Reviews
Time Played
hrs+
Verified developers only
Has developer response
List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Delete this review?

This removes your review from the project. You can write a new review after.

Review submitted for moderation

Your review has been sent to moderators, who will check that it meets our guidelines before it appears publicly.

No reviews yet. Be the first to review this project!

Get it on

Available Platforms

Compatibility

Supported Environments

Dev Environment
Client Required
Server Required

About

Project Details

Type
Mod
License
MIT License
Latest Version
headbash-1.0.0.jar
Authors
CurseForge
Modrinth

For authors

Embed Badge

If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.

Custom banner text
ModDex rating badge preview

Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.

Identifiers

Platform IDs

CurseForge ID
Modrinth ID

Resources

External Links

Source Issues Wiki Discord

About

Description

HeadBash Commands

(So named because I had to bash my head on my computer to get some of this stuff to work.)

HeadBash Commands is a small mod that adds a few simple command utilities. In addition to basic commands such as /save and /load, the main feature of this mod is the /bash command, which allows you to do limited in-command scripting in a format similar to /execute. The permission level of each command is configurable, and the /bash command doesn't natively allow players to bypass permission restrictions like /execute would.

/bash

Formatted similar to /execute, with the following options:

let <var> eq <value> - Replace all future occurrences of $<var> with <value>. Only supports numeric types.

let <var> eq (add|sub|mul|div|pow|log) <val_a> <val_b> - Same as above, but performs the specified calculation and assigns the result to $<var>.

let <var> eq int <value> - Same as above, but converts the number to an integer. Useful for floor operations and pretty-print.

for <var> in range <start> <stop> <step> - Forks the command into multiple instances with let <var> eq <value> for each step in the for-loop. Ordering is not guaranteed, but is generally consistent.

(if|unless) <val_a> (eq|ne|gt|ge|lt|le) <val_b> - The command is continued only if/unless the specified comparison condition is true. Otherwise, the branch stops.

delay <duration> - Suspends execution of the current branch for <duration> ticks.

run <cmd> - Runs another command. Works similarly to /execute's run option, but doesn't support autocomplete to allow for lazy numeric parsing (waiting for previous options to be processed before parsing the command), rather than having the command fail with errors like "$i is not a double".

/save

Format: /save <path> <pos1> <pos2> [noentities]

Saves the area as a structure block would to <path>.nbt.

/load

Format: /load <path> <pos>

Loads the specified structure (from <path>.nbt) at <pos>.

HeadBash Commands

(So named because I had to bash my head on my computer to get some of this stuff to work.)

HeadBash Commands is a small mod that adds a few simple command utilities. In addition to basic commands such as /save and /load, the main feature of this mod is the /bash command, which allows you to do limited in-command scripting in a format similar to /execute. The permission level of each command is configurable, and the /bash command doesn't natively allow players to bypass permission restrictions like /execute would.

/bash

Formatted similar to /execute, with the following options:

let <var> eq <value> - Replace all future occurrences of $<var> with <value>. Only supports numeric types.

let <var> eq (add|sub|mul|div|pow|log) <val_a> <val_b> - Same as above, but performs the specified calculation and assigns the result to $<var>.

let <var> eq int <value> - Same as above, but converts the number to an integer. Useful for floor operations and pretty-print.

for <var> in range <start> <stop> <step> - Forks the command into multiple instances with let <var> eq <value> for each step in the for-loop. Ordering is not guaranteed, but is generally consistent.

(if|unless) <val_a> (eq|ne|gt|ge|lt|le) <val_b> - The command is continued only if/unless the specified comparison condition is true. Otherwise, the branch stops.

delay <duration> - Suspends execution of the current branch for <duration> ticks.

run <cmd> - Runs another command. Works similarly to /execute's run option, but doesn't support autocomplete to allow for lazy numeric parsing (waiting for previous options to be processed before parsing the command), rather than having the command fail with errors like "$i is not a double".

/save

Format: /save <path> <pos1> <pos2> [noentities]

Saves the area as a structure block would to <path>.nbt.

/load

Format: /load <path> <pos>

Loads the specified structure (from <path>.nbt) at <pos>.

Screenshots

Gallery

Versions

Files

Relations

Project Relations

More like this

Similar Mods

Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.

On ModDex

Community snapshot

0
Ratings
0
Followers
0
In stacks

By the numbers

Statistics

<1,000
Total Downloads
CurseForge
<1,000
Modrinth
<1,000
Last Updated
CurseForge
Created
CurseForge
Modrinth
Last synced
When ModDex last fetched this project from CurseForge or Modrinth. Every project is re-checked on a schedule, and any project that ships a new file is synced automatically within hours of the release.
New file updates sync automatically
How syncing works