- IN_FIRE
- CAMPFIRE
- ON_FIRE
- LAVA
- HOT_FLOOR
- DROWN
The 1.21.10 (including 1.21.9) branch has now been merged, thanks to all who tested and contributed to it!
Minestom tracks the latest LTS version of Java. Since Java 25 has been released, it is now the minimum required version of Java to use Minestom. To use Java 25 you must be on IntelliJ IDEA 2025.2 or higher.
In gradle (Kotlin), you can set the Java version as such:
java {
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
| static { | |
| var packetListenerManager = MinecraftServer.getPacketListenerManager(); | |
| packetListenerManager.setPlayListener(ClientCommandChatPacket.class, CommandHandlingPlayer::execCommand); | |
| packetListenerManager.setPlayListener(ClientTabCompletePacket.class, CommandHandlingPlayer::tabCommand); | |
| } | |
| private static void execCommand(@NotNull ClientCommandChatPacket packet, @NotNull Player player) { | |
| final String command = packet.message(); |
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.hollowcube.mapmaker.map.block.handler; | |
| import net.kyori.adventure.key.Key; | |
| import net.kyori.adventure.nbt.BinaryTag; | |
| import net.minestom.server.codec.Transcoder; | |
| import net.minestom.server.component.DataComponents; | |
| import net.minestom.server.instance.block.Block; | |
| import net.minestom.server.instance.block.BlockHandler; | |
| import net.minestom.server.item.component.HeadProfile; | |
| import net.minestom.server.tag.Tag; |
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
| Configuration on demand is an incubating feature. | |
| Parallel Configuration Cache is an incubating feature. | |
| Reusing configuration cache. | |
| Task graph printing is an incubating feature. | |
| Tasks graph for: build | |
| +--- :bin:config:build (org.gradle.api.DefaultTask) | |
| | +--- :bin:config:assemble (org.gradle.api.DefaultTask) | |
| | | \--- :bin:config:jar (org.gradle.api.tasks.bundling.Jar) | |
| | | +--- :bin:config:classes (org.gradle.api.DefaultTask) | |
| | | | +--- :bin:config:compileJava (org.gradle.api.tasks.compile.JavaCompile) |
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
| local world = script.Parent | |
| function create_bit_board(width, height) | |
| local bits_needed = width * height | |
| local bytes_needed = math.ceil(bits_needed / 8) | |
| return buffer.create(bytes_needed), width, height | |
| end | |
| function get_cell(board, width, x, y) | |
| local bit_index = y * width + x |
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.hollowcube.mapmaker.map.instance; | |
| import net.kyori.adventure.nbt.CompoundBinaryTag; | |
| import net.minestom.server.MinecraftServer; | |
| import net.minestom.server.instance.Chunk; | |
| import net.minestom.server.instance.Instance; | |
| import net.minestom.server.instance.Section; | |
| import net.minestom.server.instance.block.Block; | |
| import net.minestom.server.instance.block.BlockHandler; | |
| import net.minestom.server.instance.heightmap.Heightmap; |
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.hollowcube.compat.moulberrytweaks.packets; | |
| import net.hollowcube.compat.api.packet.ClientboundModPacket; | |
| import net.hollowcube.compat.moulberrytweaks.MoulberryTweaksAPI; | |
| import net.hollowcube.compat.moulberrytweaks.debugrender.DebugShape; | |
| import net.kyori.adventure.key.Key; | |
| import net.minestom.server.network.NetworkBuffer; | |
| import net.minestom.server.network.NetworkBufferTemplate; | |
| import org.intellij.lang.annotations.MagicConstant; | |
| import org.jetbrains.annotations.NotNull; |
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
| { | |
| type: "mapmaker:happy_ghast", | |
| harness: "green", | |
| loop: 1b, | |
| path: [ | |
| [ | |
| "~5", | |
| "~", | |
| "~" | |
| ], |
NewerOlder