Added marble blocks

This commit is contained in:
Sollace 2020-05-19 12:00:31 +02:00
parent cdce61f6d9
commit c136adebd0
22 changed files with 209 additions and 1 deletions

View file

@ -23,6 +23,7 @@ import net.minecraft.block.FallingBlock;
import net.minecraft.block.Material; import net.minecraft.block.Material;
import net.minecraft.block.MaterialColor; import net.minecraft.block.MaterialColor;
import net.minecraft.block.SaplingBlock; import net.minecraft.block.SaplingBlock;
import net.minecraft.block.SlabBlock;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraft.sound.BlockSoundGroup; import net.minecraft.sound.BlockSoundGroup;
import net.minecraft.util.Identifier; import net.minecraft.util.Identifier;
@ -136,6 +137,19 @@ public interface UBlocks {
.nonOpaque() .nonOpaque()
.build())); .build()));
Block SMOOTH_MARBLE_BLOCK = register("smooth_marble_block", new Block(FabricBlockSettings.of(Material.STONE)
.strength(0.7F, 10)
.breakByTool(FabricToolTags.PICKAXES)
.build()));
Block CHISELED_MARBLE_BLOCK = register("chiseled_marble_block", new Block(FabricBlockSettings.of(Material.STONE)
.strength(0.8F, 10)
.breakByTool(FabricToolTags.PICKAXES)
.build()));
Block SMOOTH_MARBLE_SLAB = register("smooth_marble_slab", new SlabBlock(FabricBlockSettings.of(Material.STONE)
.strength(0.7F, 10)
.breakByTool(FabricToolTags.PICKAXES)
.build()));
Block SUGAR_BLOCK = register("sugar_block", new FallingBlock(FabricBlockSettings.of(Material.SAND) Block SUGAR_BLOCK = register("sugar_block", new FallingBlock(FabricBlockSettings.of(Material.SAND)
.strength(10, 10) .strength(10, 10)
.hardness(0.7F) .hardness(0.7F)

View file

@ -77,6 +77,10 @@ public interface UItems {
Item SUGAR_BLOCK = register("sugar_block", new BlockItem(UBlocks.SUGAR_BLOCK, new Settings().group(ItemGroup.BUILDING_BLOCKS))); Item SUGAR_BLOCK = register("sugar_block", new BlockItem(UBlocks.SUGAR_BLOCK, new Settings().group(ItemGroup.BUILDING_BLOCKS)));
Item SMOOTH_MARBLE_BLOCK = register("smooth_marble_block", new BlockItem(UBlocks.SMOOTH_MARBLE_BLOCK, new Settings().group(ItemGroup.BUILDING_BLOCKS)));
Item CHISELED_MARBLE_BLOCK = register("chiseled_marble_block", new BlockItem(UBlocks.CHISELED_MARBLE_BLOCK, new Settings().group(ItemGroup.BUILDING_BLOCKS)));
Item SMOOTH_MARBLE_SLAB = register("smooth_marble_slab", new BlockItem(UBlocks.SMOOTH_MARBLE_SLAB, new Settings().group(ItemGroup.BUILDING_BLOCKS)));
Item CLOUD_SLAB = register("cloud_slab", new PredicatedBlockItem(UBlocks.CLOUD_SLAB, new Settings().group(ItemGroup.BUILDING_BLOCKS), PLAYER_PEGASUS)); Item CLOUD_SLAB = register("cloud_slab", new PredicatedBlockItem(UBlocks.CLOUD_SLAB, new Settings().group(ItemGroup.BUILDING_BLOCKS), PLAYER_PEGASUS));
Item ENCHANTED_CLOUD_SLAB = register("enchanted_cloud_slab", new PredicatedBlockItem(UBlocks.ENCHANTED_CLOUD_SLAB, new Settings().group(ItemGroup.BUILDING_BLOCKS), PLAYER_PEGASUS)); Item ENCHANTED_CLOUD_SLAB = register("enchanted_cloud_slab", new PredicatedBlockItem(UBlocks.ENCHANTED_CLOUD_SLAB, new Settings().group(ItemGroup.BUILDING_BLOCKS), PLAYER_PEGASUS));
Item DENSE_CLOUD_SLAB = register("dense_cloud_slab", new PredicatedBlockItem(UBlocks.DENSE_CLOUD_SLAB, new Settings().group(ItemGroup.BUILDING_BLOCKS), PLAYER_PEGASUS)); Item DENSE_CLOUD_SLAB = register("dense_cloud_slab", new PredicatedBlockItem(UBlocks.DENSE_CLOUD_SLAB, new Settings().group(ItemGroup.BUILDING_BLOCKS), PLAYER_PEGASUS));

View file

@ -0,0 +1,5 @@
{
"variants": {
"": { "model": "unicopia:block/chiseled_marble_block" }
}
}

View file

@ -0,0 +1,5 @@
{
"variants": {
"": { "model": "unicopia:block/smooth_marble_block" }
}
}

View file

@ -0,0 +1,7 @@
{
"variants": {
"type=bottom": { "model": "unicopia:block/smooth_marble_slab" },
"type=top": { "model": "unicopia:block/smooth_marble_slab_top" },
"type=double": { "model": "unicopia:block/smooth_marble_block" }
}
}

View file

@ -24,6 +24,10 @@
"block.unicopia.slime_drop": "Slime Droplet", "block.unicopia.slime_drop": "Slime Droplet",
"block.unicopia.slime_layer": "Slime", "block.unicopia.slime_layer": "Slime",
"block.unicopia.chiseled_marble_block": "Chiseled Marble Block",
"block.unicopia.smooth_marble_block": "Smooth Marble Block",
"block.unicopia.smooth_marble_slab": "Smooth Marble Slab",
"block.unicopia.apple_leaves": "Apple Leaves", "block.unicopia.apple_leaves": "Apple Leaves",
"block.unicopia.apple_sapling": "Apple Seeds", "block.unicopia.apple_sapling": "Apple Seeds",

View file

@ -0,0 +1,7 @@
{
"parent": "block/cube_column",
"textures": {
"end": "unicopia:blocks/smooth_marble_block",
"side": "unicopia:blocks/chiseled_marble_block_side"
}
}

View file

@ -0,0 +1,6 @@
{
"parent": "block/cube_all",
"textures": {
"all": "unicopia:blocks/smooth_marble_block"
}
}

View file

@ -0,0 +1,8 @@
{
"parent": "block/slab",
"textures": {
"bottom": "unicopia:blocks/smooth_marble_block",
"top": "unicopia:blocks/smooth_marble_block",
"side": "unicopia:blocks/smooth_marble_block"
}
}

View file

@ -0,0 +1,8 @@
{
"parent": "block/slab_top",
"textures": {
"bottom": "unicopia:blocks/smooth_marble_block",
"top": "unicopia:blocks/smooth_marble_block",
"side": "unicopia:blocks/smooth_marble_block"
}
}

View file

@ -0,0 +1,10 @@
{
"parent": "unicopia:block/chiseled_marble_block",
"display": {
"thirdperson": {
"rotation": [ 10, -45, 170 ],
"translation": [ 0, 1.5, -2.75 ],
"scale": [ 0.375, 0.375, 0.375 ]
}
}
}

View file

@ -0,0 +1,10 @@
{
"parent": "unicopia:block/smooth_marble_block",
"display": {
"thirdperson": {
"rotation": [ 10, -45, 170 ],
"translation": [ 0, 1.5, -2.75 ],
"scale": [ 0.375, 0.375, 0.375 ]
}
}
}

View file

@ -0,0 +1,10 @@
{
"parent": "unicopia:block/smooth_marble_slab",
"display": {
"thirdperson": {
"rotation": [ 10, -45, 170 ],
"translation": [ 0, 1.5, -2.75 ],
"scale": [ 0.375, 0.375, 0.375 ]
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

View file

@ -3,6 +3,7 @@
"values": [ "values": [
"unicopia:cloud_slab", "unicopia:cloud_slab",
"unicopia:enchanted_cloud_slab", "unicopia:enchanted_cloud_slab",
"unicopia:dense_cloud_slab" "unicopia:dense_cloud_slab",
"unicopia:smooth_marble_slab"
] ]
} }

View file

@ -0,0 +1,23 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "unicopia:smooth_marble_block",
"functions": [
{
"function": "minecraft:set_count",
"count": 6
},
{
"function": "minecraft:explosion_decay"
}
]
}
]
}
]
}

View file

@ -0,0 +1,23 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "unicopia:gem",
"functions": [
{
"function": "minecraft:set_count",
"count": 9
},
{
"function": "minecraft:explosion_decay"
}
]
}
]
}
]
}

View file

@ -0,0 +1,23 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "unicopia:gem",
"functions": [
{
"function": "minecraft:set_count",
"count": 3
},
{
"function": "minecraft:explosion_decay"
}
]
}
]
}
]
}

View file

@ -0,0 +1,13 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
"SSS",
"SSS"
],
"key": {
"S": [
{ "item": "unicopia:smooth_marble_block" }
]
},
"result": { "item": "unicopia:chiseled_marble_block" }
}

View file

@ -0,0 +1,14 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
"SSS",
"SSS",
"SSS"
],
"key": {
"S": [
{ "item": "unicopia:gem" }
]
},
"result": { "item": "unicopia:smooth_marble_block" }
}

View file

@ -0,0 +1,13 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
"SSS",
"SSS"
],
"key": {
"S": [
{ "item": "unicopia:gem" }
]
},
"result": { "item": "unicopia:smooth_marble_slab", "count": 2 }
}