This gist covers the changes to loot tables introduced in 18w43a, the first 1.14 snapshot. Check out this more in-depth loot table guide.
Last updated: 18w49a
This gist covers the changes to loot tables introduced in 18w43a, the first 1.14 snapshot. Check out this more in-depth loot table guide.
Last updated: 18w49a
Each test ranks a list of possible commands from best (most efficient) to worst (least efficient). Lower percentages are better. You can only compare the percentages between the commands in the same test.
These tests were done in a superflat world with no entities except for the player. The only commands running are the ones from the test.
MinecraftServer::tickServer
ServerFunctionManager::tick
ServerLevel::tick
(per dimension)
ServerLevel::tickTime
(overworld only)This guide will showcase how to create a data pack that adds a custom structure to the world. There is also a data pack download of this complete example.
Always leave the world and rejoin to apply the new changes!
Updates for both 1.18.2 and 1.19 can be found at https://misode.github.io/guides/adding-custom-structures/
Table of Contents |
---|
Density Factor |
Slides target size offset |
density_factor |
density_offset |
|
---|---|---|
2 | 0 |
I decided to investigate the bundle size for misode.github.io and was quite shocked. After code splitting and tree shaking I managed to get the total JS output size from 5.22MB down to 3.95MB, and the main entrypoint from 4.53MB down to 703KB.
The initial bundle was 5.22MB, with the main chunk 4.53MB (the red part). The only chunks split up were the different languages localizations.
One of the first things I noticed was that highlight.js included a bunch of languages, while I'm only using JSON. This eliminated 1.35MB.
{ | |
"type": "min", | |
"input_1": { | |
"type": "squeeze", | |
"input": { | |
"type": "mul", | |
"input_1": { | |
"type": "interpolated", | |
"input": { | |
"type": "blend", |
data merge entity @s[type=minecart] {CustomDisplayTile:1,DisplayState:{Name:"minecraft:command_block",Properties:{conditional:"true",facing:"down"}},DisplayOffset:4} | |
data merge entity @s[type=chest_minecart] {CustomDisplayTile:1,DisplayState:{Name:"minecraft:command_block",Properties:{conditional:"true",facing:"up"}},DisplayOffset:4} | |
data merge entity @s[type=furnace_minecart] {CustomDisplayTile:1,DisplayState:{Name:"minecraft:command_block",Properties:{conditional:"true",facing:"north"}},DisplayOffset:4} | |
data merge entity @s[type=tnt_minecart] {CustomDisplayTile:1,DisplayState:{Name:"minecraft:command_block",Properties:{conditional:"true",facing:"south"}},DisplayOffset:4} | |
data merge entity @s[type=hopper_minecart] {CustomDisplayTile:1,DisplayState:{Name:"minecraft:command_block",Properties:{conditional:"true",facing:"west"}},DisplayOffset:4} | |
tag @s add invisible_minecart |