summary refs log tree commit diff stats
path: root/src/main/resources
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/resources')
-rw-r--r--src/main/resources/assets/pirate-radio/blockstates/disposable-transmitter.json10
-rw-r--r--src/main/resources/assets/pirate-radio/lang/en_us.json22
-rw-r--r--src/main/resources/assets/pirate-radio/models/block/disposable-transmitter-vertical.json29
-rw-r--r--src/main/resources/assets/pirate-radio/models/block/disposable-transmitter.json30
-rw-r--r--src/main/resources/assets/pirate-radio/textures/entity/electronics-trader.pngbin0 -> 1059 bytes
-rw-r--r--src/main/resources/assets/pirate-radio/textures/gui/radio-receiver.pngbin0 -> 1059 bytes
-rw-r--r--src/main/resources/assets/pirate-radio/textures/item/disposable-transmitter.pngbin0 -> 881 bytes
-rw-r--r--src/main/resources/data/pirate-radio/pirate-radio/antenna/const.json4
-rw-r--r--src/main/resources/data/pirate-radio/pirate-radio/antenna/null.json4
-rw-r--r--src/main/resources/fabric.mod.json6
-rw-r--r--src/main/resources/pirate-radio.client-mixins.json14
11 files changed, 118 insertions, 1 deletions
diff --git a/src/main/resources/assets/pirate-radio/blockstates/disposable-transmitter.json b/src/main/resources/assets/pirate-radio/blockstates/disposable-transmitter.json
new file mode 100644
index 0000000..854abc8
--- /dev/null
+++ b/src/main/resources/assets/pirate-radio/blockstates/disposable-transmitter.json
@@ -0,0 +1,10 @@
+{
+  "variants": {
+    "facing=down": { "model": "pirate-radio:block/disposable-transmitter-vertical" },
+    "facing=up": { "model": "pirate-radio:block/disposable-transmitter-vertical" },
+    "facing=north": { "model": "pirate-radio:block/disposable-transmitter" },
+    "facing=south": { "model": "pirate-radio:block/disposable-transmitter" },
+    "facing=west": { "model": "pirate-radio:block/disposable-transmitter" },
+    "facing=east": { "model": "pirate-radio:block/disposable-transmitter" }
+  }
+}
\ No newline at end of file
diff --git a/src/main/resources/assets/pirate-radio/lang/en_us.json b/src/main/resources/assets/pirate-radio/lang/en_us.json
index 9627729..81145f0 100644
--- a/src/main/resources/assets/pirate-radio/lang/en_us.json
+++ b/src/main/resources/assets/pirate-radio/lang/en_us.json
@@ -6,5 +6,25 @@
   "item.pirate-radio.disposable-transmitter": "Disposable Pirate Radio Transmitter",
   "item.pirate-radio.fm-receiver": "FM Receiver",
   "entity.pirate-radio.electronics-trader": "Microcenter",
-  "pirate-radio.fm-receiver": "FM Receiver"
+  "pirate-radio.fm-receiver": "FM Receiver",
+  "pirate-radio.skin-pack": "Skin pack: %s",
+  "pirate-radio.frequency.plus": "+",
+  "pirate-radio.frequency.minus": "-",
+  "pirate-radio.volume.plus": "+",
+  "pirate-radio.volume.minus": "-",
+  "pirate-radio.mode": "Mode",
+  "pirate-radio.frequency.plus.narrated": "Increase Frequency",
+  "pirate-radio.frequency.minus.narrated": "Decrease Frequency",
+  "pirate-radio.volume.plus.narrated": "Increase Volume",
+  "pirate-radio.volume.minus.narrated": "Decrease Volume",
+  "pirate-radio.mode.selected": "Mode: %s",
+  "pirate-radio.mode.full": "Full",
+  "pirate-radio.mode.fast": "Fast",
+  "pirate-radio.mode.deaf": "Deaf",
+  "pirate-radio.volume.selected": "Volume: %s",
+  "pirate-radio.volume.off": "Off",
+  "pirate-radio.frequency.selected": "Frequency: %s.%s MHz",
+  "pirate-radio.storage-card": "SD Card",
+  "pirate-radio.message": "Message...",
+  "pirate-radio.frequency.edit": "Frequency"
 }
