Skip to content

thecolonel63/Java-Command-Stacker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java-Command-Stacker

A simple command stacker for 1.17 and up.

Building:

  1. Download the project.
  2. Run "gradlew shadowJar" inside the root of the project.
  3. The completed jarfile will appear in "app/build/libs".

Credit to https://github.com/etiennestuder/java-ordered-properties for a simple way of making the properties in the config file ordered.

file menu image

To start, this can read .mcfunction files to add multiple commands at a time. You can access this via File -> Open .mcfunction file

This contains a few configuration options:

options menu image

"Disable wrapping /summon command inside spawn egg" - Disables the built in wrapping of the /summon command for a more generalized use.

"Keep stack on completion instead of removing" - Stops the command tower from clearing itself away - Useful if you use setblock commands on the tower blocks themselves, i.e for use of setting the tower blocks to a repeating - chain command block tower.

"Hide warning about command being longer than 256 characters" - Hides the warning message that shows up when the command is too long for the chat.

"Hide warning about command being longer than max packet size in Multiplayer" - Hides the warning of an item that if given directly could inventory ban the player.

The toolbar also has "Item Details" where you can configure the generated item:

item details menu image

"Item Name" - Changes the Item Name of the spawn egg.

"Item Type" - Changes the type of spawn egg to be generated.

"Item Lore" - Changes the lore of the item generated.

Note that Item Name, Type, and Lore can all contain color codes, and properly handle " and ' characters.

The Item Lore has been programmed to automatically convert \n into the proper format as well, although color codes must be repeated for every new line.

summon details menu image

The "Summon Command Details" allow you to change the position of the stack when "Disable wrapping /summon command inside spawn egg" is checked.

Every configurable change previously mentioned is automatically saved to "command_stacker.properties" once the program is closed, and reloaded once the program is opened again.

example command list image

The bottom bar contains an input for commands, as well as buttons to either copy the generated command or clear the whole list.

Once a command is added to the list, it can be moved up or down, copied, removed, or edited.

Command edit popout: command edit popout image

Once you are done modifying the list, you can save it by clicking the "Copy to Clipboard" button: command copied to clipboard image

Warning for /give command longer than 256 characters: command longer than 256 characters image

Warning for /give command longer than maximum packet size: command longer than max packet size image

About

A simple command stacker for 1.17 and up.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages