-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e24aa54
commit 795c20c
Showing
26 changed files
with
133 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package miyucomics.hexical.blocks | ||
|
||
import net.minecraft.block.* | ||
import net.minecraft.sound.BlockSoundGroup | ||
import net.minecraft.util.math.BlockPos | ||
import net.minecraft.util.shape.VoxelShape | ||
import net.minecraft.util.shape.VoxelShapes | ||
import net.minecraft.world.BlockView | ||
|
||
class MediaJarBlock : TransparentBlock(Settings.of(Material.GLASS).emissiveLighting { _, _, _ -> true }.luminance { _ -> 15 }.sounds(BlockSoundGroup.GLASS).nonOpaque()) { | ||
override fun getRenderType(state: BlockState?) = BlockRenderType.MODEL | ||
override fun isTranslucent(state: BlockState?, world: BlockView?, pos: BlockPos?) = true | ||
override fun getAmbientOcclusionLightLevel(state: BlockState?, world: BlockView?, pos: BlockPos?) = 1f | ||
override fun getCameraCollisionShape(state: BlockState?, world: BlockView?, pos: BlockPos?, context: ShapeContext?): VoxelShape = VoxelShapes.empty() | ||
override fun getOutlineShape(state: BlockState?, view: BlockView?, pos: BlockPos?, context: ShapeContext?): VoxelShape = VoxelShapes.cuboid(4.0 / 16, 0.0, 4.0 / 16, 12.0 / 16, 10.0 / 16, 12.0 / 16) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"variants": { | ||
"": { | ||
"model": "hexical:block/media_jar" | ||
} | ||
} | ||
} |
46 changes: 46 additions & 0 deletions
46
src/main/resources/assets/hexical/models/block/media_jar.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ | ||
"textures": { | ||
"0": "hexical:block/media_jar", | ||
"particle": "hexical:block/media_jar" | ||
}, | ||
"elements": [ | ||
{ | ||
"from": [4, 0, 4], | ||
"to": [12, 10, 12], | ||
"faces": { | ||
"north": {"uv": [8, 0, 0, 10], "texture": "#0"}, | ||
"east": {"uv": [0, 0, 8, 10], "texture": "#0"}, | ||
"south": {"uv": [8, 0, 0, 10], "texture": "#0"}, | ||
"west": {"uv": [0, 0, 8, 10], "texture": "#0"}, | ||
"up": {"uv": [16, 8, 8, 0], "texture": "#0"}, | ||
"down": {"uv": [16, 0, 8, 8], "texture": "#0"} | ||
} | ||
}, | ||
{ | ||
"from": [5, 10, 5], | ||
"to": [11, 11, 11], | ||
"rotation": {"angle": 0, "axis": "y", "origin": [0, 1, 0]}, | ||
"faces": { | ||
"north": {"uv": [0, 10, 6, 11], "texture": "#0"}, | ||
"east": {"uv": [0, 10, 6, 11], "texture": "#0"}, | ||
"south": {"uv": [0, 10, 6, 11], "texture": "#0"}, | ||
"west": {"uv": [0, 10, 6, 11], "texture": "#0"}, | ||
"up": {"uv": [0, 10, 6, 16], "texture": "#0"}, | ||
"down": {"uv": [0, 10, 6, 16], "texture": "#0"} | ||
} | ||
}, | ||
{ | ||
"from": [4.5, 0.5, 4.5], | ||
"to": [11.5, 7.5, 11.5], | ||
"rotation": {"angle": 0, "axis": "y", "origin": [0, 0.5, 5]}, | ||
"faces": { | ||
"north": {"uv": [8, 8, 15, 15], "rotation": 90, "texture": "#0"}, | ||
"east": {"uv": [8, 8, 15, 15], "rotation": 180, "texture": "#0"}, | ||
"south": {"uv": [8, 8, 15, 15], "rotation": 90, "texture": "#0"}, | ||
"west": {"uv": [8, 8, 15, 15], "rotation": 270, "texture": "#0"}, | ||
"up": {"uv": [8, 8, 15, 15], "rotation": 180, "texture": "#0"}, | ||
"down": {"uv": [8, 8, 15, 15], "rotation": 90, "texture": "#0"} | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
src/main/resources/assets/hexical/models/item/living_scroll_large_aged.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"parent": "minecraft:item/generated", | ||
"textures": { | ||
"layer0": "hexical:item/living_scroll_large_aged" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
src/main/resources/assets/hexical/models/item/living_scroll_medium_aged.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"parent": "minecraft:item/generated", | ||
"textures": { | ||
"layer0": "hexical:item/living_scroll_medium_aged" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
src/main/resources/assets/hexical/models/item/living_scroll_small_aged.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"parent": "minecraft:item/generated", | ||
"textures": { | ||
"layer0": "hexical:item/living_scroll_small_aged" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"parent": "hexical:block/media_jar" | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file modified
BIN
-26 Bytes
(94%)
src/main/resources/assets/hexical/textures/item/conjured_staff/handbell.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-5 Bytes
(99%)
src/main/resources/assets/hexical/textures/item/living_scroll_large.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+512 Bytes
src/main/resources/assets/hexical/textures/item/living_scroll_large_aged.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-2 Bytes
(99%)
src/main/resources/assets/hexical/textures/item/living_scroll_medium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+420 Bytes
src/main/resources/assets/hexical/textures/item/living_scroll_medium_aged.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-11 Bytes
(97%)
src/main/resources/assets/hexical/textures/item/living_scroll_small.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+368 Bytes
src/main/resources/assets/hexical/textures/item/living_scroll_small_aged.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.