Skip to content

Commit

Permalink
chore: update to minecraft 1.21.1
Browse files Browse the repository at this point in the history
  • Loading branch information
oddlama committed Sep 5, 2024
1 parent e778aad commit 9700488
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ subprojects {
apply(plugin = "java")

group = "org.oddlama.vane"
version = "1.14.0"
version = "1.15.0"

repositories {
mavenLocal()
Expand Down
Binary file added docs/resourcepacks/v1.15.0.zip
Binary file not shown.
4 changes: 2 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@

devshell.startup.pre-commit.text = self.checks.${localSystem}.pre-commit.shellHook;
packages = [
pkgs.temurin-bin-17
(pkgs.gradle.override {java = pkgs.temurin-bin-17;})
pkgs.temurin-bin
(pkgs.gradle.override {java = pkgs.temurin-bin;})
(pkgs.python3.withPackages (ps: [
ps.markdown
ps.toml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public JSONObject translations(String namespace, String lang_code) {
}
return lang_map;
}

public void add_item_model(NamespacedKey key, InputStream texture_png, Key parent) throws IOException {
item_textures.put(key, new PackEntry(texture_png.readAllBytes(), parent));
}
Expand All @@ -77,7 +77,7 @@ public void add_item_override(

private String generate_pack_mcmeta() {
final var pack = new JSONObject();
pack.put("pack_format", 32);
pack.put("pack_format", 34);
pack.put("description", description);

final var root = new JSONObject();
Expand Down Expand Up @@ -108,7 +108,7 @@ private JSONObject create_item_model(NamespacedKey texture, Key item_type) {
final var textures = new JSONObject();
if (texture.getNamespace().equals("minecraft") && texture.getKey().endsWith("shulker_box")) {
model.put("parent", "minecraft:item/template_shulker_box");

textures.put("particle", "minecraft:block/" + texture.getKey());
model.put("textures", textures);
} else {
Expand Down Expand Up @@ -221,7 +221,7 @@ class PackEntry {

/**
* Gives the type of parent used by the given item
*
*
* @param item_key
* @return a key containing the parent type
*/
Expand Down

0 comments on commit 9700488

Please sign in to comment.