This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package net.misode.worldgenexporter; | |
| import com.google.gson.Gson; | |
| import com.google.gson.GsonBuilder; | |
| import com.google.gson.JsonElement; | |
| import com.google.gson.JsonObject; | |
| import com.mojang.serialization.Codec; | |
| import com.mojang.serialization.DynamicOps; | |
| import com.mojang.serialization.JsonOps; | |
| import net.fabricmc.api.ModInitializer; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| key.jump | |
| key.sneak | |
| key.sprint | |
| key.left | |
| key.right | |
| key.back | |
| key.forward | |
| key.attack | |
| key.pickItem | |
| key.use |
⚡ = Advancement trigger
✨ = Enchantment effect
MinecraftServer::tickServer- 🕑 Update
/tickrate manager ServerFunctionManager::tick▶️ Run #load function tag if a reload happened▶️ Run #tick function tag
ServerLevel::tick(per dimension)
- 🕑 Update
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| commands = 0 | |
| for root, dirs, files in os.walk("."): | |
| for filename in [f for f in files if f.endswith(".mcfunction")]: | |
| with open(os.path.join(root, filename)) as f: | |
| commands += len([l for l in f.readlines() if l[0].isalpha()]) | |
| print(commands) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| for dir in os.walk("."): | |
| if not dir[0].startswith(r".\gm4_"): | |
| continue | |
| if not dir[0].endswith(r"\data"): | |
| continue | |
| for namespace in dir[1]: | |
| if namespace in ["load", "minecraft"]: | |
| continue |
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "advancement": { | |
| "type": "object", | |
| "properties": { | |
| "display": { | |
| "type": "object", | |
| "optional": true, | |
| "properties": { | |
| "icon": { | |
| "type": "object", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
| { | |
| "type": "decorated", | |
| "config": { | |
| "decorator": { | |
| "type": "chance", | |
| "config": { | |
| "chance": 48 | |
| } | |
| }, | |
| "feature": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // count: CountDecorator | |
| // - UniformInt count (min: -10, max: 128, maxSpread: 128) | |
| return IntStream.range(0, count.sample(random)) | |
| .mapToObj((e) -> pos); | |
| // count_noise: CountNoiseDecorator | |
| // - double noise_level | |
| // - int below_noise | |
| // - int above_noise |