diff --git a/gradle.properties b/gradle.properties index f0adf34..c39a397 100644 --- a/gradle.properties +++ b/gradle.properties @@ -8,7 +8,7 @@ yarn_mappings=1.20.6+build.3 loader_version=0.15.11 # Mod Properties -mod_version=1.1 +mod_version=1.2 maven_group=systems.brn archives_base_name=Server_storage diff --git a/src/main/java/systems/brn/server_storage/ServerStorage.java b/src/main/java/systems/brn/server_storage/ServerStorage.java index 3922106..f5b412b 100644 --- a/src/main/java/systems/brn/server_storage/ServerStorage.java +++ b/src/main/java/systems/brn/server_storage/ServerStorage.java @@ -13,11 +13,11 @@ public class ServerStorage implements ModInitializer { @Override public void onInitialize() { + StorageBlock.register(); + StorageBlockItem.register(); PolymerResourcePackUtils.addModAssets(MODID); PolymerResourcePackUtils.markAsRequired(); - StorageBlock.register(); - StorageBlockItem.register(); } } diff --git a/src/main/resources/data/serverstorage/loot_tables/blocks/storage.json b/src/main/resources/data/serverstorage/loot_tables/blocks/storage.json new file mode 100644 index 0000000..5ea40e0 --- /dev/null +++ b/src/main/resources/data/serverstorage/loot_tables/blocks/storage.json @@ -0,0 +1,19 @@ +{ + "type": "minecraft:block", + "pools": [ + { + "rolls": 1, + "entries": [ + { + "type": "minecraft:item", + "name": "serverstorage:storage" + } + ], + "conditions": [ + { + "condition": "minecraft:survives_explosion" + } + ] + } + ] +} \ No newline at end of file diff --git a/src/main/resources/data/serverstorage/recipes/storage.json b/src/main/resources/data/serverstorage/recipes/storage.json new file mode 100644 index 0000000..2275b45 --- /dev/null +++ b/src/main/resources/data/serverstorage/recipes/storage.json @@ -0,0 +1,24 @@ +{ + "type": "minecraft:crafting_shaped", + "category": "redstone", + "pattern": [ + "#A#", + "AEA", + "#A#" + ], + "key": { + "#": { + "item": "minecraft:diamond" + }, + "A": { + "item": "minecraft:redstone" + }, + "E": { + "item": "minecraft:chest" + } + }, + "result": { + "id": "serverstorage:storage", + "count": 1 + } +} \ No newline at end of file