\ No newline at end of file
diff --git a/src/main/resources/assets/pirate-radio/models/block/disposable-transmitter-vertical.json b/src/main/resources/assets/pirate-radio/models/block/disposable-transmitter-vertical.json
new file mode 100644
index 0000000..39dc38e
--- /dev/null
+++ b/src/main/resources/assets/pirate-radio/models/block/disposable-transmitter-vertical.json
@@ -0,0 +1,29 @@
+{
+  "textures": {
+    "antenna": "minecraft:block/iron_block",
+    "body": "minecraft:block/coal_block"
+  },
+  "elements": [
+    {   "from": [ 6.5, 6.9, 15.4 ],
+      "to": [ 9.5, 9.1, 16 ],
+      "faces": {
+        "down":  { "uv": [  0,  0, 16, 16 ], "texture": "#body" },
+        "up":    { "uv": [  0,  0, 16, 16 ], "texture": "#body" },
+        "north": { "uv": [  0,  0, 16, 16 ], "texture": "#body" },
+        "south": { "uv": [  0,  0, 16, 16 ], "texture": "#body" },
+        "west":  { "uv": [  0,  0, 16, 16 ], "texture": "#body" },
+        "east":  { "uv": [  0,  0, 16, 16 ], "texture": "#body" }
+      }
+    },
+    {   "from": [ 7, 7, 9 ],
+      "to": [ 7.1, 7.1, 15.4 ],
+      "faces": {
+        "down":  { "uv": [  0,  0, 16, 16 ], "texture": "#antenna" },
+        "up":    { "uv": [  0,  0, 16, 16 ], "texture": "#antenna" },
+        "north": { "uv": [  0,  0, 16, 16 ], "texture": "#antenna" },
+        "west":  { "uv": [  0,  0, 16, 16 ], "texture": "#antenna" },
+        "east":  { "uv": [  0,  0, 16, 16 ], "texture": "#antenna" }
+      }
+    }
+  ]
+}
diff --git a/src/main/resources/assets/pirate-radio/models/block/disposable-transmitter.json b/src/main/resources/assets/pirate-radio/models/block/disposable-transmitter.json
new file mode 100644
index 0000000..f5e26dc
--- /dev/null
+++ b/src/main/resources/assets/pirate-radio/models/block/disposable-transmitter.json
@@ -0,0 +1,30 @@
+{
+  "textures": {
+    "antenna": "minecraft:block/iron_block",
+    "body": "minecraft:block/coal_block"
+  },
+  "elements": [
+    {   "from": [ 6.5, 0.9, 15.4 ],
+      "to": [ 9.5, 3.1, 16 ],
+      "faces": {
+        "down":  { "uv": [  0,  0, 16, 16 ], "texture": "#body" },
+        "up":    { "uv": [  0,  0, 16, 16 ], "texture": "#body" },
+        "north": { "uv": [  0,  0, 16, 16 ], "texture": "#body" },
+        "south": { "uv": [  0,  0, 16, 16 ], "texture": "#body" },
+        "west":  { "uv": [  0,  0, 16, 16 ], "texture": "#body" },
+        "east":  { "uv": [  0,  0, 16, 16 ], "texture": "#body" }
+      }
+    },
+    {   "from": [ 7, 1, 15.3 ],
+      "to": [ 7.1, 7.5, 15.4 ],
+      "faces": {
+        "down":  { "uv": [  0,  0, 16, 16 ], "texture": "#antenna" },
+        "up":    { "uv": [  0,  0, 16, 16 ], "texture": "#antenna" },
+        "north": { "uv": [  0,  0, 16, 16 ], "texture": "#antenna" },
+        "south": { "uv": [  0,  0, 16, 16 ], "texture": "#antenna" },
+        "west":  { "uv": [  0,  0, 16, 16 ], "texture": "#antenna" },
+        "east":  { "uv": [  0,  0, 16, 16 ], "texture": "#antenna" }
+      }
+    }
+  ]
+}
diff --git a/src/main/resources/assets/pirate-radio/textures/entity/electronics-trader.png b/src/main/resources/assets/pirate-radio/textures/entity/electronics-trader.png
new file mode 100644
index 0000000..b86a4ef
--- /dev/null
+++ b/src/main/resources/assets/pirate-radio/textures/entity/electronics-trader.png
Binary files differdiff --git a/src/main/resources/assets/pirate-radio/textures/gui/radio-receiver.png b/src/main/resources/assets/pirate-radio/textures/gui/radio-receiver.png
new file mode 100644
index 0000000..b86a4ef
--- /dev/null
+++ b/src/main/resources/assets/pirate-radio/textures/gui/radio-receiver.png
Binary files differdiff --git a/src/main/resources/assets/pirate-radio/textures/item/disposable-transmitter.png b/src/main/resources/assets/pirate-radio/textures/item/disposable-transmitter.png
new file mode 100644
index 0000000..c815369
--- /dev/null
+++ b/src/main/resources/assets/pirate-radio/textures/item/disposable-transmitter.png
Binary files differdiff --git a/src/main/resources/data/pirate-radio/pirate-radio/antenna/const.json b/src/main/resources/data/pirate-radio/pirate-radio/antenna/const.json
new file mode 100644
index 0000000..6f7a630
--- /dev/null
+++ b/src/main/resources/data/pirate-radio/pirate-radio/antenna/const.json
@@ -0,0 +1,4 @@
+{
+  "type": "pirate-radio:const",
+  "level": 1.0
+}
\ No newline at end of file
diff --git a/src/main/resources/data/pirate-radio/pirate-radio/antenna/null.json b/src/main/resources/data/pirate-radio/pirate-radio/antenna/null.json
new file mode 100644
index 0000000..6b7a819
--- /dev/null
+++ b/src/main/resources/data/pirate-radio/pirate-radio/antenna/null.json
@@ -0,0 +1,4 @@
+{
+  "type": "pirate-radio:const",
+  "level": 0.0
+}
\ No newline at end of file
diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json
index 71f2518..c7d859a 100644
--- a/src/main/resources/fabric.mod.json
+++ b/src/main/resources/fabric.mod.json
@@ -34,6 +34,12 @@
 			}
 		]
 	},
+	"mixins": [
+		{
+			"config": "pirate-radio.client-mixins.json",
+			"environment": "client"
+		}
+	],
 	"depends": {
 		"fabricloader": ">=0.16.10",
 		"minecraft": "~1.21.1",
diff --git a/src/main/resources/pirate-radio.client-mixins.json b/src/main/resources/pirate-radio.client-mixins.json
new file mode 100644
index 0000000..27a5861
--- /dev/null
+++ b/src/main/resources/pirate-radio.client-mixins.json
@@ -0,0 +1,14 @@
+{
+  "required": true,
+  "minVersion": "0.8",
+  "package": "space.autistic.radio.client.mixin",
+  "compatibilityLevel": "JAVA_21",
+  "mixins": [
+  ],
+  "client": [
+    "BlockStatesLoaderMixin"
+  ],
+  "injectors": {
+    "defaultRequire": 1
+  }
+}
\ No newline at end of file