Skip to content

Commit

Permalink
feat: prepare for Modrinth release
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenlige committed Aug 18, 2024
1 parent 563096e commit 624f397
Show file tree
Hide file tree
Showing 14 changed files with 96 additions and 54 deletions.
19 changes: 19 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
id 'fabric-loom' version '1.7-SNAPSHOT'
id 'maven-publish'
// id 'com.modrinth.minotaur' version '2.+'
}

version = project.mod_version
Expand Down Expand Up @@ -91,4 +92,22 @@ publishing {
// The repositories here will be used for publishing your artifact, not for
// retrieving dependencies.
}
}

modrinth {
token = System.getenv("MODRINTH_TOKEN")
projectId = "xennote"
versionNumber = "0.1.0" // You don't need to set this manually. Will fail if Modrinth has this version already
versionType = "alpha" // `release` or `beta` or `alpha`
uploadFile = remapJar
gameVersions = ["1.21", "1.21.1"] // Must be an array, even with only one version
loaders = ["fabric", "quilt"] // Must also be an array - no need to specify this if you're using Loom or ForgeGradle
dependencies { // A special DSL for creating dependencies
// scope.type
// The scope can be `required`, `optional`, `incompatible`, or `embedded`
// The type can either be `project` or `version`
required.project "fabric-api"
required.project "cloth-config"
// optional.version "sodium", "mc1.19.3-0.4.8" // Creates a new optional dependency on this specific version of Sodium
}
}
Binary file added recipe.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion src/main/java/com/github/zhenlige/xennote/Rational.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package com.github.zhenlige.xennote;

/**
* This class is maintained for future development.
*/
public class Rational {
public int p, q;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
import org.spongepowered.asm.mixin.injection.callback.LocalCapture;

/**
* This mixin is currently disabled. It will not be used until there is a way to
* get access to other variables in <code>@ModifyVariable</code>.
*/
@Mixin(NoteBlock.class)
public abstract class NoteBlockMixin extends Block {
public static final Logger LOGGER = LoggerFactory.getLogger("xennote.NoteBlockMixin");
Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/assets/xennote/blockstates/note_block.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"variants": {
"": { "model": "xennote:block/note_block" }
}
"variants": {
"": {"model": "xennote:block/note_block"}
}
}
10 changes: 5 additions & 5 deletions src/main/resources/assets/xennote/lang/en_us.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"block.xennote.note_block": "Xenharmonic Note Block",
"title.xennote.config": "Xenharmonic Note Block Config",
"option.xennote.p": "Numerator",
"option.xennote.q": "Denominator",
"option.xennote.edo": "Tuning to edo (zero for no temperment)"
"block.xennote.note_block": "Xenharmonic Note Block",
"title.xennote.config": "Xenharmonic Note Block Config",
"option.xennote.p": "Numerator",
"option.xennote.q": "Denominator",
"option.xennote.edo": "Tuning to edo (zero for no temperment)"
}
10 changes: 5 additions & 5 deletions src/main/resources/assets/xennote/lang/zh_cn.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"block.xennote.note_block": "微分音音符盒",
"title.xennote.config": "微分音音符盒设置",
"option.xennote.p": "分子",
"option.xennote.q": "分母",
"option.xennote.edo": "调整到平均律(值为0则不调律)"
"block.xennote.note_block": "微分音音符盒",
"title.xennote.config": "微分音音符盒设置",
"option.xennote.p": "分子",
"option.xennote.q": "分母",
"option.xennote.edo": "调整到平均律(值为0则不调律)"
}
10 changes: 5 additions & 5 deletions src/main/resources/assets/xennote/lang/zh_tw.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"block.xennote.note_block": "微分音音階盒",
"title.xennote.config": "微分音音階盒設定",
"option.xennote.p": "分子",
"option.xennote.q": "分母",
"option.xennote.edo": "調整到平均律(值為0則不調律)"
"block.xennote.note_block": "微分音音階盒",
"title.xennote.config": "微分音音階盒設定",
"option.xennote.p": "分子",
"option.xennote.q": "分母",
"option.xennote.edo": "調整到平均律(值為0則不調律)"
}
10 changes: 5 additions & 5 deletions src/main/resources/assets/xennote/models/block/note_block.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"parent": "minecraft:block/cube_top",
"textures": {
"side": "xennote:block/note_block",
"top": "xennote:block/note_block_top"
}
"parent": "minecraft:block/cube_top",
"textures": {
"side": "xennote:block/note_block",
"top": "xennote:block/note_block_top"
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"parent": "xennote:block/note_block"
"parent": "xennote:block/note_block"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"replace": false,
"values": [
"xennote:note_block"
]
"replace": false,
"values": [
"xennote:note_block"
]
}
36 changes: 18 additions & 18 deletions src/main/resources/data/xennote/loot_table/blocks/note_block.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "xennote:note_block"
}
],
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
]
}
]
}
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "xennote:note_block"
}
],
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
]
}
]
}
17 changes: 17 additions & 0 deletions src/main/resources/data/xennote/recipe/note_block.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"type": "minecraft:crafting_shaped",
"category": "redstone",
"pattern": [
"...",
" N ",
". ."
],
"key": {
".": {"item": "minecraft:redstone"},
"N": {"item": "minecraft:note_block"}
},
"result": {
"count": 1,
"id": "xennote:note_block"
}
}
14 changes: 7 additions & 7 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
"schemaVersion": 1,
"id": "xennote",
"version": "${version}",
"name": "Xenharmonic Note Block",
"description": "Adding new note blocks that supports xenharmonic tunings",
"name": "XenNote",
"description": "Adding new note blocks that supports microtonal/xenharmonic tunings",
"authors": [
"Ikyan"
"zhenlige"
],
"contact": {
"homepage": "Nothing!",
"sources": "Daydream!"
"homepage": "https://github.com/zhenlige/xennote",
"sources": "https://github.com/zhenlige/xennote"
},
"license": "CC0-1.0",
"license": "MIT License",
"icon": "assets/xennote/icon.png",
"environment": "*",
"entrypoints": {
Expand All @@ -33,7 +33,7 @@
}
],
"depends": {
"fabricloader": ">=0.15.11",
"fabricloader": "*",
"minecraft": ">=1.21",
"java": ">=21",
"fabric-api": "*"
Expand Down

0 comments on commit 624f397

Please sign in to comment.