Originally created in 2015, the Lucky Block is a mod for Minecraft which has since gained over 5 million users. The mod adds a new block to the game which produces random outcomes, as well as items such as the lucky sword, bow and potion. Additionally, the mod can be customized with hundreds of community add-ons.
All Lucky Block releases follow the format:
lucky-block-{loader}@{minecraft}-{major}.{minor}
loader
: forge/fabric/bedrockminecraft
: Minimum compatible Minecraft versionmajor
: Incremented on every feature/fix to the core mod.minor
: Incremented on every fix to this particular loader
/minecraft
combo.Dependencies are listed in project.yaml
, and lockfiles can be updated with:
./gradlew dependencies --write-locks
To use IntelliJ, ensure that the Gradle plugin is enabled, and import the directory as a Gradle project.
./gradlew tasks
: View all available tasks./gradlew clean
: Clean the build folder. Always run this after updating the version number../gradlew :{forge/fabric}:build
: Build the project, and create a distributable jar file in build/dist/{version}
./gradlew :jvmTemplateAddonDist
: Copy the latest template addon to build/dist/{version}
./gradlew :{forge/fabric}:runClient
: Run a Minecraft client./gradlew :{forge/fabric}:runServer
: Run a Minecraft server./gradlew :{forge/fabric/tools}:test --tests "*{test name regex}" --info
: Run testssudo java -jar DCEVM-8uXXX-installer.jar
Preferences > Build, Execution, Deployment > Compiler > Excludes
and add ~/bedrock
runClient
task in debug modecommon/src/commonMain/kotlin/drop/DropEvaluator
runServer
task for the first timerun/eula.txt
run/server.properties
with the following:
gamemode=creative
online-mode=false
runServer
again/op <player>
:25565
For convenience, create a symlink to the resource and behavior packs:
mklink /D "C:\Users\%USERNAME%\AppData\Local\Packages\Microsoft.MinecraftUWP_8wekyb3d8bbwe\LocalState\games\com.mojang\development_resource_packs" "C:\...\bedrock\run\development_resource_packs"
mklink /D "C:\Users\%USERNAME%\AppData\Local\Packages\Microsoft.MinecraftUWP_8wekyb3d8bbwe\LocalState\games\com.mojang\development_behavior_packs" "C:\...\bedrock\run\development_behavior_packs"
./gradlew :tools:run --args "generate-bedrock-drops --help"
./gradlew :tools:run --args "nbt-to-mcstructure --help"
./gradlew :tools:run --args "download-block-ids --help"
Copyright © 2015-2021 Alex Socha. All Rights Reserved.
By submitting a pull request, you agree to transfer all rights and ownership to the copyright holder.