This page will tell you everything to know about how to create a 1-Click for your home crafted modules. If you just want to implement a module in your world look here.

Tutorial made by SugarCaney

Getting MCEdit Edit

In order to create the 1-Click command, we use an MCEdit filter made by gentlegiantJGC. Making those commands by hand is way too complicated, takes too much time and is error prone. So why not use the simple way? In 1.9 it is possible to use Sparks' generator which will be able to make your commandblocks in the desired spiral, described in the GM4 standard.

If you haven't installed MCEdit yet, you can find the download links below. Make sure you use the MCEdit Unified version because the other version is still in alpha and has a lot of bugs. Download the version you need (32/64 bits Windows, Mac and Linux can be found as icons to the left) and start the installation.

Download link MCEdit Unified:

Getting the 1-Click filter Edit

To generate the command, we use the One Command Structure Spawner 2.0 made by xafonyz and edited by gentlegiantJGC (downloads below). The file you'll get is a .py-file (a script written in Python). To install the filter, go to the installation directory of MCEdit and open the folder stock-filters. This folder will contain all available filters. Just paste in the One Command Structure Spawner filter and you should be good to go.

Because Gamemode 4 modules are installed at bedrock level and the original filter wasn't able to do so relative to the command block, gentlegiantJGC has made a modified version of the filter that will allow you to do so (2nd download).

Also, 1.9 changed the way how riding entities are saved in the NBT tags. This results in your gentlegiant's command not working. To fix this, you can use the tool on this website: Once the command is converted, it works perfectly fine, in 1.9.

Download links:

Modify your contraption Edit

When your contraption will be spawned in by the command, you have to keep in mind that hoppers won't be updated when spawned in. Also, scoreboard objectives that are required need to be created first. To setup everything correctly, we make use of a specific property of the filter: redstone blocks will be placed last.

Make a setup section Edit

To execute all setup commands, make a little setup section in your contraption with all the setup commands required. These are:

  1. A /blockdata ~<X> ~<Y> ~<Z> {Items:[{id:minecraft:stone,Count:1b}]} command to activate the hopper clock (if you have one).
  2. All the commands you need to add the objectives.

Preparing for 1-Click Edit

Make sure all the setup blocks are touched by a redstone block (redstone blocks will be placed last and will result in all adjacent commands being executed) and that the blocks aren't touched by your fill-clock. Also, make sure your hopper clock doesn't contain any items. The item needed will be inserted by the /blockdata setup-command.

