mirror of
https://github.com/Arkia-Groupe/ArkiaDeco.git
synced 2026-01-18 16:27:36 +01:00
Add Planks
Add blue, red, pink, purple planks.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"variants": {
|
||||
"": {
|
||||
"model": "arkiadeco:block/blue_planks"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
{
|
||||
"variants": {
|
||||
"": {
|
||||
"model": "arkiadeco:block/blue_wood"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"variants": {
|
||||
"": {
|
||||
"model": "arkiadeco:block/pink_planks"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"variants": {
|
||||
"": {
|
||||
"model": "arkiadeco:block/purple_planks"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"variants": {
|
||||
"": {
|
||||
"model": "arkiadeco:block/red_planks"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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"
|
||||
}
|
||||
@@ -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"
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "block/cube_all",
|
||||
"textures": {
|
||||
"all": "arkiadeco:block/blue_planks"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "block/cube_all",
|
||||
"textures": {
|
||||
"all": "arkiadeco:block/pink_planks"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "block/cube_all",
|
||||
"textures": {
|
||||
"all": "arkiadeco:block/purple_planks"
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"parent": "block/cube_all",
|
||||
"textures": {
|
||||
"all": "arkiadeco:block/blue_wood"
|
||||
"all": "arkiadeco:block/red_planks"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"parent": "arkiadeco:block/blue_planks"
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
{
|
||||
"parent": "arkiadeco:block/blue_wood"
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"parent": "arkiadeco:block/pink_planks"
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"parent": "arkiadeco:block/purple_planks"
|
||||
}
|
||||
@@ -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 |
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"type": "minecraft:block",
|
||||
"pools": [
|
||||
{
|
||||
"rolls": 1,
|
||||
"entries": [
|
||||
{
|
||||
"type": "minecraft:item",
|
||||
"name": "arkiadeco:blue_planks"
|
||||
}
|
||||
],
|
||||
"conditions": [
|
||||
{
|
||||
"conditions": "minecraft:survives_explosions"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"type": "minecraft:block",
|
||||
"pools": [
|
||||
{
|
||||
"rolls": 1,
|
||||
"entries": [
|
||||
{
|
||||
"type": "minecraft:item",
|
||||
"name": "arkiadeco:pink_planks"
|
||||
}
|
||||
],
|
||||
"conditions": [
|
||||
{
|
||||
"conditions": "minecraft:survives_explosions"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"type": "minecraft:block",
|
||||
"pools": [
|
||||
{
|
||||
"rolls": 1,
|
||||
"entries": [
|
||||
{
|
||||
"type": "minecraft:item",
|
||||
"name": "arkiadeco:purple_planks"
|
||||
}
|
||||
],
|
||||
"conditions": [
|
||||
{
|
||||
"conditions": "minecraft:survives_explosions"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -6,7 +6,7 @@
|
||||
"entries": [
|
||||
{
|
||||
"type": "minecraft:item",
|
||||
"name": "arkiadeco:blue_wool"
|
||||
"name": "arkiadeco:red_planks"
|
||||
}
|
||||
],
|
||||
"conditions": [
|
||||
Reference in New Issue
Block a user