Add Planks

Add blue, red, pink, purple planks.
This commit is contained in:
SavaletDev
2021-10-31 01:56:51 +02:00
parent ca911dd717
commit 54b15038e2
27 changed files with 129 additions and 15 deletions

View File

@@ -16,7 +16,10 @@ public class ModBlocks {
public static final DeferredRegister<Block> BLOCKS = DeferredRegister.create(ForgeRegistries.BLOCKS, ArkiaDeco.MODID);
public static final RegistryObject<Block> BLUE_WOOD = createBlock("blue_wood", () -> new Block(AbstractBlock.Properties.create(Material.WOOD).hardnessAndResistance(3f, 15f).harvestTool(ToolType.PICKAXE).harvestLevel(1).setRequiresTool()));
public static final RegistryObject<Block> BLUE_PLANKS = createBlock("blue_planks", () -> new Block(AbstractBlock.Properties.create(Material.WOOD).hardnessAndResistance(3f, 15f).harvestTool(ToolType.AXE).harvestLevel(0).setRequiresTool()));
public static final RegistryObject<Block> RED_PLANKS = createBlock("red_planks", () -> new Block(AbstractBlock.Properties.create(Material.WOOD).hardnessAndResistance(3f, 15f).harvestTool(ToolType.AXE).harvestLevel(0).setRequiresTool()));
public static final RegistryObject<Block> PINK_PLANKS = createBlock("pink_planks", () -> new Block(AbstractBlock.Properties.create(Material.WOOD).hardnessAndResistance(3f, 15f).harvestTool(ToolType.AXE).harvestLevel(0).setRequiresTool()));
public static final RegistryObject<Block> PURPLE_PLANKS = createBlock("purple_planks", () -> new Block(AbstractBlock.Properties.create(Material.WOOD).hardnessAndResistance(3f, 15f).harvestTool(ToolType.AXE).harvestLevel(0).setRequiresTool()));
public static RegistryObject<Block> createBlock(String name, Supplier<? extends Block> supplier) {
RegistryObject<Block> block = BLOCKS.register(name, supplier);

View File

@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "arkiadeco:block/blue_planks"
}
}
}

View File

@@ -1,7 +0,0 @@
{
"variants": {
"": {
"model": "arkiadeco:block/blue_wood"
}
}
}

View File

@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "arkiadeco:block/pink_planks"
}
}
}

View File

@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "arkiadeco:block/purple_planks"
}
}
}

View File

@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "arkiadeco:block/red_planks"
}
}
}

View File

@@ -1,5 +1,8 @@
{
"item.arkiadeco.test_item": "Test Item",
"item.arkiadeco.test_stick": "Test Stick",
"block.arkiadeco.blue_wood": "Blue Wood"
"block.arkiadeco.blue_planks": "Blue Planks",
"block.arkiadeco.red_planks": "Red Planks",
"block.arkiadeco.pink_planks": "Pink Planks",
"block.arkiadeco.purple_planks": "Purple Planks"
}

View File

@@ -1,5 +1,8 @@
{
"item.arkiadeco.test_item": "Item de Test",
"item.arkiadeco.test_stick": "Bâton de Test",
"block.arkiadeco.blue_wood": "Bois Bleu"
"block.arkiadeco.blue_planks": "Planche Bleu",
"block.arkiadeco.red_planks": "Planche Rouge",
"block.arkiadeco.pink_planks": "Planche Rose",
"block.arkiadeco.purple_planks": "Planche Violette"
}

View File

@@ -0,0 +1,6 @@
{
"parent": "block/cube_all",
"textures": {
"all": "arkiadeco:block/blue_planks"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "block/cube_all",
"textures": {
"all": "arkiadeco:block/pink_planks"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "block/cube_all",
"textures": {
"all": "arkiadeco:block/purple_planks"
}
}

View File

@@ -1,6 +1,6 @@
{
"parent": "block/cube_all",
"textures": {
"all": "arkiadeco:block/blue_wood"
"all": "arkiadeco:block/red_planks"
}
}

View File

@@ -0,0 +1,3 @@
{
"parent": "arkiadeco:block/blue_planks"
}

View File

@@ -1,3 +0,0 @@
{
"parent": "arkiadeco:block/blue_wood"
}

View File

@@ -0,0 +1,3 @@
{
"parent": "arkiadeco:block/pink_planks"
}

View File

@@ -0,0 +1,3 @@
{
"parent": "arkiadeco:block/purple_planks"
}

View File

@@ -0,0 +1,3 @@
{
"parent": "arkiadeco:block/red_planks"
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 256 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 463 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 268 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 256 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 256 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 256 B

View File

@@ -0,0 +1,19 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "arkiadeco:blue_planks"
}
],
"conditions": [
{
"conditions": "minecraft:survives_explosions"
}
]
}
]
}

View File

@@ -0,0 +1,19 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "arkiadeco:pink_planks"
}
],
"conditions": [
{
"conditions": "minecraft:survives_explosions"
}
]
}
]
}

View File

@@ -0,0 +1,19 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "arkiadeco:purple_planks"
}
],
"conditions": [
{
"conditions": "minecraft:survives_explosions"
}
]
}
]
}

View File

@@ -6,7 +6,7 @@
"entries": [
{
"type": "minecraft:item",
"name": "arkiadeco:blue_wool"
"name": "arkiadeco:red_planks"
}
],
"conditions": [