-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #387 from lonefelidae16/port/1.21.4
Port to 1.21.4
- Loading branch information
Showing
165 changed files
with
1,055 additions
and
1,276 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
plugins { | ||
id 'fabric-loom' version '1.7-SNAPSHOT' | ||
id 'fabric-loom' version '1.9-SNAPSHOT' | ||
id 'maven-publish' | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
org.gradle.jvmargs=-Xmx2048m | ||
# Fabric Properties | ||
# check these on https://fabricmc.net/develop/ | ||
minecraft_version=1.21 | ||
yarn_mappings=1.21+build.9 | ||
loader_version=0.15.11 | ||
minecraft_version=1.21.4 | ||
yarn_mappings=1.21.4+build.1 | ||
loader_version=0.16.9 | ||
|
||
# Mod Properties | ||
mod_version = 1.10.1 | ||
maven_group = me.juancarloscp52 | ||
archives_base_name = bedrockify | ||
|
||
# Dependencies | ||
fabric_version=0.102.0+1.21 | ||
modmenu_version=11.0.1 | ||
cloth_config_version=15.0.128 | ||
apple_skin=mc1.21-3.0.5 | ||
dab_version=2.6.3+1.21-fabric | ||
fabric_version=0.111.0+1.21.4 | ||
modmenu_version=13.0.0-beta.1 | ||
cloth_config_version=17.0.142 | ||
apple_skin=mc1.21.3-3.0.6 | ||
dab_version=2.6.3+1.21.3-fabric | ||
iris_version=1.7.1+1.21 | ||
sodium_version=mc1.20.1-0.5.10 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
#!/usr/bin/python3 | ||
|
||
""" Recipe Replacer for Minecraft 1.21.4 | ||
Created at Dec 12, 2024 by lonefelidae16 <[email protected]> | ||
Usage: | ||
> recipeReplacer1_21_4.py [--help | -h] [--test | -t] /path/to/target/recipe.json | ||
""" | ||
|
||
import json | ||
import sys | ||
import argparse | ||
|
||
parser = argparse.ArgumentParser( | ||
prog='RecipeReplacer', | ||
description='Make recipe.json compatible with MC1.21.4') | ||
parser.add_argument('filename') | ||
parser.add_argument('-t', '--test', action='store_true', help='show result JSON to STDOUT, no changes to the specified file') | ||
args = parser.parse_args() | ||
|
||
if __name__ == '__main__': | ||
|
||
struct = {} | ||
replaced = False | ||
with open(args.filename, 'r') as target_file: | ||
struct = json.load(target_file) | ||
if not 'type' in struct or not 'result' in struct: | ||
exit() | ||
if struct['type'] == 'minecraft:crafting_shapeless': | ||
ingredient_arr = [] | ||
for ing in struct['ingredients']: | ||
if 'item' in ing: | ||
ingredient_arr.append(ing['item']) | ||
elif 'tag' in ing: | ||
ingredient_arr.append('#' + ing['tag']) | ||
struct['ingredients'] = ingredient_arr | ||
replaced = True | ||
elif struct['type'] == 'minecraft:crafting_shaped': | ||
if not 'key' in struct: | ||
exit() | ||
for k in struct['key']: | ||
if 'item' in struct['key'][k]: | ||
_item = struct['key'][k]['item'] | ||
del struct['key'][k]['item'] | ||
struct['key'][k] = _item | ||
replaced = True | ||
elif 'tag' in struct['key'][k]: | ||
_tag = '#' + struct['key'][k]['tag'] | ||
del struct['key'][k]['tag'] | ||
struct['key'][k] = _tag | ||
replaced = True | ||
if type(struct['result']) is not str and not 'count' in struct['result']: | ||
struct['result']['count'] = 1 | ||
replaced = True | ||
|
||
if replaced: | ||
if args.test: | ||
print(json.dumps(struct, indent=2)) | ||
else: | ||
with open(args.filename, 'w') as target_file: | ||
json.dump(struct, target_file, indent=2) | ||
else: | ||
print(args.filename + ": no changes made") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
...main/java/me/juancarloscp52/bedrockify/client/features/eatingAnimations/IEatingState.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package me.juancarloscp52.bedrockify.client.features.eatingAnimations; | ||
|
||
import net.minecraft.util.Hand; | ||
|
||
import java.util.Optional; | ||
|
||
public interface IEatingState { | ||
default void setEatingHand(Hand hand) { | ||
} | ||
|
||
default Optional<Hand> getEatingHand() { | ||
return Optional.empty(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.