GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Kore-Minecraft/Examples: Examples of datapacks made or recreated using Kore.

BranchesTags
Open more actions menu

Latest commit

 

History

34 Commits
34 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
more-apples
more-apples
 
 
ore-tycoon
ore-tycoon
 
 
out
out
 
 
rotten-flesh-to-leather
rotten-flesh-to-leather
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
example.module-template.yaml
example.module-template.yaml
 
 
kotlin
kotlin
 
 
kotlin.bat
kotlin.bat
 
 
project.yaml
project.yaml
 
 

Repository files navigation

Kore Examples

Minecraft datapacks written in Kotlin with Kore, a library that generates datapacks from a Kotlin DSL instead of hand-written JSON and .mcfunction files.

Each folder is a standalone example, from a single recipe to a complete game. Their generated output is committed in out/, so you can compare the Kotlin with the datapack it produces.

Examples

Ore Tycoon

An idle mining tycoon on a floating island: punch a giant ore, buy drills that mine for you, grab golden nuggets, evolve the core through 8 levels and prestige. Co-op, pure vanilla, playable in singleplayer.

It shows how a full game fits together with Kore:

  • Clickable interaction entities detected with advancements.
  • Live holograms, a sidebar and a boss bar with formatted numbers.
  • A pause screen menu built with the Menu helper, usable without operator rights.
  • Scoreboard math on fake players with the oop module, macros, storage and a procedurally generated island.

More Apples

A recreation of the MoreApples datapack by Stoupy51: every type of leaves can drop apples, twice as often as vanilla oak leaves.

It shows how to:

  • Override vanilla loot tables for all leaves.
  • Use predicates and conditions such as Silk Touch checks.

Rotten Flesh To Leather

A recreation of the rotten-flesh-to-leather datapack: smoke rotten flesh for leather and smelt it for brown dye.

It shows how to add smelting and smoking recipes.

How to run

The examples build with the JetBrains Kotlin toolchain, whose wrapper is committed and downloads the toolchain on its first run.

./kotlin run -m ore-tycoon       # Windows: .\kotlin.bat run -m ore-tycoon

The datapack is generated in out/<pack name>. With the CI environment variable set, a .zip is generated instead.

project.yaml includes every folder holding a module.yaml, so a new example only needs its own folder.

Installation

  1. Generate the datapack, or download it from Modrinth.
  2. In Minecraft, select your world, click Edit, then Open World Folder.
  3. Copy the datapack folder or .zip into the datapacks folder.
  4. Open the world, or run /reload if it is already open.

Publishing

.github/workflows/publish.yml publishes one example to Modrinth per GitHub release. The release tag picks the example and the version: ore-tycoon-v1.0.0 builds ore-tycoon and uploads ore-tycoon-1.0.0.zip with its CHANGELOG.md. The workflow can also be started by hand from the Actions tab.

The Modrinth project of each example is set in the workflow and needs a MODRINTH_TOKEN repository secret, see ore-tycoon/PUBLISHING.md.

License

This project is licensed under the GNU v3 License, see the LICENSE file for details.


Created with ❤️ using Kore.

About

Examples of datapacks made or recreated using Kore.

Topics

datapacksexampleskoreminecraft

Resources

Readme
GPL-3.0 license
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.