Skip to content

Commit

Permalink
Update textures + Add sand (1x, 2x, 3x, 4x) + cobbled_deepslate (1x, …
Browse files Browse the repository at this point in the history
…2x, 3x, 4x)
  • Loading branch information
Koboo committed Oct 3, 2023
1 parent 7ad89c9 commit aa057df
Show file tree
Hide file tree
Showing 45 changed files with 263 additions and 50 deletions.
26 changes: 26 additions & 0 deletions src/main/kotlin/eu/koboo/nova/compressed/blocks/registry/Blocks.kt
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,38 @@ object Blocks : BlockRegistry by CompressedBlocksAddon.registry {
SoundGroup.STONE,
Material.COBBLESTONE
)
private val OPTIONS_COBBLED_DEEPSLATE = BlockOptions(
3.5,
VanillaToolCategories.PICKAXE,
VanillaToolTiers.WOOD,
true,
SoundGroup.STONE,
Material.COBBLED_DEEPSLATE
)
private val OPTIONS_SAND = BlockOptions(
1.5,
VanillaToolCategories.SHOVEL,
VanillaToolTiers.WOOD,
false,
SoundGroup.SAND,
Material.SAND
)

val COBBLED_DEEPSLATE_1X = block("compressed_cobbled_deepslate_1x").blockOptions(OPTIONS_COBBLED_DEEPSLATE).register()
val COBBLED_DEEPSLATE_2X = block("compressed_cobbled_deepslate_2x").blockOptions(OPTIONS_COBBLED_DEEPSLATE).register()
val COBBLED_DEEPSLATE_3X = block("compressed_cobbled_deepslate_3x").blockOptions(OPTIONS_COBBLED_DEEPSLATE).register()
val COBBLED_DEEPSLATE_4X = block("compressed_cobbled_deepslate_4x").blockOptions(OPTIONS_COBBLED_DEEPSLATE).register()

val COBBLESTONE_1X = block("compressed_cobblestone_1x").blockOptions(OPTIONS_STONE).register()
val COBBLESTONE_2X = block("compressed_cobblestone_2x").blockOptions(OPTIONS_STONE).register()
val COBBLESTONE_3X = block("compressed_cobblestone_3x").blockOptions(OPTIONS_STONE).register()
val COBBLESTONE_4X = block("compressed_cobblestone_4x").blockOptions(OPTIONS_STONE).register()

val SAND_1X = block("compressed_sand_1x").blockOptions(OPTIONS_SAND).register()
val SAND_2X = block("compressed_sand_2x").blockOptions(OPTIONS_SAND).register()
val SAND_3X = block("compressed_sand_3x").blockOptions(OPTIONS_SAND).register()
val SAND_4X = block("compressed_sand_4x").blockOptions(OPTIONS_SAND).register()

