Add conversion mod to transfer data from i3→14
This makes i4 a modpack; files have been moved correspondingly.
|
@ -1,24 +0,0 @@
|
|||
---
|
||||
name: Bug report
|
||||
about: Create a report to help us improve
|
||||
title: ''
|
||||
labels: ''
|
||||
assignees: ''
|
||||
|
||||
---
|
||||
|
||||
**Describe the bug**
|
||||
A clear and concise description of what the bug is.
|
||||
|
||||
**To Reproduce**
|
||||
Steps to reproduce the behavior.
|
||||
|
||||
**Screenshots**
|
||||
If applicable, add screenshots to help explain your problem.
|
||||
|
||||
**Additional context**
|
||||
- Mod version? Release or git?
|
||||
- Engine version?
|
||||
- LuaJIT enabled?
|
||||
- Operating system?
|
||||
- Did you try to disable other mods except i3?
|
|
@ -1,21 +0,0 @@
|
|||
name: Luacheck
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
|
||||
luacheck:
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Setup ‘lua’
|
||||
uses: leafo/gh-actions-lua@v8
|
||||
with:
|
||||
luaVersion: 5.1
|
||||
- name: Setup ‘luarocks’
|
||||
uses: leafo/gh-actions-luarocks@v4
|
||||
- name: Setup ‘luacheck’
|
||||
run: luarocks install luacheck
|
||||
- name: Run ‘luacheck’ linter
|
||||
run: cd util; lua luacheck.lua
|
Before Width: | Height: | Size: 7.4 KiB After Width: | Height: | Size: 7.4 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 371 B After Width: | Height: | Size: 371 B |
Before Width: | Height: | Size: 248 B After Width: | Height: | Size: 248 B |
Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 41 KiB |
4
API.md
|
@ -16,7 +16,7 @@
|
|||
|
||||
### Tabs
|
||||
|
||||
![Screenshot of the inventory with the below example tab in focus.](res/api-tabs.png)
|
||||
![Screenshot of the inventory with the below example tab in focus.](.res/api-tabs.png)
|
||||
|
||||
#### `i4.new_tab(name, def)`
|
||||
|
||||
|
@ -92,7 +92,7 @@ A list of registered tabs.
|
|||
---
|
||||
|
||||
### Footer buttons
|
||||
![Screenshot of the inventory with the below example footer-button.](res/api-footer_button.png)
|
||||
![Screenshot of the inventory with the below example footer-button.](.res/api-footer_button.png)
|
||||
|
||||
`i4.new_footer_button(name, def)`
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# ![i4](res/i4_logo_scaled.png)
|
||||
# ![i4](.res/i4_logo_scaled.png)
|
||||
|
||||
![A screenshot of Minetest displaying i3’s inventory.](res/screenshot.png)
|
||||
![A screenshot of Minetest displaying i3’s inventory.](.res/screenshot.png)
|
||||
|
||||
[i4](https://notabug.org/jadedctrl/i4) is an inventory system for Minetest with a focus on cohesion. It is a fork of [i3](https://github.com/minetest-mods/i3), the “next-generation inventory.” Primary differences to `i3` include an extended [API](API.md), more efficient use of screen-space, and general house-keeping.
|
||||
|
||||
|
@ -65,4 +65,4 @@ Textures are under the [CC BY-SA 3.0](LICENSE.md#textures), by paramat & BlockMe
|
|||
Source code for i4 is under the [GNU GPLv3](LICENSE.md#gplv3), with contributions by Jaidyn Ann `<jadedctrl@posteo.at>`.
|
||||
Code from i3 is under the [MIT license](LICENSE.md#mit), and is by Jean-Patrick Guerrero (with contributions by SmallJoker & anonymous).
|
||||
|
||||
See [./LICENSE](LICENSE) for details.
|
||||
See [LICENSE.md](LICENSE.md) for details.
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
# i3→i4 Conversion Mod
|
||||
|
||||
This mod is very bare-bones, and it only exists to bridge the gap between i3 and i4.
|
||||
|
||||
Player data from i3 is transferred to i4; and mods that support i3 also work with i4, so long as this mod is present.
|
|
@ -0,0 +1,11 @@
|
|||
-- This is a placeholder mod, to mimic i3’s presence for mods that test for mods
|
||||
-- that test for it using modpath or some other mechanism.
|
||||
-- i4 is compatible with i3, mods can use the global tables i3 or i4.
|
||||
|
||||
local storage = core.get_mod_storage("i3")
|
||||
local data = core.deserialize(storage:get_string"data") or {}
|
||||
|
||||
if data and not i4.imported then
|
||||
i4.data = data
|
||||
i4.imported = true
|
||||
end
|
|
@ -0,0 +1,3 @@
|
|||
name = i3
|
||||
description = Conversion mod for i3 to i4
|
||||
depends = i4
|
|
@ -0,0 +1,5 @@
|
|||
# i4
|
||||
This is the primary mod for i4; please see the modpack’s [README.md](../README.md).
|
||||
It should be in the directory immediately above this one.
|
||||
|
||||
Alternatively, visit the [Git repository](https://notabug.org/jadedctrl/i4).
|
|
@ -1,4 +1,4 @@
|
|||
name = i4
|
||||
description = Next-generation inventory
|
||||
description = Cohesive and featureful inventory mod
|
||||
optional_depends = 3d_armor, skinsdb, awards
|
||||
min_minetest_version = 5.6
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 186 B After Width: | Height: | Size: 186 B |
Before Width: | Height: | Size: 191 B After Width: | Height: | Size: 191 B |
Before Width: | Height: | Size: 175 B After Width: | Height: | Size: 175 B |
Before Width: | Height: | Size: 167 B After Width: | Height: | Size: 167 B |
Before Width: | Height: | Size: 141 B After Width: | Height: | Size: 141 B |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 382 B After Width: | Height: | Size: 382 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 378 B After Width: | Height: | Size: 378 B |
Before Width: | Height: | Size: 372 B After Width: | Height: | Size: 372 B |
Before Width: | Height: | Size: 459 B After Width: | Height: | Size: 459 B |
Before Width: | Height: | Size: 209 B After Width: | Height: | Size: 209 B |
Before Width: | Height: | Size: 70 B After Width: | Height: | Size: 70 B |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 67 B After Width: | Height: | Size: 67 B |
Before Width: | Height: | Size: 146 B After Width: | Height: | Size: 146 B |
Before Width: | Height: | Size: 146 B After Width: | Height: | Size: 146 B |
Before Width: | Height: | Size: 146 B After Width: | Height: | Size: 146 B |
Before Width: | Height: | Size: 927 B After Width: | Height: | Size: 927 B |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 404 B After Width: | Height: | Size: 404 B |
Before Width: | Height: | Size: 749 B After Width: | Height: | Size: 749 B |
Before Width: | Height: | Size: 528 B After Width: | Height: | Size: 528 B |
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 227 B After Width: | Height: | Size: 227 B |
Before Width: | Height: | Size: 867 B After Width: | Height: | Size: 867 B |
Before Width: | Height: | Size: 198 B After Width: | Height: | Size: 198 B |
Before Width: | Height: | Size: 150 B After Width: | Height: | Size: 150 B |
Before Width: | Height: | Size: 70 B After Width: | Height: | Size: 70 B |
Before Width: | Height: | Size: 802 B After Width: | Height: | Size: 802 B |