Skip to content

Commit

Permalink
✨ Add support for Fabric Expanded Storage (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
nebuIr committed Nov 30, 2021
1 parent 6122160 commit 102a067
Show file tree
Hide file tree
Showing 21 changed files with 128 additions and 0 deletions.
8 changes: 8 additions & 0 deletions assets/expandedstorage/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
The mod code is licensed under Apache license version 2.

The mod assets are All Rights Reserved, Copyright 2021 NinjaPhenix with the following exceptions:
- All language files are licensed under 0BSD, a basic public domain license, use them how ever you wish.
- The pumpkin and christmas chest textures were made by Yoghurt4C and are public domain, use them how ever you wish.

Note: if you maintain a fork of Expanded Storage and comply with the Apache license version 2 that the code is under
you have my permission to also use all the assets, data and buildscripts, consider this retroactive to all 7.x versions.
11 changes: 11 additions & 0 deletions assets/expandedstorage/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Expanded Storage source code repository
There's going to be some changes over the next 2 weeks however here's the gist of it.
1. The master branch will always be All Rights Reserved, it's for assets and ideas.
2. The mod source code will be published under something more permissive, most likely apache license v2.
3. The mod assets will remain All Rights Reserved with few exceptions which include:
1. The textures made by Yoghurt4C are public domain, use them how you like, this is limited to the pumpkin chest and christmas chest textures.
2. The localization from the issue tracker repo is 0BSD, use them how you like.

If your mod integrates with expanded storage in any way please get in touch, so I can provide a non-breaking way to access the mod.

That's all 😄
41 changes: 41 additions & 0 deletions assets/expandedstorage/lang/en_us.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"itemGroup.expandedstorage": "\u00a77Expanded Storage",
"container.expandedstorage.generic_double": "\u00a77Large %s",
"block.expandedstorage.iron_barrel": "\u00a77Iron Barrel",
"block.expandedstorage.gold_barrel": "\u00a77Gold Barrel",
"block.expandedstorage.diamond_barrel": "\u00a77Diamond Barrel",
"block.expandedstorage.obsidian_barrel": "\u00a77Obsidian Barrel",
"block.expandedstorage.netherite_barrel": "\u00a77Netherite Barrel",
"block.expandedstorage.wood_chest": "\u00a77Chest",
"block.expandedstorage.pumpkin_chest": "\u00a77Pumpkin Chest",
"block.expandedstorage.christmas_chest": "\u00a77Present",
"block.expandedstorage.iron_chest": "\u00a77Iron Chest",
"block.expandedstorage.gold_chest": "\u00a77Gold Chest",
"block.expandedstorage.diamond_chest": "\u00a77Diamond Chest",
"block.expandedstorage.obsidian_chest": "\u00a77Obsidian Chest",
"block.expandedstorage.netherite_chest": "\u00a77Netherite Chest",
"block.expandedstorage.old_diamond_chest": "\u00a77Old Diamond Chest",
"block.expandedstorage.old_gold_chest": "\u00a77Old Gold Chest",
"block.expandedstorage.old_iron_chest": "\u00a77Old Iron Chest",
"block.expandedstorage.old_netherite_chest": "\u00a77Old Netherite Chest",
"block.expandedstorage.old_obsidian_chest": "\u00a77Old Obsidian Chest",
"block.expandedstorage.old_wood_chest": "\u00a77Old Chest",
"block.expandedstorage.vanilla_wood_mini_chest": "\u00a77Mini Chest",
"block.expandedstorage.wood_mini_chest": "\u00a77Mini Chest",
"block.expandedstorage.pumpkin_mini_chest": "\u00a77Pumpkin Mini Chest",
"block.expandedstorage.red_mini_present": "\u00a77Red Mini Present",
"block.expandedstorage.white_mini_present": "\u00a77White Mini Present",
"block.expandedstorage.candy_cane_mini_present": "\u00a77Candy cane Mini Present",
"block.expandedstorage.green_mini_present": "\u00a77Green Mini Present",
"block.expandedstorage.lavender_mini_present": "\u00a77Lavender Mini Present",
"block.expandedstorage.pink_amethyst_mini_present": "\u00a77Pink Amethyst Mini Present",
"block.expandedstorage.vanilla_wood_mini_chest_with_sparrow": "\u00a77Mini Chest",
"block.expandedstorage.wood_mini_chest_with_sparrow": "\u00a77Mini Chest",
"block.expandedstorage.pumpkin_mini_chest_with_sparrow": "\u00a77Pumpkin Mini Chest",
"block.expandedstorage.red_mini_present_with_sparrow": "\u00a77Red Mini Present",
"block.expandedstorage.white_mini_present_with_sparrow": "\u00a77White Mini Present",
"block.expandedstorage.candy_cane_mini_present_with_sparrow": "\u00a77Candy cane Mini Present",
"block.expandedstorage.green_mini_present_with_sparrow": "\u00a77Green Mini Present",
"block.expandedstorage.lavender_mini_present_with_sparrow": "\u00a77Lavender Mini Present",
"block.expandedstorage.pink_amethyst_mini_present_with_sparrow": "\u00a77Pink Amethyst Mini Present"
}
23 changes: 23 additions & 0 deletions assets/expandedstorage/lang/fr_fr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"itemGroup.expandedstorage": "\u00a77Expanded Storage",
"container.expandedstorage.generic_double": "\u00a77Grand %s",
"block.expandedstorage.iron_barrel": "\u00a77Tonneau de Fer",
"block.expandedstorage.gold_barrel": "\u00a77Tonneau en Or",
"block.expandedstorage.diamond_barrel": "\u00a77Tonneau en Diamant",
"block.expandedstorage.obsidian_barrel": "\u00a77Tonneau en Obsidienne",
"block.expandedstorage.netherite_barrel": "\u00a77Tonneau en Netherite",
"block.expandedstorage.wood_chest": "\u00a77Coffre",
"block.expandedstorage.pumpkin_chest": "\u00a77Coffre Citrouille",
"block.expandedstorage.christmas_chest": "\u00a77Coffre de Nöel",
"block.expandedstorage.iron_chest": "\u00a77Coffre en Fer",
"block.expandedstorage.gold_chest": "\u00a77Coffre en Or",
"block.expandedstorage.diamond_chest": "\u00a77Coffre en Diamant",
"block.expandedstorage.obsidian_chest": "\u00a77Coffre en Obsidienne",
"block.expandedstorage.netherite_chest": "\u00a77Coffre en Netherite",
"block.expandedstorage.old_diamond_chest": "\u00a77Ancien Coffre en Diamant",
"block.expandedstorage.old_gold_chest": "\u00a77Ancien Coffre en Or",
"block.expandedstorage.old_iron_chest": "\u00a77Ancien Coffre en Fer",
"block.expandedstorage.old_netherite_chest": "\u00a77Ancien Coffre en Netherite",
"block.expandedstorage.old_obsidian_chest": "\u00a77Ancien Coffre en Obsidienne",
"block.expandedstorage.old_wood_chest": "\u00a77Ancien Coffre"
}
23 changes: 23 additions & 0 deletions assets/expandedstorage/lang/ru_ru.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"itemGroup.expandedstorage": "\u00a77Расширенное хранилище",
"container.expandedstorage.generic_double": "\u00a77Большой %s",
"block.expandedstorage.iron_barrel": "\u00a77Железная бочка",
"block.expandedstorage.gold_barrel": "\u00a77Золотая бочка",
"block.expandedstorage.diamond_barrel": "\u00a77Алмазная бочка",
"block.expandedstorage.obsidian_barrel": "\u00a77Обсидиановая бочка",
"block.expandedstorage.netherite_barrel": "\u00a77Незеритовая бочка",
"block.expandedstorage.wood_chest": "\u00a77Деревянный сундук",
"block.expandedstorage.pumpkin_chest": "\u00a77Тыквенный сундук",
"block.expandedstorage.christmas_chest": "\u00a77Рождественский сундук",
"block.expandedstorage.iron_chest": "\u00a77Железный сундук",
"block.expandedstorage.gold_chest": "\u00a77Золотой сундук",
"block.expandedstorage.diamond_chest": "\u00a77Алмазный сундук",
"block.expandedstorage.obsidian_chest": "\u00a77Обсидиановый сундук",
"block.expandedstorage.netherite_chest": "\u00a77Незеритовый сундук",
"block.expandedstorage.old_diamond_chest": "\u00a77Старый алмазный сундук",
"block.expandedstorage.old_gold_chest": "\u00a77Старый золотой сундук",
"block.expandedstorage.old_iron_chest": "\u00a77Старый железный сундук",
"block.expandedstorage.old_netherite_chest": "\u00a77Старый незеритовый сундук",
"block.expandedstorage.old_obsidian_chest": "\u00a77Старый обсидиановый сундук",
"block.expandedstorage.old_wood_chest": "\u00a77Старый деревянный сундук"
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions assets/ninjaphenix_container_lib/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Copyright 2021 NinjaPhenix

Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 changes: 17 additions & 0 deletions assets/ninjaphenix_container_lib/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# NinjaPhenix's Container Library
## Synopsis
In short this contains all the code from Expanded Storage used to open inventories including the different screen options.

## Consuming the library
If you are to consume this library please jar in jar it or have users download it from Curseforge or Modrinth:
- Curseforge: https://www.curseforge.com/minecraft/mc-mods/ninjaphenixs-container-library
- Modrinth: https://modrinth.com/mod/ninjaphenix-container-library

Whilst you may fork and shade this project and add your own features I would prefer to avoid multiple versions of the library as it would worsen the user experience.

Therefore, if anything can be added to help please let me know or feel free to open a PR.

## Planned features
- Texture generation before screens are opened.
- User configurable screen sizes including empty slots, will likely generate separate textures for blanked slots rather than in game rendering approach used now.
- Allow changing screen type depending on size of inventory. e.g. page screen for 135 slots, single for 108 slots
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 102a067

Please sign in to comment.