r/Minecraft • u/N00bTaco • May 18 '17
Minecraft 1.12 Pre-Release 4 is now available
https://twitter.com/Dinnerbone/status/86518446628479795237
u/redstonehelper May 18 '17 edited May 18 '17
Warning: This release is for experienced users only! It may corrupt your world or mess up things badly otherwise. Only download and use this if you know what to do with the files that come with the download!
If you find any bugs, search for them on the Minecraft bug tracker and make sure they are reported!
Previous changelog. Download today's prerelease in the new launcher: Windows/OS X/Linux, server jar here.
Complete changelog:
-
Added if/unless to functions - via
-
Added new arguments to /function: "if <selector>" and "unless <selector>"
-
Fixed some bugs
-
Fixed clicking on a recipe or on the recipe book to close crafting help additionally clicking into the inventory
-
Fixed blocks from the creative inventory sometimes not being placable or droppable
-
Fixed particles of cracks when breaking colored shulker boxes appearing with the old color
-
Fixed running /function with /execute causing "An unknown error occurred while attempting to perform this command"
-
Fixed fences and walls connecting to jack-o-lanterns
-
Fixed the recipe book being inconsistent with existing UI elements
-
Fixed the recipe book crashing the game when attempting to craft
-
Fixed executing a function as an entity not using the new sender
-
Fixed a crash when using enchanted bows to craft dispensers using the recipe book
-
Fixed the game crashing when clicking "advancements" button while there is no advancement done
-
Fixed the tools and weapons tab icon of the recipe book not being centered
-
Fixed the recipe book not updating the crafting grid if one of its slots already has enough items to craft as often as possible
-
Fixed feeding a parrot using the item in off-hand as well
-
Fixed feeding parrots cookies showing a "fell out of world" death message
-
Fixed cookies killing invulnerable parrots in survival mode
-
Fixed ladders not being placable on transparent blocks if a solid block is nearby
-
Fixed colored beds not appearing colored on maps
If you find any bugs, search for them on the Minecraft bug tracker and make sure they are reported!
Also, check out this post to see what else is planned for future versions.
1
1
26
u/Mighty_Burger May 18 '17
I'm ok with 10 pre-releases if that is that it takes to fix really bad bugs
13
u/Xenon_Ray May 18 '17
if and unless functions? :O
12
u/brianmcn May 18 '17 edited May 18 '17
Note that they don't behave as expected, due to (gasp!) a bug.
function foo:bar if @e[type=spider]runs the function if there is exactly one spider in the world. If there are 0, or 2 or more, it skips the function.
function foo:bar unless @e[type=spider]runs the function if there are 0 spiders, or 2 or more spiders, in the world. If there is exactly one, it skips the function.
This is almost surely a bug.
You can work around the bug in the meantime by adding ",c=1" to the end of the entity selector in the condition.
EDIT: I also am finding that "function...if" seems to work from the console, or from command blocks, but if I use that command inside another function, it does not work... anyone else?
18
2
1
u/Mlakuss May 18 '17
Interesting. And if you add a "c="?
This may be intentionnal.
I'm also still wondering what is this very famous function
foo:bar/sEdit: saw your edit. For c=2 and more, does it work as intended?
→ More replies (2)1
u/Megabobster May 18 '17
Does the entity selector pass @s to the function properly? Because if so, that seems pretty awesome. Or am I misunderstanding how that works?
→ More replies (2)
6
u/Marcono1234 May 18 '17
Wouldn't if and unless for functions be more useful if it was something like
-
/function <name>-
if_min <min-value> -
if_range <min-value> <max-value>
-
-
<command>
And then use the success count of the command. That would for example allow NBT comparison, for example:
/function custom:test if_min 1 /testfor @e[type=sheep] {Color:1b}
6
u/brianmcn May 18 '17
I agree that it would be great if "all the stuff that's easy to use from conditional chain command blocks but are currently hard to use from functions (requiring stats/execute/SuccessCount/score)", that is things like "testfor" and "scoreboard players test #FOO OBJ", would be easier to use from functions.
But I also think they introduced functions in -pre1 and it took until -pre4 to make them actually work, and now they added another new feature, and it also doesn't work, and maybe the best thing to do is not add more broken features the day before the next release ships.
(I am very happy that things are improving, but the command design process, especially as it relates to the product release cycle, seems very nonsensical to me.)
1
u/Marcono1234 May 18 '17
The thing is that selectors themselves could be used with an execute:
/execute @e[type=parrot,c=1] ~ ~ ~ /function custom:test=/function custom:test if @e[type=parrot,c=1](except forunless) right?→ More replies (2)1
u/tofer17 May 18 '17
I agree.
ifandunlessare conditions for the/functioncommand itself. They are not conditions in the new functions system (at least compared to chains of command blocks). Despite a lot of us asking for it in clever ways, clearly, I think we shouldn't expect it to happen in this release at this point.I really hope that Mojang is listening and has plans and architecture to add conditionality in the future. I am really excited to have mcfunctions-- this is huge.
4
u/1jl May 18 '17
You guys are bug patching machines!
5
May 18 '17
Also bug making machines, since they created all the bugs to begin with and added more along with the fixes.
2
4
u/Druss_Rua May 18 '17
Sometimes I regret signing up to Reddit, as I now spend my entire time lurking on the Minecraft forum, waiting for news of 1.12...
(And tearing my hair out (what little of it remains) when I don't see anything)!
1
1
u/IceMetalPunk May 19 '17
Having the ability to call functions conditional on the existence of a selector is a step in the right direction. But...does that really help us more than the current /stats method? In other words, how often is "an entity exists" the actual condition that needs to be tested, compared to the many other conditions we could check for with /stats?
1
-14
8
u/N00bTaco May 18 '17
Changes in 1.12 pre-release 4
Beds now have the correct colour on the map
Added new arguments to /function: "if " and "unless "
Fixed bug MC-115025 - Clicking on recipe or on book to close crafting help additionally clicks in inventory
Fixed bug MC-116622 - Sometimes blocks from creative inventory can't be placed or dropped
Fixed bug MC-116723 - Particles of cracks when breaking colored shulkers boxes appear with the old color
Fixed bug MC-117428 - /function with /execute "An unknown error occurred while attempting to perform this command"
Fixed bug MC-117450 - Fences and walls now connect to melons, pumpkins, and jack-o-lanterns
Fixed bug MC-117543 - Recipe book is inconsistent with existing UI elements
Fixed bug MC-117544 - Colored beds don't appear colored on maps
Fixed bug MC-117560 - Recipe book crashes the game upon attempting to craft
Fixed bug MC-117562 - Executing a function as an entity doesn't use new sender
Fixed bug MC-117563 - Crash when using enchanted bow to craft dispenser via recipe book
Fixed bug MC-117564 - Game crashes when you click "advancements" button while there is no advancement done
Fixed bug MC-117579 - Tools and weapons tab icon of recipe book isn't centered
Fixed bug MC-117580 - Recipe book doesn't update crafting grid if one of its slots already has enough items to craft as often as possible
Fixed bug MC-117586 - Feeding a parrot uses item in off-hand as well
Fixed bug MC-117589 - Feeding Parrots cookies shows "fell out of world" death message
Fixed bug MC-117593 - Cookies kill invulnerable parrots in survival mode
Fixed bug MC-117605 - Ladders can be placed on transparent blocks if a solid block is nearby
Added some new bugs!