val STONE_1X = block("compressed_stone_1x").blockOptions(OPTIONS_STONE).register()
val STONE_2X = block("compressed_stone_2x").blockOptions(OPTIONS_STONE).register()
val STONE_3X = block("compressed_stone_3x").blockOptions(OPTIONS_STONE).register()
Expand Down
11 changes: 11 additions & 0 deletions src/main/kotlin/eu/koboo/nova/compressed/blocks/registry/Items.kt
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,22 @@ import xyz.xenondevs.nova.initialize.Init
@Init
object Items : ItemRegistry by CompressedBlocksAddon.registry {


val COBBLED_DEEPSLATE_1X = registerItem(Blocks.COBBLED_DEEPSLATE_1X)
val COBBLED_DEEPSLATE_2X = registerItem(Blocks.COBBLED_DEEPSLATE_2X)
val COBBLED_DEEPSLATE_3X = registerItem(Blocks.COBBLED_DEEPSLATE_3X)
val COBBLED_DEEPSLATE_4X = registerItem(Blocks.COBBLED_DEEPSLATE_4X)

val COBBLESTONE_1X = registerItem(Blocks.COBBLESTONE_1X)
val COBBLESTONE_2X = registerItem(Blocks.COBBLESTONE_2X)
val COBBLESTONE_3X = registerItem(Blocks.COBBLESTONE_3X)
val COBBLESTONE_4X = registerItem(Blocks.COBBLESTONE_4X)

val SAND_1X = registerItem(Blocks.SAND_1X)
val SAND_2X = registerItem(Blocks.SAND_2X)
val SAND_3X = registerItem(Blocks.SAND_3X)
val SAND_4X = registerItem(Blocks.SAND_4X)

val STONE_1X = registerItem(Blocks.STONE_1X)
val STONE_2X = registerItem(Blocks.STONE_2X)
val STONE_3X = registerItem(Blocks.STONE_3X)
Expand Down
10 changes: 9 additions & 1 deletion src/main/resources/assets/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,13 @@
"block.compressed_blocks.compressed_stone_1x": "Compressed Stone (1x)",
"block.compressed_blocks.compressed_stone_2x": "Compressed Stone (2x)",
"block.compressed_blocks.compressed_stone_3x": "Compressed Stone (3x)",
"block.compressed_blocks.compressed_stone_4x": "Compressed Stone (4x)"
"block.compressed_blocks.compressed_stone_4x": "Compressed Stone (4x)",
"block.compressed_blocks.compressed_cobbled_deepslate_1x": "Compressed Cobbled Deepslate (1x)",
"block.compressed_blocks.compressed_cobbled_deepslate_2x": "Compressed Cobbled Deepslate (2x)",
"block.compressed_blocks.compressed_cobbled_deepslate_3x": "Compressed Cobbled Deepslate (3x)",
"block.compressed_blocks.compressed_cobbled_deepslate_4x": "Compressed Cobbled Deepslate (4x)",
"block.compressed_blocks.compressed_sand_1x": "Compressed Sand (1x)",
"block.compressed_blocks.compressed_sand_2x": "Compressed Sand (2x)",
"block.compressed_blocks.compressed_sand_3x": "Compressed Sand (3x)",
"block.compressed_blocks.compressed_sand_4x": "Compressed Sand (4x)"
}
64 changes: 16 additions & 48 deletions src/main/resources/assets/materials.json
Original file line number Diff line number Diff line change
@@ -1,50 +1,18 @@
{
"compressed_cobblestone_1x": {
"item": "block/compressed_cobblestone_1x",
"block": {
"type": "solid"
}
},
"compressed_cobblestone_2x": {
"item": "block/compressed_cobblestone_2x",
"block": {
"type": "solid"
}
},
"compressed_cobblestone_3x": {
"item": "block/compressed_cobblestone_3x",
"block": {
"type": "solid"
}
},
"compressed_cobblestone_4x": {
"item": "block/compressed_cobblestone_4x",
"block": {
"type": "solid"
}
},
"compressed_stone_1x": {
"item": "block/compressed_stone_1x",
"block": {
"type": "solid"
}
},
"compressed_stone_2x": {
"item": "block/compressed_stone_2x",
"block": {
"type": "solid"
}
},
"compressed_stone_3x": {
"item": "block/compressed_stone_3x",
"block": {
"type": "solid"
}
},
"compressed_stone_4x": {
"item": "block/compressed_stone_4x",
"block": {
"type": "solid"
}
}
"compressed_cobblestone_1x": "block/compressed_cobblestone_1x",
"compressed_cobblestone_2x": "block/compressed_cobblestone_2x",
"compressed_cobblestone_3x": "block/compressed_cobblestone_3x",
"compressed_cobblestone_4x": "block/compressed_cobblestone_4x",
"compressed_stone_1x": "block/compressed_stone_1x",
"compressed_stone_2x": "block/compressed_stone_2x",
"compressed_stone_3x": "block/compressed_stone_3x",
"compressed_stone_4x": "block/compressed_stone_4x",
"compressed_cobbled_deepslate_1x": "block/compressed_cobbled_deepslate_1x",
"compressed_cobbled_deepslate_2x": "block/compressed_cobbled_deepslate_2x",
"compressed_cobbled_deepslate_3x": "block/compressed_cobbled_deepslate_3x",
"compressed_cobbled_deepslate_4x": "block/compressed_cobbled_deepslate_4x",
"compressed_sand_1x": "block/compressed_sand_1x",
"compressed_sand_2x": "block/compressed_sand_2x",
"compressed_sand_3x": "block/compressed_sand_3x",
"compressed_sand_4x": "block/compressed_sand_4x"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "nova:block/block",
"textures": {
"0": "compressed_blocks:block/compressed_cobbled_deepslate_1x"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "nova:block/block",
"textures": {
"0": "compressed_blocks:block/compressed_cobbled_deepslate_2x"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "nova:block/block",
"textures": {
"0": "compressed_blocks:block/compressed_cobbled_deepslate_3x"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "nova:block/block",
"textures": {
"0": "compressed_blocks:block/compressed_cobbled_deepslate_4x"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "nova:block/block",
"textures": {
"0": "compressed_blocks:block/compressed_sand_1x"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "nova:block/block",
"textures": {
"0": "compressed_blocks:block/compressed_sand_2x"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "nova:block/block",
"textures": {
"0": "compressed_blocks:block/compressed_sand_3x"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "nova:block/block",
"textures": {
"0": "compressed_blocks:block/compressed_sand_4x"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 src/main/resources/assets/textures/block/compressed_stone_1x.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 src/main/resources/assets/textures/block/compressed_stone_2x.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 src/main/resources/assets/textures/block/compressed_stone_3x.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 src/main/resources/assets/textures/block/compressed_stone_4x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 9 additions & 1 deletion src/main/resources/item_categories.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,12 @@ compressed_blocks_category:
- compressed_blocks:compressed_stone_1x
- compressed_blocks:compressed_stone_2x
- compressed_blocks:compressed_stone_3x
- compressed_blocks:compressed_stone_4x
- compressed_blocks:compressed_stone_4x
- compressed_blocks:compressed_cobbled_deepslate_1x
- compressed_blocks:compressed_cobbled_deepslate_2x
- compressed_blocks:compressed_cobbled_deepslate_3x
- compressed_blocks:compressed_cobbled_deepslate_4x
- compressed_blocks:compressed_sand_1x
- compressed_blocks:compressed_sand_2x
- compressed_blocks:compressed_sand_3x
- compressed_blocks:compressed_sand_4x
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"result": "compressed_blocks:compressed_cobbled_deepslate_1x",
"shape": [
"ccc",
"ccc",
"ccc"
],
"ingredients": {
"c": "minecraft:cobbled_deepslate"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"result": "compressed_blocks:compressed_cobbled_deepslate_2x",
"shape": [
"ccc",
"ccc",
"ccc"
],
"ingredients": {
"c": "compressed_blocks:compressed_cobbled_deepslate_1x"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"result": "compressed_blocks:compressed_cobbled_deepslate_3x",
"shape": [
"ccc",
"ccc",
"ccc"
],
"ingredients": {
"c": "compressed_blocks:compressed_cobbled_deepslate_2x"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"result": "compressed_blocks:compressed_cobbled_deepslate_4x",
"shape": [
"ccc",
"ccc",
"ccc"
],
"ingredients": {
"c": "compressed_blocks:compressed_cobbled_deepslate_3x"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"result": "compressed_blocks:compressed_sand_1x",
"shape": [
"ccc",
"ccc",
"ccc"
],
"ingredients": {
"c": "minecraft:sand"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"result": "compressed_blocks:compressed_sand_2x",
"shape": [
"ccc",
"ccc",
"ccc"
],
"ingredients": {
"c": "compressed_blocks:compressed_sand_1x"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"result": "compressed_blocks:compressed_sand_3x",
"shape": [
"ccc",
"ccc",
"ccc"
],
"ingredients": {
"c": "compressed_blocks:compressed_sand_2x"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"result": "compressed_blocks:compressed_sand_4x",
"shape": [
"ccc",
"ccc",
"ccc"
],
"ingredients": {
"c": "compressed_blocks:compressed_sand_3x"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"result": "minecraft:cobbled_deepslate",
"amount": 9,
"ingredients": {
"compressed_blocks:compressed_cobbled_deepslate_1x": 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"result": "compressed_blocks:compressed_cobbled_deepslate_1x",
"amount": 9,
"ingredients": {
"compressed_blocks:compressed_cobbled_deepslate_2x": 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"result": "compressed_blocks:compressed_cobbled_deepslate_2x",
"amount": 9,
"ingredients": {
"compressed_blocks:compressed_cobbled_deepslate_3x": 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"result": "compressed_blocks:compressed_cobbled_deepslate_3x",
"amount": 9,
"ingredients": {
"compressed_blocks:compressed_cobbled_deepslate_4x": 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"result": "minecraft:sand",
"amount": 9,
"ingredients": {
"compressed_blocks:compressed_sand_1x": 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"result": "compressed_blocks:compressed_sand_1x",
"amount": 9,
"ingredients": {
"compressed_blocks:compressed_sand_2x": 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"result": "compressed_blocks:compressed_sand_2x",
"amount": 9,
"ingredients": {
"compressed_blocks:compressed_sand_3x": 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"result": "compressed_blocks:compressed_sand_3x",
"amount": 9,
"ingredients": {
"compressed_blocks:compressed_sand_4x": 1
}
}

0 comments on commit aa057df

Please sign in to comment.