Skip to content

Commit 7a0fc5a

Browse files
committed
docs(known-issues): Remove outdated section on using existing data packs, update with contribution encouragement and current limitations.
1 parent 281f7a4 commit 7a0fc5a

File tree

1 file changed

+2
-52
lines changed

1 file changed

+2
-52
lines changed

website/src/jsMain/resources/markdown/doc/Known_Issues.md

Lines changed: 2 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -23,56 +23,6 @@ Such features would be very hard to implement just in Kore, but if you really ne
2323

2424
Kore is only designed to create Data Packs, not Resource Packs, but it could be implemented in the future.
2525

26-
## Use existing Data Packs
26+
## Updates
2727

28-
Using already existing Data Packs could be done, it wouldn't be that hard to implement and some things to consider have already been tried. <br>
29-
The main challenge is to know what format to use as an interface to call other Data Packs features.
30-
31-
To import such packs, we would need to create a `Kore` Gradle Plugin that you import and configure in your `build.gradle.kts` file.
32-
Example:
33-
```kotlin
34-
plugins {
35-
id("io.github.ayfri.kore") version "0.1.0"
36-
}
37-
38-
kore {
39-
// Experimental name, to be defined
40-
generateMappings {
41-
datapacks("path/to/other/datapack1", "path/to/other/datapack2")
42-
}
43-
}
44-
```
45-
46-
Importing Resource Packs could also be done in a similar way.
47-
48-
Here some examples of what it would generate:
49-
50-
### Example 1
51-
52-
```kotlin
53-
data object MyOtherPack {
54-
const val NAMESPACE = "my_other_pack"
55-
56-
val myFunction = FunctionArgument("my_function", NAMESPACE)
57-
val myRecipe = RecipeArgument("my_recipe", NAMESPACE)
58-
}
59-
60-
// Usage:
61-
dataPack("my_main_pack") {
62-
load {
63-
function(MyOtherPack.myFunction)
64-
recipe(allPlayers()).give(MyOtherPack.myRecipe)
65-
}
66-
}
67-
```
68-
69-
### Example 2
70-
71-
```kotlin
72-
const val MY_OTHER_PACK = "my_other_pack"
73-
74-
fun DataPack.myFunction() = FunctionArgument("my_function", MY_OTHER_PACK)
75-
fun DataPack.myRecipe() = RecipeArgument("my_recipe", MY_OTHER_PACK)
76-
```
77-
78-
But deciding what to do is still an open question, and creating a Gradle Plugin is not a small task.
28+
Kore is sometimes a little bit outdated, and some features may not work as expected. I am working on my free time to keep it up to date, so fill free to help me update it by contributing to the project.

0 commit comments

Comments
 (0)