Skip to content

Commit

Permalink
add example
Browse files Browse the repository at this point in the history
  • Loading branch information
auxves committed May 18, 2024
1 parent 2846128 commit 74c972f
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 0 deletions.
3 changes: 3 additions & 0 deletions example/assets/disco-example/lang/en_us.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"item.disco-example.amazing_song.desc": "Auxves - Amazing Song"
}
6 changes: 6 additions & 0 deletions example/assets/disco-example/models/item/amazing_song.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "item/generated",
"textures": {
"layer0": "disco-example:item/amazing_song"
}
}
6 changes: 6 additions & 0 deletions example/assets/disco-example/sounds.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"amazing_song": {
"category": "record",
"sounds": [{ "name": "disco-example:amazing_song", "stream": true }]
}
}
Binary file not shown.
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 example/data/disco-example/tags/items/discs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"values": [
{ "id": "disco-example:amazing_song", "required": false }
]
}
5 changes: 5 additions & 0 deletions example/data/minecraft/tags/items/music_discs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"values": [
{ "id": "#disco-example:discs", "required": false }
]
}
14 changes: 14 additions & 0 deletions example/fabric.mod.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"schemaVersion": 1,
"id": "disco-example",
"version": "1.0.0",
"name": "Disco Example",
"description": "Example Disco addon",
"custom": {
"disco": {
"discs": [
{ "id": "amazing_song", "duration": 2 }
]
}
}
}

0 comments on commit 74c972f

Please sign in to comment.