Skip to content

Commit

Permalink
migration
Browse files Browse the repository at this point in the history
  • Loading branch information
topi-banana committed Nov 28, 2024
1 parent 9e4d5fb commit b587804
Show file tree
Hide file tree
Showing 12 changed files with 91 additions and 33 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ bin/

## preprocessor
**/src/main/generated
build.properties
build.properties
66 changes: 62 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# UniTemplate ✹🍤
# Kyoyu

## versions
[![License](https://img.shields.io/github/license/Vulpeus-Server/kyoyu.svg)](http://www.gnu.org/licenses/lgpl-3.0.html)
[![Issues](https://img.shields.io/github/issues/Vulpeus-Server/kyoyu.svg)](https://github.com/Vulpeus-Server/litematic-syncer/issues)
[![workflow](https://github.com/Vulpeus-Server/kyoyu/actions/workflows/gradle.yml/badge.svg)](https://github.com/Vulpeus-Server/litematic-syncer/actions/workflows/gradle.yml)
[![Modrinth](https://img.shields.io/modrinth/dt/VozTPxB4?label=Modrinth%20Downloads)](https://modrinth.com/mod/litematic-syncer)

## Versions

### server
| version | platforms | dependency |
|---------|--------------------------------|--------------------|
| 1.14.4 | fabric, forge | `>=1.14 <=1.14.4` |
Expand All @@ -13,5 +20,56 @@
| 1.20.6 | fabric, forge, neoforge, paper | `>1.20.4 <=1.20.6` |
| 1.21.3 | fabric, forge, neoforge, paper | `>=1.21 <=1.21.3` |

- architectury loom (fabric, forge, quilt, neoforge) 1.14+
- paperweight (paper) 1.19+
### client
| version | platforms | dependency |
|---------|---------------|--------------------|
| 1.14.4 | fabric | `>=1.14 <=1.14.4` |
| 1.15.2 | fabric | `>=1.15 <=1.15.2` |
| 1.16.5 | fabric, forge | `>=1.16 <=1.16.5` |
| 1.17.1 | fabric | `>=1.17 <=1.17.1` |
| 1.18.2 | fabric | `>=1.18 <=1.18.2` |
| 1.19.4 | fabric | `>=1.19 <=1.19.4` |
| 1.20.4 | fabric | `>=1.20 <=1.20.4` |
| 1.20.6 | fabric | `>1.20.4 <=1.20.6` |
| 1.21.3 | fabric | `>=1.21 <=1.21.3` |


## Features (WIP)

- [ ] Error Handling
- [ ] Code Format and Review
- [x] Client only depend (malilib, litematica)
- network
- [x] Handshake Packet
- [x] SyncLitematic Packet
- [x] SyncLitematicConfig Packet
- [x] RequestLitematic Packet
- [x] RequestLitematicsList Packet
- [x] ResponceLitematicsList Packet
- [x] RemoveLitematicConfig Packet
- Client
- [x] Share button on Placements menu
- [x] Synced Litematics List UI
- [x] Download
- [x] Load
- [x] Material List
- [x] Remove
- [x] Re-Lock (modify)
- [ ] Unload
- [ ] Relogin compatibility
- [x] on Placement Update Event
- Server
- [x] Save SyncLitematicConfig
- [x] Restore SyncLitematicConfig
- [ ] Plugin Support?
- Data Types
- [x] Pos
- [x] Mirror
- [x] Rotation
- [ ] Ignore Entities
- [ ] Subregion
- [x] Pos
- [x] Mirror
- [x] Rotation
- [ ] Ignore Entities
- [ ] Placement ON/OFF
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ Number convertVersion(String version) {

def mcVersion = convertVersion(project.minecraft_version);

String MOD_ICON_PATH = 'assets/unitemplate/icon.png'
String MIXIN_CONFIG_PATH = 'unitemplate.mixins.json'
String LANG_DIR = 'assets/unitemplate/lang'
String MOD_ICON_PATH = 'assets/kyoyu/icon.png'
String MIXIN_CONFIG_PATH = 'kyoyu.mixins.json'
String LANG_DIR = 'assets/kyoyu/lang'
JavaVersion JAVA_COMPATIBILITY
if (mcVersion >= 12005) {
JAVA_COMPATIBILITY = JavaVersion.VERSION_21
Expand Down
20 changes: 10 additions & 10 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ org.gradle.jvmargs=-Xmx6G
org.gradle.daemon=false

# Mod Properties
mod_id=unitemplate
mod_name=UniTemplate
mod_id=kyoyu
mod_name=Kyoyu
mod_version=1.0.0
maven_group=com.topi_banana
archives_base_name=unitemplate
maven_group=com.vulpeus
archives_base_name=kyoyu

mod_description=universal version/platform template
mod_authors=topi_banana
mod_homepage=https://topi-banana.com
mod_sources=https://github.com/topi-banana/unitemplate
mod_issue=https://github.com/topi-banana/unitemplate/issues
mod_description=kyoyu
mod_authors=vulpeus
mod_homepage=https://vulpeus.com
mod_sources=https://github.com/Vulpeus-Server/kyoyu
mod_issue=https://github.com/Vulpeus-Server/kyoyu/issues

# Global Dependencies

Expand All @@ -34,4 +34,4 @@ forge_version=[VERSIONED]

# neoforge
neoforge_version=[VERSIONED]
yarn_mappings_patch=[VERSIONED]
yarn_mappings_patch=[VERSIONED]
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ stonecutter {
mc("1.21.3", "fabric", "forge", "neoforge", "paper")
}
create(rootProject)
}
}
2 changes: 1 addition & 1 deletion settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@
"paper-1.20.6",
"paper-1.21.3"
]
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.topi_banana.unitemplate;
package com.vulpeus.kyoyu;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
Expand All @@ -11,8 +11,8 @@


//? if FORGE || NEOFORGE
/* @Mod("unitemplate") */
public class UniTemplateMod
/* @Mod("kyoyu") */
public class Kyoyu
//? if FABRIC
implements net.fabricmc.api.ModInitializer

Expand All @@ -25,7 +25,7 @@ public class UniTemplateMod
@Override public void onInitialize()

//? if FORGE || NEOFORGE
/* public UniTemplateMod() */
/* public Kyoyu() */
//? if PAPER
/* @Override public void onEnable() */
{
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/META-INF/neoforge.mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ ordering = "NONE"
side="BOTH"

[[mixins]]
config = "unitemplate.mixins.json"
config = "kyoyu.mixins.json"
File renamed without changes
8 changes: 4 additions & 4 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@
"issues": "${issue}"
},

"icon": "assets/unitemplate/icon.png",
"icon": "assets/kyoyu/icon.png",

"environment": "*",
"entrypoints": {
"main": [
"com.topi_banana.unitemplate.UniTemplateMod"
"com.vulpeus.kyoyu.Kyoyu"
]
},
"mixins": [
"unitemplate.mixins.json"
"kyoyu.mixins.json"
],

"depends": {
"minecraft": "${minecraft_dependency}"
}
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"required": true,
"minVersion": "0.8",
"package": "com.topi_banana.unitemplate.mixins",
"package": "com.vulpeus.kyoyu.mixins",
"compatibilityLevel": "${java_compatibility_level}",
"mixins": [
],
Expand All @@ -10,4 +10,4 @@
"injectors": {
"defaultRequire": 1
}
}
}
4 changes: 2 additions & 2 deletions src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: ${name}
version: ${version}
main: com.topi_banana.unitemplate.UniTemplateMod
main: com.vulpeus.kyoyu.Kyoyu
description: ${description}
author: ${authors}
website: ${homepage}
api-version: "${minecraft_dependency}"
api-version: "${minecraft_dependency}"

0 comments on commit b587804

Please sign in to comment.