Generate the 1-Click Edit

  1. Close your Minecraft world. If you don't close your world before editing it with MCEdit, your world data might get corrupted.
  2. Open your world (Open... and select your level.dat file).
  3. Select the region you want to spawn in.
  4. Click on the coffee pot icon and select the One Command Structure Spawner 2.0 filter.
  5. Make sure you select "relative"-mode (if you use Sparks' version you can select "absolute Y in relative mode" to spawn the structure in on the Y-level you selected it).
  6. Hit filter.
  7. Now you should have one or more command blocks copied to your clipboard (top-right corner).
  8. Click on the command block-image and click on the place you want to put them into the world.
  9. Click on "Import" (left).
  10. Now hit CTRL+S to save your world (make sure your world isn't opened in Minecraft!).
  11. Exit MCEdit and open up your Minecraft world.
  12. You're done. Congratulations! =D

The command block(s) you put into your world contains the command(s) to summon in your contraption. Most of the time this will be just 1 command block, however, when you have lots of commands and blocks, you need more command blocks to summon your contraption because of the character limit in command blocks.

1.9 Edit

Manual Method Using A Text Editor Edit

Tutorial by: Littleman9Mew2

EDIT: Rewritten tutorial for 1.9 modules, still trying to update according to the Bat Grenades 1-Click format. May need tweaking.

Now for people who cannot run MCEdit for technical reasons, or because of some other reason, this tutorial will show how to make a 1-Click using a text editor, such as Notepad++. This method would help one organize the command block and add/remove/modify the module within the text editor itself. This will use the Repeat/Chain/Impulse command blocks in 1.9 for compactness and ease. So if you're using this in 1.8, it won't work! (Or Worse, Crash!)

Before you start Edit

Now before one goes out to start shoving this into a 1-Click, you must follow the Gamemode 4 Standard. Otherwise, it will most likely not be accepted. The general ideas of the modules creation is as follows:

  1. It must be built in the positive X and Z coordinates.
  2. It must be placed at least 1 block in both the positive X coordinates away from the executing block.
  3. You copy the 1-Click command base and paste it into a text editor. Notepad++ is best.
  4. You copy the command from the command_block and paste in corresponding scoreboards/commands/etc and insert it inside the "!!REPLACE ME!!" section.
  5. You edit the type of command_block and orientation of it.
  6. Bugs? Do you have an updated command for the outdated one?
  7. What modules does it need/compatible with?
  8. Test it out!

Getting the 1-Click Paste and what it shows. Edit

Before you start you must get the 1-click paste here:

The command, when pasted into the text editor, would have to lines specifically separated from the rest of the command. The two you will modify will look like this:

This one is the first of two command blocks. There are two of them on is a chain, as seen here, and the other one is a clay block supporting the GM4 Sign, but it can be replaced with a chain_cmd_block if you wish to do so, no harm will come of it.

{id:MinecartCommandBlock,Command:setblock ~2 ~0 ~ repeating_command_block 0 _ {TrackOutput:0b,auto:1b,Command:!!REPLACEME!!}},

This line is the "Marker" armorstand for Gamemode 4 modules.

{id:MinecartCommandBlock,Command:summon ArmorStand ~2 ~-1 ~ {CustomName:GM4_!!REPLACEME!!,NoGravity:1b,Tags:["1.0",GM4]}},

This is the ArmorStandthat will mark the Module for the GM4 Standard. The tags are the version number of the module (Default to "1.0") and "GM4". The name it has is "GM4_!!REPLACEME!!", this is going to be where the name of your module will be in camelCase. (I.E. GM4_desireLines)

For each command block you have, the more of the command block lines you will need to make it. By default, a chain command blocks with "!!REPLACEME!!" inside of them. This is to make it easier to copy the commands in Minecraft into this command block.

Adding Extra commands into the paste. Edit

You only have two lines for placing one command block. How do you add more?

Simple: you copy the line

{id:MinecartCommandBlock,Command:setblock ~2 ~0 ~ repeating_command_block 0 _ {TrackOutput:0b,auto:1b,Command:!!REPLACEME!!}},

and paste it below the previous one. Then for each command block you have in your Minecraft world, you then follow the next step. Just remember to replace it with a repeating_command_block!

Pasting and Modifying Edit

Now the first command block in your list is the scoreboard objectives (Hopefully!), now as long as you follow the GM4 Standard you should be fine. Now in the EXACT order you place the commands in your Minecraft world, you then copy the command inside it and paste it into the area labeled "!!REPLACEME!!". You paste it from TOP (Being the First command) to BOTTOM (The Last block at the end of the module)! This ensures the module having the commands execute in order.

Changing direction and orientation Edit

Also, the starting command block in is default to face down, if you want to know the orientation of the command blocks it's as follows:

Number Direction Coordinates
0 down negative Y
1 up positive Y
2 north negative Z
3 south positive Z
4 west negative X
5 east positive X

Now the first command block, if running a 20Hz clock, should be a repeating command block going towards the positive X direction. This pattern should have to be 2*2 anti-clockwise spiraling towards positive X. If a hopper-clock is used, the module needs to go first backward under the clock and back and start spiraling from there.

The new Sign information system Edit

With the new 1.9 modules, came a new system: The sign system, what this system does is that it makes it so any old or out-of-date module will be easily updated and send you a link the website for that corresponding module.

This is what the sign's data tag should look like (SO MANY \'s!):

{Text1:"{\"text\":\"\"}",Text2:"{\"text\":\"!!REPLACE ME!!\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tellraw @p [{\\\"text\\\":\\\"[GM4] !!REPLACEME!! V1.0 Click for Commands, Updates & Info. This is used for updating modules, the link will just send you to the Gamemode 4 website as a placeholder.\\\",\\\"color\\\":\\\"aqua\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"open_url\\\",\\\"value\\\":\\\"\\\"}}]\"}}",Text3:"{\"text\":\"Click For Info.\"}",Text4:"{\"text\":\"\"}"}

Now to explain what all the stuff within the \'s means. This is just a sign that, when clicked, will tell you the version of the module, it will then send you the modules page on the website. Since you module isn't on the website (yet), the sign will default the mainpage. This is a placeholder, you can put whatever you like, for this, it would most likely be your blog post page or page on the gm4 wiki. When done, just remove the text:

"This is used for updating modules, the link will just send you to the Gamemode 4 website as a placeholder."


Updating an outdated module Edit

This is for updating your module if it has a bug or a new feature. This is a new thing for gamemode 4 when creating 1-Clicks. Using the sign system that many 1.9 modules use, this can make it easy for people to go and update the 1-Clicks rather than making a whole new one.

Obtaining the Updating Paste. Edit

Now the format for the updating 1-Click is here:

This command has one key line:

Passengers:[{id:MinecartCommandBlock,Command:execute @e[type=ArmorStand,name=GM4_!!REPLACEME!!] ~ ~ ~ (A Setblock command or blockdata command to replace effected command blocks you want to change)},

The stuff within the parenthesis are the command blocks YOU are updating, this can either be a /setblock command or a /blockdata command, for every block you need to change you add a new line just like earlier. Just remember that this will only work when it's placed above the sign with the module information on it. (The one that leads to

Now that is settled, we can move on. The next line is an execute for the marker armorstand to replace the sign with the updated information. The text, as explained earlier, will be updated the link of the updated modules' page.

The next two lines are identical, but they're important for the version of the module:

Line A:

{id:MinecartCommandBlock,Command:scoreboard players tag @e[name=GM4_!!REPLACEME!!] remove 1.0},

Line B:

{id:MinecartCommandBlock,Command:scoreboard players tag @e[name=GM4_!!REPLACEME!!] add 1.0},

Line A is used to remove the old version number of the module, by default it removes version 1.0, but it would be the previous version of your module.

Line B is used to add the new version number to the module, so in turn, the most likely number would be 1.1 in this case.

Hope this tutorial help in creating new 1.9 1-Clicks!

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.