๐๏ธ tryashtar ยท 89 points ยท Posted at 23:47:40 on August 27, 2015 ยท (Permalink)
DemandingShinyBlobfish
๐๏ธ tryashtar ยท 5 points ยท Posted at 23:50:47 on August 27, 2015 ยท (Permalink)*
Info
Aha! Yes! So many command compactors exist for 1.8, but they're all outdated now! I present my Command Compactor for 1.9, a heavily customizable compact awesome program I wrote in C#.
Type commands to be executed once or to be clocked. Customize length, width, height and position offsets or have them automatically done for you. Turn on/off bedrock mode, block cases, quick lag-removing gamerules, uninstall blocks, and more! Generate the command and you can easily import it into your world. โฅ
I still work on this regularly, so check back here every so often for updates. If you have a suggestion or are experiencing a problem, please send me a PM. I'd love to hear from you so I can make this program the best it can be.
Unzip this, and there will be three files. One is a shortcut called One-Click Generator for MC 1.9
Simply click that to run the program.
The other two files are the Visual Studio project, so you can look at my bad source code if you want. If you're a pro programmer, feel free to submit suggestions on how I can improve my code -- I'm always willing to learn.
Changelog
This comment will be updated to have the latest download whenever there is an update.
Not everyone uses Windows. Not everyone likes clunky runtime programs. Why not write it, like a human, in C or C++? Would look better (for example, if you used Qt) and be cross platform. I prefer not to deal with Mono.
๐๏ธ tryashtar ยท 3 points ยท Posted at 20:22:47 on August 28, 2015 ยท (Permalink)
Sorry for not being human. C# is the only language I know, and I'm still quite an amateur. I'd like to learn more languages, but one step at a time.
Please don't link to MediaFire. Please instead link to something like Mega, as it doesn't require a caption to download, doesn't host ads and doesn't kill on other applications.
EDIT:
Tried it out. Some issues I've noticed in both EXE files:
I'm going to guess that I can recompile it for a smaller screen using the source, however I need to install VS for that I guessโฆ And of course it takes more space than I have available. :-(
๐๏ธ tryashtar ยท 3 points ยท Posted at 04:30:10 on August 28, 2015 ยท (Permalink)*
Thank you for your feedback. I will update the download link to support UI scaling as soon as I can tomorrow.
EDIT: Done, kind of. Check the comment above for a download.
If you aren't logged in, MediaFire places 8 ads on the page, will require you fill out a Flash-required captcha and won't generate a download URL that is accessible without cookies enabled, meaning that you can't download from another browser or (mobile) downloader.
I take note of the amount of blocked ads as the amount of ads on the page, and if anything uses flash I'm not gonna enable it just to watch something. Particularly if it's restricting my access.
If they were doing a normal download it wouldn't be as encrypted. Although this is kind of useless for mine craft and pretty much any other video game. The speeds are quite good as well, often exceeding pretty much anything from other providers, at least from my experience (Australia).
caagr98 ยท 1 points ยท Posted at 12:54:17 on August 28, 2015 ยท (Permalink)
There are some places where encryption makes sense, but approximately 0% of the files I've downloaded from Mega do. I also kinda like being able to look at the normal places to see download progress, for example.
132ikl ยท 1 points ยท Posted at 02:38:52 on August 28, 2015 ยท (Permalink)
If you aren't logged in, MediaFire places 8 ads on the page, will require you fill out a Flash-required captcha and won't generate a download URL that is accessible without cookies enabled, meaning that you can't download from another browser or (mobile) downloader.
132ikl ยท 2 points ยท Posted at 02:41:36 on August 28, 2015 ยท (Permalink)
Um, not to sound stupid or anything, but how do i run this?
๐๏ธ tryashtar ยท 2 points ยท Posted at 02:47:08 on August 28, 2015 ยท (Permalink)
Download the zip, unzip it, and navigate to bin > Debug. The exe file will be there. I would link directly to the exe, but subreddit rules don't allow it.
If you need help with the program itself, there is a help button.
132ikl ยท 1 points ยท Posted at 02:47:39 on August 28, 2015 ยท (Permalink)
What's the use of that website?
I can only see you paste a command in a command block and
Set it to always active.
Nothing special unless you said u don't need to put buttons etc. to activate the command block.
The command he pastes is used to generate the repeating command blocks. The always active button is just being used to spawn them in Basically, it's functioning as a button.
This looks amazing but I have to ask, is there a way to control where they get placed? I.e. if you have a block with a comparator that triggers another command?
DrPigi ยท 1 points ยท Posted at 13:05:39 on August 28, 2015 ยท (Permalink)
Where can i suggest ideas?
One idea:
Add an option of something like "if" (using the conditinal ones)
๐๏ธ tryashtar ยท 1 points ยท Posted at 15:14:33 on August 28, 2015 ยท (Permalink)*
Good suggestion! I'll think of a way to implement it and update the download as soon as I'm done.
EDIT: The only issue is dealing with conditional chain command blocks at the front of the machine, but I think I have a solution of sorts.
EDIT 2: Done!
Dummyc0m ยท 1 points ยท Posted at 14:21:59 on August 28, 2015 ยท (Permalink)
I thought you made a one-click command generator with a one-click command block contraption...
Random, but I notice you use an enchantment table to (presumably) place an armor stand aligned with your workbench. I was doing a similar XP bank and found a trick to align an entity to the grid so that players could create my bank by dropping an item over a dropper while still having the particles always at the center of that tile. Basically, before you summon the armor stand, summon an item frame at the tile, as item frames will always spawn on the Z face within it's tile by default. Summon your armor stand at the frame's location and teleport it ~0.5 in the +Z direction. Lastly just delete the item frame and you'll have a perfectly centered armor stand.
You use chain command blocks to carry a signal from the repeat command block, thereby enforcing order. XYZ order has been deprecated, and soon will cause undefined behavior.
Wait. From what i understand, you said you're using FILL COMMANDS to make your device. Why not summon FallingSand entities instead, allowing for compression? blockdata's inefficient, anyway...
๐๏ธ tryashtar ยท 1 points ยท Posted at 21:30:07 on August 28, 2015 ยท (Permalink)
With repeating command blocks, I only need to do one fill command, then use blockdata to put commands in the blocks.
If everything used chain command blocks, I would need a command to fill blocks pointing forward, then fill in the rows pointing back, then fill in the "turning" blocks.
Since when is XYZ deprecated? They execute in the tile entities list order, and that's just how the fill command adds them.
They're optimizing TileTicks, which means command execution order might be undefined. Chain command blocks were partially to allow players to define execution order.
๐๏ธ tryashtar ยท 2 points ยท Posted at 04:38:54 on August 29, 2015 ยท (Permalink)
Oh, I see. If/when that happens, I guess I'll have to change it. I did update it just now to support conditionals, so there's that!
๐๏ธ tryashtar ยท 1 points ยท Posted at 04:49:47 on August 29, 2015 ยท (Permalink)
Yeah, I had to push out that (relatively) simple update quickly, but I'll start work on the chain-based version now that you told me why I should. :) Thanks for the info.
I was thinking of doing it your way when I made my (python) tool, but I realized the chain-command problem and decided to make everything generate in a vertical line. Actually works quite well... we used FallingSand to make our commands as opposed to /fill. Might be a thing you want to use instead?
๐๏ธ tryashtar ยท 5 points ยท Posted at 23:50:47 on August 27, 2015 ยท (Permalink)*
Info
Aha! Yes! So many command compactors exist for 1.8, but they're all outdated now! I present my Command Compactor for 1.9, a heavily customizable compact awesome program I wrote in C#.
Type commands to be executed once or to be clocked. Customize length, width, height and position offsets or have them automatically done for you. Turn on/off bedrock mode, block cases, quick lag-removing gamerules, uninstall blocks, and more! Generate the command and you can easily import it into your world. โฅ
I still work on this regularly, so check back here every so often for updates. If you have a suggestion or are experiencing a problem, please send me a PM. I'd love to hear from you so I can make this program the best it can be.
Download
https://www.dropbox.com/s/hck8jmn2hvau2j3/One-Click%20Generator%20for%20MC%201.9%20v12.zip?dl=0
Unzip this, and there will be three files. One is a shortcut called
One-Click Generator for MC 1.9Simply click that to run the program.
The other two files are the Visual Studio project, so you can look at my bad source code if you want. If you're a pro programmer, feel free to submit suggestions on how I can improve my code -- I'm always willing to learn.
Changelog
This comment will be updated to have the latest download whenever there is an update.
To view new additions or see a full changelog, please see http://anotepad.com/notes/5222180.
[deleted] ยท 1 points ยท Posted at 00:03:19 on August 28, 2015 ยท (Permalink)
If there a download thats just an .exe?
๐๏ธ tryashtar ยท 3 points ยท Posted at 00:06:27 on August 28, 2015 ยท (Permalink)
No, sorry, that's against the subreddit rules.
[deleted] ยท 1 points ยท Posted at 00:08:27 on August 28, 2015 ยท (Permalink)
ah Okay ty
TheCookieComrade ยท -5 points ยท Posted at 05:05:31 on August 28, 2015 ยท (Permalink)
why
Silverriolu295 ยท 1 points ยท Posted at 12:08:53 on August 28, 2015 ยท (Permalink)
Why not?
Xor_Boole ยท 3 points ยท Posted at 16:11:14 on August 28, 2015 ยท (Permalink)
Because not everyone uses Windows, and let's face it, the odds that a given C# program runs under mono isn't great.
TheCookieComrade ยท 1 points ยท Posted at 16:14:17 on August 28, 2015 ยท (Permalink)
Not everyone uses Windows. Not everyone likes clunky runtime programs. Why not write it, like a human, in C or C++? Would look better (for example, if you used Qt) and be cross platform. I prefer not to deal with Mono.
๐๏ธ tryashtar ยท 3 points ยท Posted at 20:22:47 on August 28, 2015 ยท (Permalink)
Sorry for not being human. C# is the only language I know, and I'm still quite an amateur. I'd like to learn more languages, but one step at a time.
TheCookieComrade ยท 1 points ยท Posted at 11:48:03 on August 29, 2015 ยท (Permalink)
It's fine, man. I started with Java and hold some particular views and opinions for it as well. Currently I'm writing mostly in C. Good luck!
dizzyzane_ ยท -7 points ยท Posted at 00:41:21 on August 28, 2015 ยท (Permalink)*
Please don't link to MediaFire. Please instead link to something like Mega, as it doesn't require a caption to download, doesn't host ads and doesn't kill on other applications.
EDIT:
Tried it out. Some issues I've noticed in both EXE files:
UI scaling is nonexistent, on smaller screens it uses up almost all screenspace by itself yet doesn't fit all the UI on, and in fullscreen on this screen it doesn't fit whatsoever.
I'm going to guess that I can recompile it for a smaller screen using the source, however I need to install VS for that I guessโฆ And of course it takes more space than I have available. :-(
๐๏ธ tryashtar ยท 3 points ยท Posted at 04:30:10 on August 28, 2015 ยท (Permalink)*
Thank you for your feedback. I will update the download link to support UI scaling as soon as I can tomorrow.
EDIT: Done, kind of. Check the comment above for a download.
dizzyzane_ ยท -2 points ยท Posted at 06:06:05 on August 28, 2015 ยท (Permalink)
Arigatou gozaimasu!
[deleted] ยท 2 points ยท Posted at 02:22:07 on August 28, 2015 ยท (Permalink)*
[deleted]
dizzyzane_ ยท -1 points ยท Posted at 03:38:50 on August 28, 2015 ยท (Permalink)
If you aren't logged in, MediaFire places 8 ads on the page, will require you fill out a Flash-required captcha and won't generate a download URL that is accessible without cookies enabled, meaning that you can't download from another browser or (mobile) downloader.
Blue_Dragon360 ยท 2 points ยท Posted at 06:40:29 on August 28, 2015 ยท (Permalink)
Never had this happen. Use adblock?
dizzyzane_ ยท -1 points ยท Posted at 07:55:38 on August 28, 2015 ยท (Permalink)
I do, and I disable flash.
I take note of the amount of blocked ads as the amount of ads on the page, and if anything uses flash I'm not gonna enable it just to watch something. Particularly if it's restricting my access.
Blue_Dragon360 ยท 2 points ยท Posted at 08:10:23 on August 28, 2015 ยท (Permalink)
I still don't get the captcha... MediaFire just lets me hit the download button, and it downloads. Are you taking about some other function?
dizzyzane_ ยท -1 points ยท Posted at 08:27:16 on August 28, 2015 ยท (Permalink)
Weird… Now that I've talked about it it doesn't happen anymore.
caagr98 ยท 2 points ยท Posted at 12:27:15 on August 28, 2015 ยท (Permalink)
No, f*ck Mega. Why can't they just let me use the normal download mechanism instead of reinventing a wheel made of shit?
dizzyzane_ ยท 3 points ยท Posted at 12:48:09 on August 28, 2015 ยท (Permalink)
If they were doing a normal download it wouldn't be as encrypted. Although this is kind of useless for mine craft and pretty much any other video game. The speeds are quite good as well, often exceeding pretty much anything from other providers, at least from my experience (Australia).
caagr98 ยท 1 points ยท Posted at 12:54:17 on August 28, 2015 ยท (Permalink)
There are some places where encryption makes sense, but approximately 0% of the files I've downloaded from Mega do. I also kinda like being able to look at the normal places to see download progress, for example.
132ikl ยท 1 points ยท Posted at 02:38:52 on August 28, 2015 ยท (Permalink)
What are you talking about
dizzyzane_ ยท -1 points ยท Posted at 03:39:05 on August 28, 2015 ยท (Permalink)
If you aren't logged in, MediaFire places 8 ads on the page, will require you fill out a Flash-required captcha and won't generate a download URL that is accessible without cookies enabled, meaning that you can't download from another browser or (mobile) downloader.
MC_Labs15 ยท 4 points ยท Posted at 02:56:37 on August 28, 2015 ยท (Permalink)
THANK YOU! I'll name my firstborn after you, this is so helpful! :D
๐๏ธ tryashtar ยท 1 points ยท Posted at 15:26:25 on August 28, 2015 ยท (Permalink)*
I'm glad you like it! I'll be updating it today if possible to support conditionals and better UI on smaller resolutions.
EDIT: Conditionals added! โ
wiresegal ยท 1 points ยท Posted at 15:23:07 on August 28, 2015 ยท (Permalink)
hey labs, if you want conditionals: https://github.com/destruc7i0n/OneCommand
132ikl ยท 2 points ยท Posted at 02:41:36 on August 28, 2015 ยท (Permalink)
Um, not to sound stupid or anything, but how do i run this?
๐๏ธ tryashtar ยท 2 points ยท Posted at 02:47:08 on August 28, 2015 ยท (Permalink)
Download the zip, unzip it, and navigate to bin > Debug. The exe file will be there. I would link directly to the exe, but subreddit rules don't allow it.
If you need help with the program itself, there is a help button.
132ikl ยท 1 points ยท Posted at 02:47:39 on August 28, 2015 ยท (Permalink)
Thank you.
YMbrothers ยท 1 points ยท Posted at 01:01:41 on August 28, 2015 ยท (Permalink)
What's the use of that website? I can only see you paste a command in a command block and Set it to always active. Nothing special unless you said u don't need to put buttons etc. to activate the command block.
Davidfizz32 ยท 2 points ยท Posted at 02:00:02 on August 28, 2015 ยท (Permalink)
The command he pastes is used to generate the repeating command blocks. The always active button is just being used to spawn them in Basically, it's functioning as a button.
ThisIsBeagle ยท 1 points ยท Posted at 12:13:12 on August 28, 2015 ยท (Permalink)
This looks amazing but I have to ask, is there a way to control where they get placed? I.e. if you have a block with a comparator that triggers another command?
DrPigi ยท 1 points ยท Posted at 13:05:39 on August 28, 2015 ยท (Permalink)
Where can i suggest ideas? One idea: Add an option of something like "if" (using the conditinal ones)
๐๏ธ tryashtar ยท 1 points ยท Posted at 15:14:33 on August 28, 2015 ยท (Permalink)*
Good suggestion! I'll think of a way to implement it and update the download as soon as I'm done.
EDIT: The only issue is dealing with conditional chain command blocks at the front of the machine, but I think I have a solution of sorts.
EDIT 2: Done!
Dummyc0m ยท 1 points ยท Posted at 14:21:59 on August 28, 2015 ยท (Permalink)
I thought you made a one-click command generator with a one-click command block contraption...
Mighty_Burger ยท 1 points ยท Posted at 19:17:37 on August 28, 2015 ยท (Permalink)
Who knows? It might be possible one day
RawberryCough ยท 1 points ยท Posted at 20:02:50 on August 28, 2015 ยท (Permalink)
Good work! Seems pretty in-depth.
Random, but I notice you use an enchantment table to (presumably) place an armor stand aligned with your workbench. I was doing a similar XP bank and found a trick to align an entity to the grid so that players could create my bank by dropping an item over a dropper while still having the particles always at the center of that tile. Basically, before you summon the armor stand, summon an item frame at the tile, as item frames will always spawn on the Z face within it's tile by default. Summon your armor stand at the frame's location and teleport it ~0.5 in the +Z direction. Lastly just delete the item frame and you'll have a perfectly centered armor stand.
wiresegal ยท 1 points ยท Posted at 15:05:12 on August 28, 2015 ยท (Permalink)
you should be using Chain Command Blocks to pull this off, because XYZ format will probably be breaking in the future.
๐๏ธ tryashtar ยท 0 points ยท Posted at 15:10:38 on August 28, 2015 ยท (Permalink)
Source? Also, that would be way less efficient because now it requires one /fill command, and a chain path would require more.
wiresegal ยท 1 points ยท Posted at 15:22:33 on August 28, 2015 ยท (Permalink)
whatever the efficiency, without chains you can't use conditionals well. whether it breaks or not, chains are the better way to go.
๐๏ธ tryashtar ยท 1 points ยท Posted at 20:10:55 on August 28, 2015 ยท (Permalink)
I'm not going to make the program less useful for the same end result.
I thought of a good, clean, efficient way to implement conditionals which I will try to do today.
wiresegal ยท 1 points ยท Posted at 21:03:49 on August 28, 2015 ยท (Permalink)
less useful? how does it become less useful?
๐๏ธ tryashtar ยท 1 points ยท Posted at 21:10:00 on August 28, 2015 ยท (Permalink)
The more commands it can fit, the more useful it is. Unnecessary fill commands taking up character space would make it less useful.
Please just wait for the new version; I think you'll like how I handle conditionals :)
wiresegal ยท 1 points ยท Posted at 21:22:39 on August 28, 2015 ยท (Permalink)*
Fill commands? Who said anything about those?
You use chain command blocks to carry a signal from the repeat command block, thereby enforcing order. XYZ order has been deprecated, and soon will cause undefined behavior.
Wait. From what i understand, you said you're using FILL COMMANDS to make your device. Why not summon FallingSand entities instead, allowing for compression? blockdata's inefficient, anyway...
๐๏ธ tryashtar ยท 1 points ยท Posted at 21:30:07 on August 28, 2015 ยท (Permalink)
With repeating command blocks, I only need to do one fill command, then use blockdata to put commands in the blocks.
If everything used chain command blocks, I would need a command to fill blocks pointing forward, then fill in the rows pointing back, then fill in the "turning" blocks.
Since when is XYZ deprecated? They execute in the tile entities list order, and that's just how the fill command adds them.
wiresegal ยท 1 points ยท Posted at 21:34:27 on August 28, 2015 ยท (Permalink)
They're optimizing TileTicks, which means command execution order might be undefined. Chain command blocks were partially to allow players to define execution order.
๐๏ธ tryashtar ยท 2 points ยท Posted at 04:38:54 on August 29, 2015 ยท (Permalink)
Oh, I see. If/when that happens, I guess I'll have to change it. I did update it just now to support conditionals, so there's that!
wiresegal ยท 0 points ยท Posted at 04:40:06 on August 29, 2015 ยท (Permalink)
Why not plan for the future? :P
๐๏ธ tryashtar ยท 1 points ยท Posted at 04:49:47 on August 29, 2015 ยท (Permalink)
Yeah, I had to push out that (relatively) simple update quickly, but I'll start work on the chain-based version now that you told me why I should. :) Thanks for the info.
wiresegal ยท 0 points ยท Posted at 04:52:37 on August 29, 2015 ยท (Permalink)
I was thinking of doing it your way when I made my (python) tool, but I realized the chain-command problem and decided to make everything generate in a vertical line. Actually works quite well... we used FallingSand to make our commands as opposed to /fill. Might be a thing you want to use instead?