You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 objectMyOtherPack {
54
-
constvalNAMESPACE="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
-
constvalMY_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