emeraldfyr3
The Pit Solution Part 3
updated
The Minecraft Version Detector datapack is now able to detect all versions of Minecraft since 1.13.
Datapack Challenge:
youtube.com/watch?v=X4rPWvGGnOU
Minecraft Version Detector Datapack:
youtube.com/watch?v=zUJ4QgKk4zs&t=0s
Minecraft Version Detector GitHub Repo:
github.com/emeraldfyr3/mc-version
How to Block YouTube Ads:
github.com/emeraldfyr3/block-yt-ads/blob/master/README.md
GOAL:
Create a function or datapack that sets a scoreboard value differently when loaded in 1.13.1 vs 1.13.2. For example, running a function in 1.13.1 will set the score of player "patch" in objective "mcversion" to 1 in 1.13.1, and 2 in 1.13.2.
GUIDELINES:
The solution will most likely require observing some in-game behavior that changed between 1.13.1 and 1.13.2. This may require running certain commands, summoning entities, and/or placing blocks.
A perfect solution would only require commands, without using any entities or blocks. The next-best solution would use entities, but not require placing blocks. In addition, determining the version instantly is better than having some delay.
See my Minecraft Version Detector datapack on GitHub for examples:
github.com/emeraldfyr3/mc-version
Minecraft Version Detector Datapack Video:
youtube.com/watch?v=zUJ4QgKk4zs
How to Block YouTube Ads:
github.com/emeraldfyr3/block-yt-ads/blob/master/README.md
DOWNLOAD:
github.com/emeraldfyr3/mc-version/archive/master.zip
HOW TO USE:
Put the datapack in your world's datapacks folder, and on world load the minecraft version will be stored in scoreboard values in the objective mcversion. The first number is "major", the second is "minor", and the third is "patch". For exampe, 1.16.4 would be major=1, minor=16, patch=4.
All release versions from 1.13 to 1.17 are detected except 1.13.2, 1.15.1, and 1.16.1.
GitHub Repo:
github.com/emeraldfyr3/mc-version
How to Block YouTube Ads:
github.com/emeraldfyr3/block-yt-ads/blob/master/README.md
DOWNLOAD:
github.com/emeraldfyr3/em-lib/raw/1.16.4-v6/release/em-lib-1.16.4-v6.zip
Put the downloaded datapack in your world's datapacks folder.
HOW TO USE:
Set the score for math_in1 and math_in2 in objective em, run the function, then take the score from math_out in em.
For info on each function, read the documentation on GitHub:
github.com/emeraldfyr3/em-lib/blob/1.16.4-v4/docs/em/math.md
...or run em:help/math/[FUNCTION] in-game.
Included Math Functions:
abs: get the absolute value of a number
divide_round: division that rounds the result to the nearest integer
factorial: factorial of the given number
log: logarithm of the given base for the given number
power: the given number raised to the given power
random: a random number in a specified range, up to 31 bits
root: the nth root of the given number
round: round the given number to the nearest multiple of another number
sign: get the sign of a number (-1 for negatives, 0 for 0, 1 for positives)
Optimized power function:
geeksforgeeks.org/write-an-iterative-olog-y-function-for-powx-y
Newton's method for finding roots:
en.wikipedia.org/wiki/Newton%27s_method#Square_root
Pi puts the YouTube URL in the video:
youtube.com/watch?v=D6L__oR1O9A
Fully Automatic 4-Way Flying Machine:
youtube.com/watch?v=joA6zdqtk-w
IMPORTANT: After publishing this video, I found out that Burgled had made the same thing a year before: youtube.com/watch?v=Pi9Ui3MJTeY
I didn't intend to copy his work. He deserves credit for doing this first after ilmango's original video came out.
ilmango's 4-Way Flying Machine:
youtube.com/watch?v=OFDG7pjoXTc
Self-Returning Tunnel Bore:
youtube.com/watch?v=UBoRQcyKuUk
1. Open System Preferences
2. Go to Keyboard ⟩ Shortcuts ⟩ App Shortcuts
3. Click "+" to add a new shortcut
4. Put "Quit java" as the Menu Title (NOTE: If your game is modded, make sure that the text matches the option to quit the game from your computer's menu bar -- it might not be "Quit java".)
5. Click into the Keyboard Shortcut field and press Control and Q at the same time. Make sure to press Control, not Command.
6. Click Add to save the shortcut
This works by switching the shortcut to quit the game to Control+Q instead of Command+Q. This also switches it for any other Java executables named "java". Now, pressing Command+Q in Minecraft will drop a stack without quitting the game.
DOWNLOAD:
github.com/emeraldfyr3/em-lib/raw/1.16.4-v6/release/em-lib-1.16.4-v6.zip
Put the downloaded zip file in your world's datapacks folder.
HOW TO USE:
1. Set math_in1 on objective em to the lower bound of your range.
2. Set math_in2 on objective em to the upper bound of your range. Note that the highest possible output will be (upper - 1).
3. Run the random number function of your choice, and the output will be stored in math_out on objective em.
Cloud Wolf's RNG video:
youtube.com/watch?v=fzZASMieGn0
EarthComputer's Enchantment Seed Cracker:
youtube.com/watch?v=hfiTZF0hlzw
DOWNLOAD:
github.com/emeraldfyr3/em-lib/raw/1.16.4-v6/release/em-lib-1.16.4-v6.zip
Put the downloaded zip file in your world's datapacks folder.
HOW TO USE:
1. Set an entity's score in these objectives: scoretp_x, scoretp_y, scoretp_z
2. Run the function as the entities you want to teleport: execute as SELECTOR at @s run function em:scoretp
RELATIVE VS ABSOLUTE COORDINATES:
To use the values in scoreboard as relative coordinates, position the command at the entity:
execute as SELECTOR at @s run function em:scoretp
To use the values in scoreboard as absolute coordinates, position the command at 0 0 0:
execute as SELECTOR positioned 0 0 0 run function em:scoretp
Showcase:
youtube.com/watch?v=UBoRQcyKuUk
World Download:
mediafire.com/file/ow5nn6yw5wxanie/AFK_Mining_Machine_1.16.zip/file
Tutorial:
youtube.com/watch?v=immyp0lAUF0
World Download:
mediafire.com/file/ow5nn6yw5wxanie/AFK_Mining_Machine_1.16.zip/file
Note: This uses a glitch with falling blocks that may be patched in future updates.
World Download:
http://www.mediafire.com/file/zko2crj7qe6sdzy/16-Color_Concrete_Color_Changer.zip
Math Library Download:
http://www.mediafire.com/file/ofk14vd1brodar7/math.zip
Extract the files to .minecraft/saves/[Your Minecraft World]/data/functions/math to use. Be sure to run /function math:init after downloading!
World Download:
http://www.mediafire.com/file/133cj6vh375p89x/Functions_World.zip
Online floating point number converter:
h-schmidt.net/FloatConverter/IEEE754.html
Raycast function:
reddit.com/r/MinecraftCommands/comments/68swsp
To use, set the scores of the entity in the objectives scoretp_x, scoretp_y, and scoretp_z. Then run the function "scoretp:" + the coordinates you want to teleport. For example, "scoretp:xz" will teleport in the x and z directions, and not y. Add a ~ before x, y, or z to use relative coordinates. For example, "scoretp:~xy~z" will teleport to relative x and z coordinates and absolute y coordinate.
Remember to run "/function scoretp:init" after downloading!
ScoreTP Functions:
http://www.mediafire.com/file/hhqav5e67vn6lyc/scoretp.zip
World Download:
http://www.mediafire.com/file/133cj6vh375p89x/Functions_World.zip
Math Functions Download:
http://www.mediafire.com/file/ofk14vd1brodar7/math.zip
Math Functions Video:
youtube.com/watch?v=Are2XbCGrnk
**After you import the functions, be sure to run math:init to create the scoreboard objectives!**
Math Functions:
http://www.mediafire.com/file/ofk14vd1brodar7/math.zip
World Download:
http://www.mediafire.com/file/i1t3vtuakol2l2b/Math_Functions.zip
Included Math Functions:
divide_round: division that rounds the result to the nearest integer
factorial: factorial of the given number
log: logarithm of the given base for the given number
power: the given number raised to the given power
random: a random number in a specified range, up to 31 bits
root: the nth root of the given number
round: round the given number to the nearest multiple of another number
The changes to Chain Command Blocks in 17w16 enable modification of the chain while it's executing, allowing for conditional branches within the same tick. This means that we can do for- and while-loops without having to delay 1 tick for each iteration.
World Download:
http://www.mediafire.com/file/3x2vxycd2j3xm5q/0-Tick_Exponents_-_Chain_Loops.zip
slicedlime's video explaining branches:
youtube.com/watch?v=nd4brjjKPHo
/u/Marcono1234's Reddit post explaining loops:
reddit.com/r/Minecraft/comments/66ox6v
World Download:
http://www.mediafire.com/file/4lsp0gu6jc7lc3i/Tunnel_Bore_Unloader.zip
Waterproof Tunnel Bore:
youtube.com/watch?v=k6R45TCKXTE&t=3s
Other Unloading Stations:
Automatic unloading & mining stations:
kkochanovski: youtube.com/watch?v=7agfr1C0Ymg
Blockreation: youtube.com/watch?v=aht1dqHZsxg
Raiguard: youtube.com/watch?v=bMZ4aSkwHCA
Automatic unloading station without mining:
Rubix One: youtube.com/watch?v=sK7BSJmASDk
Materials Needed: (Thanks to Mr Soundso)
34 slime blocks
16 observers
23 Redstone dust
8 normal pistons
19 sticky pistons
4 melon blocks
1 Redstone block
2 trapdoors
4 detector rails
2 tnt
32 obsidian
3 minecarts
11 repeater
3 comparators
4 Redstone torches
1 Redstone lamp
1 cauldron
5 stone slabs
58 building blocks
1 hopper
1 chest
3 cobblestone
World Download:
http://www.mediafire.com/file/11m95a5zxw9naae/Self-Returning_Tunnel_Bore.zip
Automatic Unloading & Mining Station:
youtube.com/watch?v=LDqcfDi3kKU
Non-Waterproof Design:
youtube.com/watch?v=70FNuywiBkY
Other automatic unloading & mining stations:
kkochanovski: youtube.com/watch?v=7agfr1C0Ymg
Blockreation: youtube.com/watch?v=aht1dqHZsxg
Raiguard: youtube.com/watch?v=bMZ4aSkwHCA
Automatic unloading station without mining:
Rubix One: youtube.com/watch?v=sK7BSJmASDk
Original video: youtube.com/watch?v=70FNuywiBkY
Waterproof Version: youtube.com/watch?v=k6R45TCKXTE
A fast and compact tunnel bore, only 1 block wide, 3 blocks high, and 6 blocks long. Tunnel bores are finally practical enough to build in survival! From my testing so far, it can handle caves and gravel/sand, but it cannot handle water or lava.
World Download:
http://www.mediafire.com/file/11m95a5zxw9naae/Self-Returning_Tunnel_Bore.zip
samnrad's Vertical Tunnel Bore:
youtube.com/watch?v=Wb5x1LFXq88
MorezeysMinecraft's Horizontal Tunnel Bore:
youtube.com/watch?v=ltijMkLyoX8
CubeHamster's Tunnel Bore:
youtube.com/watch?v=ZHVMabW25yo
I don't know if this has been shown yet, but a quick search on YouTube and the Minecraft forum came up dry. If anyone's seen this design before, please tell me where so I can give the creator credit!
Goodbye coal, hello carpets! 1.11 is bringing some new furnace fuel, and one of them can be automatically duplicated. This machine can produce a maximum of 2.5 carpets per second, limited by the hopper speed of 2.5 items per second. Since one carpet burns for 3.3 seconds, this machine can support up to 8 furnaces. ((2.5 carpets/second) * (3.3 furnace*seconds/carpet) = 8.25 furnaces)
Myren Eario's video:
youtube.com/watch?v=qkSLYcPAhWI
Commands:
http://pastebin.com/bAqJNxrg
Hey, who else is playing Pokemon Go? (literally everyone)
Structure Download: http://www.mediafire.com/download/fwcc1mbb4ldfuvj/YTracker.nbt
To import this structure into your world:
Select your world in Minecraft's selection screen, click "Edit", and click "Open Folder". If you don't see a folder called "structures", create a new folder with that name. Copy "YTracker.nbt" into the "structures" folder. Finally, import it into your world with a structure block and turn it on. All scoreboard objectives are added automatically.
Structure Download: http://www.mediafire.com/download/9gkc11ayancqhnz/RandomNumberGenerator.nbt
Open the world folder in .minecraft/saves that you want to import this to and copy it into the folder called "structures". If the folder "structures" does not exist, create it. Then, load the structure in your world using the Load Structure block. The name of the structure is RandomNumberGenerator. Then, just set lower and upper bounds via the players Lower and Upper on the objective RNG, and take the output via the player Output also on RNG.
Link to my previous random number generator: youtube.com/watch?v=YhQkN-H5B5I
If you didn't come here from Tyruswoo's structure generator, then you should absolutely check it out! It's a great example of why good random number generators are important:
youtube.com/watch?v=2UmPDfeqlDY
Tell me, what will you do with all these random numbers? Buy a boat? Invest in real estate? Donate them to charity? There are infinite* possibilities!
*infinity = 2^31
Structure Download:
http://www.mediafire.com/download/uopzj9qlk6azukf/CustomGravity.nbt
World Download:
http://www.mediafire.com/download/cdod5lq631152g8/Custom_Gravity.zip
This works by rapidly turning normal gravity on and off using the NoGravity tag. Unfortunately, this means that it's only possible to reduce gravity, not increase it, and that it doesn't work for players. However, player gravity can be affected by Levitation and Jump Boost, so I might be able to add custom player gravity in the future.
And sorry for the fan noise. My computer just wanted to say hello.
Commands used:
(Replace "CRITERIA" with the criteria of the entities you want to number.)
/scoreboard players set @e[CRITERIA] Number 0
/execute @e[CRITERIA] ~ ~ ~ stats entity @e[CRITERIA,r=0,c=1] set SuccessCount @e[CRITERIA,r=0,c=1] Number
/execute @e[CRITERIA] ~ ~ ~ testfor @e[CRITERIA,score_Number=1]
/stats entity @e[CRITERIA] clear SuccessCount
Dr. Alphys' Puzzle in Minecraft: youtube.com/watch?v=yvJ0gtPc80U
In this video, I go over in detail my recreation of Dr. Alphys' Puzzle in Minecraft from the game Undertale by Toby Fox.
Original Release Video/Trailer: youtube.com/watch?v=yvJ0gtPc80U
Video about Start Points (Entity Numbering): youtube.com/watch?v=5y53NVpbAWY
Dr. Alphys' colored tile maze, from the game Undertale by Toby Fox, is a simple-looking puzzle with intentionally complicated rules. This map contains 25 custom-made puzzles, including both of the only two playable puzzles from Undertale. It also includes a level editor, so you can even design and share your own puzzles!
This map was made in Minecraft 1.8.9. The pre-made levels in this map can be played by up to 4 players, but custom-made levels from the level editor can include many more.
Music: "Bonetrousle" by Toby Fox
http://undertale.wikia.com/wiki/Bonetrousle
I don't know whether I'm allowed to use it in this video but then again the whole map is based on a minigame in Undertale so I may as well go all-in with the copyright infringement.
My commentary on the mechanics of this map:
youtube.com/watch?v=l8Pq6eXWrDk
youtube.com/watch?v=Pp2HCGidT78
This automatic brewing machine can brew potions up to 3 times as fast as a regular brewing stand, WITHOUT queuing up pre-brewed potions! Unlike other automatic brewing systems, this machine can brew all types of potions. It uses a trick with brewing stands to start brewing before the potion is added.
Oh, and it's also silent. I like things to be silent.
Commands:
In Chat:
/scoreboard objectives add Money dummy
/scoreboard players set @a Money 0
/scoreboard objectives add ITEMS_OBJ stat.pickup.minecraft.ITEM_NAME
/scoreboard players set #Value ITEMS_OBJ VALUE
On a Clock (in order):
execute @a ~ ~ ~ scoreboard players operation @p ITEMS_OBJ *= #Value ITEMS_OBJ
execute @a ~ ~ ~ scoreboard players operation @p Money += @p ITEMS_OBJ
scoreboard players set @a ITEMS_OBJ 0
clear @a minecraft:ITEM_NAME
youtube.com/watch?v=XpG40t1S1eA
I do more accurate tests to determine which mobs can climb ladders. It turns out that almost all mobs can, with these exceptions:
- Squids
- Elder Guardians
- Horses
- Magma Cubes, Size 3+
- Slimes, Size 3+
- Giants
- Bats
- Ghasts
Music: "Reatch" by Argofox Creative Commons (youtube.com/watch?v=SfZbGxE4Ndk)
As of 15w32c, there are 3 commands for tags: add, remove, and list. When adding a tag, you must supply a name and may optionally supply a data tag to test for:
/scoreboard players tag @e add tag_name {CustomName:"Test"}
That will add the tag "tag_name" to all entities named Test. To remove a tag, you must specify the name and may optionally supply a data tag to test for:
/scoreboard players tag @e remove tag_name {CustomName:"Test"}
That will remove the tag "tag_name" from all entities named Test. "list" simply lists all tags on an entity:
/scoreboard players tag @e list
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Commands:
/scoreboard objectives add OBJECTIVE CRITERIA
/scoreboard objectives add TEAM_OBJECTIVE dummy OBJECTIVE
At lower x coordinate:
/fill ~ ~ ~1 ~1 ~ ~1 minecraft:stone
At higher x coordinate:
/fill ~ ~ ~1 ~-1 ~ ~1 minecraft:redstone_block
At lower x coordinate:
/scoreboard players set TEAM TEAM_OBJECTIVE 0
At higher x coordinate:
/execute @e[team=TEAM] ~ ~ ~ scoreboard players operation TEAM TEAM_OBJECTIVE += @e[r=0,c=1] OBJECTIVE
To show the objective in the sidebar:
/scoreboard objectives setdisplay sidebar TEAM_OBJECTIVE
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Tutorial for creating teams:
youtu.be/NTrViboaGgE?t=1146 (starts at 19:06)
To add color to the team names, follow these instructions after following mine, using the same team names:
youtube.com/watch?v=1-dCjCn-bXQ
Command: http://pastebin.com/3eacBYSX
Just leave those minecart command blocks in loaded chunks, and all endermen everywhere will have this behavior. If you want to toggle this behavior, simply remove or re-add the scoreboard objective EndermanBlock.
Previous video:
youtube.com/watch?v=LiulUQyE3t8
Sethbling's Slime Block Drawbridge:
youtube.com/watch?v=R3Y9fse9hwA
A two-way door through the roof of the Nether, extra useful now that the bedrock-breaking bugs have been patched. It's basically a horse in a minecart on top of a triple-piston extender. A double- piston extender also works, but the player suffocates in the ceiling until they get off the horse, so I think the triple is better.
If anyone can think of any way to improve this design (such as a replacement for the horse that can't suffocate to death) please do let me know!
*** IMPORTANT: As of 1.8.7 (and possibly earlier) it is no longer possible to test for "true" or "false". If a gamerule is set to true or false, the scoreboard simply will not update. Number still work though, so instead of typing "true" or "false", just type 1 or 0.
Dragnoz's video:
youtube.com/watch?v=uKmxkrL9DRk
Commands used:
/scoreboard objectives add OBJECTIVE_NAME dummy
/summon ArmorStand ~ ~ ~ {CustomName:NAME}
/stats entity @e[name=NAME] set QueryResult @e[name=NAME] OBJECTIVE_NAME
/scoreboard players set @e[name=NAME] 0
/gamerule GAMERULE_NAME VALUE (false = 0, true = 1)
fill ~ ~ ~1 ~1 ~ ~1 minecraft:wool
fill ~ ~ ~1 ~-1 ~ ~1 minecraft:redstone_block
execute @e[type=ArmorStand,name=NAME] ~ ~ ~ gamerule GAMERULE_NAME
execute @e[score_OBJECTIVE_NAME=VALUE] ~ ~ ~ COMMAND
MCEdit Schematic:
http://www.mediafire.com/download/qawl3np71bypskx/31-bit_Random_Number_Generator.schematic
Commands:
/scoreboard objectives add randMin dummy
/scoreboard objectives add randMax dummy
/scoreboard objectives add randomNumber dummy
/scoreboard players set @p randMin #
/scoreboard players set @p randMax #
/execute @e[type=Rabbit,name=randomNumber] ~ ~ ~ fill ~ ~ ~ ~5 ~ ~6 minecraft:redstone_block
Download Link:
http://www.mediafire.com/download/522j3d6u071cg6k/Grounded.zip
Download Link:
http://www.mediafire.com/download/522j3d6u071cg6k/Grounded.zip
Original Video:
youtube.com/watch?v=9mh75UHN1tA
World Download:
http://www.mediafire.com/download/o9vl5ksfe5n6z0g/Ranking_System.zip
MCEdit Schematic:
http://www.mediafire.com/download/cuk8pd5kz3uq8k9/Ranking_System.schematic
World Download:
http://www.mediafire.com/download/z4uow9o7rra8asp/Sand_Juggler.zip
By the way, by "latest snapshot" I meant 14w25a, the one with all the water stuff. You do still need to be in the 1.8 snapshots to get slime blocks.


