Wall mosses

This commit is contained in:
paulevsGitch 2020-11-04 15:55:26 +03:00
parent 8279dcd8ef
commit a0ecdff67f
17 changed files with 322 additions and 5 deletions

View file

@ -1,8 +1,15 @@
package ru.betterend.blocks.basis; package ru.betterend.blocks.basis;
import java.util.List;
import com.google.common.collect.Lists;
import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings; import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings;
import net.fabricmc.fabric.api.tool.attribute.v1.FabricToolTags; import net.fabricmc.fabric.api.tool.attribute.v1.FabricToolTags;
import net.minecraft.block.BlockState;
import net.minecraft.block.Material; import net.minecraft.block.Material;
import net.minecraft.item.ItemStack;
import net.minecraft.loot.context.LootContext;
import net.minecraft.sound.BlockSoundGroup; import net.minecraft.sound.BlockSoundGroup;
public class BlockWallMushroom extends BlockWallPlant { public class BlockWallMushroom extends BlockWallPlant {
@ -19,4 +26,9 @@ public class BlockWallMushroom extends BlockWallPlant {
.blockVision((state, world, pos) -> { return false; }) .blockVision((state, world, pos) -> { return false; })
.noCollision()); .noCollision());
} }
@Override
public List<ItemStack> getDroppedStacks(BlockState state, LootContext.Builder builder) {
return Lists.newArrayList(new ItemStack(this));
}
} }

View file

@ -113,11 +113,6 @@ public class BlockWallPlant extends BlockPlant {
} }
} }
@Override
public List<ItemStack> getDroppedStacks(BlockState state, LootContext.Builder builder) {
return Lists.newArrayList(new ItemStack(this));
}
@Override @Override
public BlockState rotate(BlockState state, BlockRotation rotation) { public BlockState rotate(BlockState state, BlockRotation rotation) {
return BlocksHelper.rotateHorizontal(state, rotation, FACING); return BlocksHelper.rotateHorizontal(state, rotation, FACING);

View file

@ -52,6 +52,7 @@ import ru.betterend.blocks.basis.BlockOre;
import ru.betterend.blocks.basis.BlockSimpleLeaves; import ru.betterend.blocks.basis.BlockSimpleLeaves;
import ru.betterend.blocks.basis.BlockVine; import ru.betterend.blocks.basis.BlockVine;
import ru.betterend.blocks.basis.BlockWallMushroom; import ru.betterend.blocks.basis.BlockWallMushroom;
import ru.betterend.blocks.basis.BlockWallPlant;
import ru.betterend.blocks.complex.StoneMaterial; import ru.betterend.blocks.complex.StoneMaterial;
import ru.betterend.blocks.complex.WoodenMaterial; import ru.betterend.blocks.complex.WoodenMaterial;
import ru.betterend.tab.CreativeTab; import ru.betterend.tab.CreativeTab;
@ -135,6 +136,8 @@ public class EndBlocks {
// Wall Plants // // Wall Plants //
public static final Block PURPLE_POLYPORE = registerBlock("purple_polypore", new BlockWallMushroom(13)); public static final Block PURPLE_POLYPORE = registerBlock("purple_polypore", new BlockWallMushroom(13));
public static final Block TAIL_MOSS = registerBlock("tail_moss", new BlockWallPlant());
public static final Block CYAN_MOSS = registerBlock("cyan_moss", new BlockWallPlant(13));
// Crops // // Crops //
public static final Block SHADOW_BERRY = registerBlock("shadow_berry", new BlockShadowBerry()); public static final Block SHADOW_BERRY = registerBlock("shadow_berry", new BlockShadowBerry());

View file

@ -59,6 +59,7 @@ public class EndFeatures {
// Wall Plants // // Wall Plants //
public static final EndFeature PURPLE_POLYPORE = new EndFeature("purple_polypore", new WallPlantOnLogFeature(EndBlocks.PURPLE_POLYPORE, 3), 5); public static final EndFeature PURPLE_POLYPORE = new EndFeature("purple_polypore", new WallPlantOnLogFeature(EndBlocks.PURPLE_POLYPORE, 3), 5);
public static final EndFeature PURPLE_POLYPORE_DENSE = new EndFeature("purple_polypore_dense", new WallPlantOnLogFeature(EndBlocks.PURPLE_POLYPORE, 5), 15); public static final EndFeature PURPLE_POLYPORE_DENSE = new EndFeature("purple_polypore_dense", new WallPlantOnLogFeature(EndBlocks.PURPLE_POLYPORE, 5), 15);
//public static final EndFeature TAIL_MOSS = new EndFeature("tail_moss", new WallPlantOnLogFeature(EndBlocks.PURPLE_POLYPORE, 3), 5);
// Water // // Water //
public static final EndFeature BUBBLE_CORAL = new EndFeature("bubble_coral", new UnderwaterPlantFeature(EndBlocks.BUBBLE_CORAL, 10), 10); public static final EndFeature BUBBLE_CORAL = new EndFeature("bubble_coral", new UnderwaterPlantFeature(EndBlocks.BUBBLE_CORAL, 10), 10);

View file

@ -0,0 +1,24 @@
{
"variants": {
"facing=north": [
{ "model": "betterend:block/cyan_moss_01", "y": 180 },
{ "model": "betterend:block/cyan_moss_02", "y": 180 },
{ "model": "betterend:block/cyan_moss_03", "y": 180 }
],
"facing=south": [
{ "model": "betterend:block/cyan_moss_01" },
{ "model": "betterend:block/cyan_moss_02" },
{ "model": "betterend:block/cyan_moss_03" }
],
"facing=east": [
{ "model": "betterend:block/cyan_moss_01", "y": 270 },
{ "model": "betterend:block/cyan_moss_02", "y": 270 },
{ "model": "betterend:block/cyan_moss_03", "y": 270 }
],
"facing=west": [
{ "model": "betterend:block/cyan_moss_01", "y": 90 },
{ "model": "betterend:block/cyan_moss_02", "y": 90 },
{ "model": "betterend:block/cyan_moss_03", "y": 90 }
]
}
}

View file

@ -0,0 +1,24 @@
{
"variants": {
"facing=north": [
{ "model": "betterend:block/tail_moss_01", "y": 180 },
{ "model": "betterend:block/tail_moss_02", "y": 180 },
{ "model": "betterend:block/tail_moss_03", "y": 180 }
],
"facing=south": [
{ "model": "betterend:block/tail_moss_01" },
{ "model": "betterend:block/tail_moss_02" },
{ "model": "betterend:block/tail_moss_03" }
],
"facing=east": [
{ "model": "betterend:block/tail_moss_01", "y": 270 },
{ "model": "betterend:block/tail_moss_02", "y": 270 },
{ "model": "betterend:block/tail_moss_03", "y": 270 }
],
"facing=west": [
{ "model": "betterend:block/tail_moss_01", "y": 90 },
{ "model": "betterend:block/tail_moss_02", "y": 90 },
{ "model": "betterend:block/tail_moss_03", "y": 90 }
]
}
}

View file

@ -0,0 +1,6 @@
{
"parent": "betterend:block/wall_moss_01",
"textures": {
"texture": "betterend:block/cyan_moss"
}
}

View file

@ -0,0 +1,6 @@
{
"parent": "betterend:block/wall_moss_02",
"textures": {
"texture": "betterend:block/cyan_moss"
}
}

View file

@ -0,0 +1,6 @@
{
"parent": "betterend:block/wall_moss_03",
"textures": {
"texture": "betterend:block/cyan_moss"
}
}

View file

@ -0,0 +1,6 @@
{
"parent": "betterend:block/wall_moss_01",
"textures": {
"texture": "betterend:block/tail_moss"
}
}

View file

@ -0,0 +1,6 @@
{
"parent": "betterend:block/wall_moss_02",
"textures": {
"texture": "betterend:block/tail_moss"
}
}

View file

@ -0,0 +1,6 @@
{
"parent": "betterend:block/wall_moss_03",
"textures": {
"texture": "betterend:block/tail_moss"
}
}

View file

@ -0,0 +1,96 @@
{
"__comment": "Designed by Paulevs with Cubik Studio - https://cubik.studio",
"textures": {
"particle": "#texture"
},
"elements": [
{
"__comment": "PlaneY1",
"from": [ 3, 15, 0 ],
"to": [ 19, 15.001, 16 ],
"rotation": { "origin": [ 3, 15, 0 ], "axis": "x", "angle": 45 },
"shade": false,
"faces": {
"down": { "uv": [ 16, 0, 0, 16 ], "texture": "#texture" },
"up": { "uv": [ 0, 0, 16, 16 ], "texture": "#texture", "rotation": 180 }
}
},
{
"__comment": "PlaneY1",
"from": [ 1, 11, 0 ],
"to": [ 17, 11.001, 16 ],
"rotation": { "origin": [ 1, 11, 0 ], "axis": "x", "angle": 45 },
"shade": false,
"faces": {
"down": { "uv": [ 16, 0, 0, 16 ], "texture": "#texture" },
"up": { "uv": [ 0, 0, 16, 16 ], "texture": "#texture", "rotation": 180 }
}
},
{
"__comment": "PlaneY1",
"from": [ 1, -10, 0 ],
"to": [ 17, 6, 0.001 ],
"rotation": { "origin": [ 1, 6, 0 ], "axis": "x", "angle": -45 },
"shade": false,
"faces": {
"north": { "uv": [ 0, 16, 16, 0 ], "texture": "#texture" },
"south": { "uv": [ 0, 0, 16, 16 ], "texture": "#texture", "rotation": 180 }
}
},
{
"__comment": "PlaneY1",
"from": [ -3, 13.5, 0 ],
"to": [ 13, 13.501, 16 ],
"rotation": { "origin": [ -3, 13.5, 0 ], "axis": "x", "angle": 45 },
"shade": false,
"faces": {
"down": { "uv": [ 16, 0, 0, 16 ], "texture": "#texture" },
"up": { "uv": [ 0, 0, 16, 16 ], "texture": "#texture", "rotation": 180 }
}
},
{
"__comment": "PlaneY1",
"from": [ 1, 1, 0 ],
"to": [ 17, 1.001, 16 ],
"rotation": { "origin": [ 1, 1, 0 ], "axis": "x", "angle": 22.5 },
"shade": false,
"faces": {
"down": { "uv": [ 16, 0, 0, 16 ], "texture": "#texture" },
"up": { "uv": [ 0, 0, 16, 16 ], "texture": "#texture", "rotation": 180 }
}
},
{
"__comment": "PlaneY1",
"from": [ -1, -9, 0 ],
"to": [ 15, 7, 0.001 ],
"rotation": { "origin": [ -1, 7, 0 ], "axis": "x", "angle": -45 },
"shade": false,
"faces": {
"north": { "uv": [ 0, 16, 16, 0 ], "texture": "#texture" },
"south": { "uv": [ 0, 0, 16, 16 ], "texture": "#texture", "rotation": 180 }
}
},
{
"__comment": "PlaneY1",
"from": [ -1.5, 16, 0 ],
"to": [ 14.5, 16.001, 16 ],
"rotation": { "origin": [ -1.5, 16, 0 ], "axis": "x", "angle": 45 },
"shade": false,
"faces": {
"down": { "uv": [ 16, 0, 0, 16 ], "texture": "#texture" },
"up": { "uv": [ 0, 0, 16, 16 ], "texture": "#texture", "rotation": 180 }
}
},
{
"__comment": "PlaneY1",
"from": [ -2, 0.5, 0 ],
"to": [ 14, 0.501, 16 ],
"rotation": { "origin": [ -2, 0.5, 0 ], "axis": "x", "angle": 22.5 },
"shade": false,
"faces": {
"down": { "uv": [ 16, 0, 0, 16 ], "texture": "#texture" },
"up": { "uv": [ 0, 0, 16, 16 ], "texture": "#texture", "rotation": 180 }
}
}
]
}

View file

@ -0,0 +1,63 @@
{
"__comment": "Designed by Paulevs with Cubik Studio - https://cubik.studio",
"textures": {
"particle": "#texture"
},
"elements": [
{
"__comment": "PlaneY1",
"from": [ 3, 15, 0 ],
"to": [ 19, 15.001, 16 ],
"rotation": { "origin": [ 3, 15, 0 ], "axis": "x", "angle": 45 },
"shade": false,
"faces": {
"down": { "uv": [ 16, 0, 0, 16 ], "texture": "#texture" },
"up": { "uv": [ 0, 0, 16, 16 ], "texture": "#texture", "rotation": 180 }
}
},
{
"__comment": "PlaneY1",
"from": [ 0, -15, 0 ],
"to": [ 16, 1, 0.001 ],
"rotation": { "origin": [ 0, 1, 0 ], "axis": "x", "angle": -22.5 },
"shade": false,
"faces": {
"north": { "uv": [ 0, 16, 16, 0 ], "texture": "#texture" },
"south": { "uv": [ 0, 0, 16, 16 ], "texture": "#texture", "rotation": 180 }
}
},
{
"__comment": "PlaneY1",
"from": [ -2, -12, 0 ],
"to": [ 14, 4, 0.001 ],
"rotation": { "origin": [ -2, 4, 0 ], "axis": "x", "angle": -45 },
"shade": false,
"faces": {
"north": { "uv": [ 0, 16, 16, 0 ], "texture": "#texture" },
"south": { "uv": [ 0, 0, 16, 16 ], "texture": "#texture", "rotation": 180 }
}
},
{
"__comment": "PlaneY1",
"from": [ 0, -9, 0 ],
"to": [ 16, 7, 0.001 ],
"rotation": { "origin": [ 0, 7, 0 ], "axis": "x", "angle": -45 },
"shade": false,
"faces": {
"north": { "uv": [ 0, 16, 16, 0 ], "texture": "#texture" },
"south": { "uv": [ 0, 0, 16, 16 ], "texture": "#texture", "rotation": 180 }
}
},
{
"__comment": "PlaneY1",
"from": [ 0, -3, 0 ],
"to": [ 16, 13, 0.001 ],
"rotation": { "origin": [ 0, 13, 0 ], "axis": "x", "angle": -22.5 },
"shade": false,
"faces": {
"north": { "uv": [ 0, 16, 16, 0 ], "texture": "#texture" },
"south": { "uv": [ 0, 0, 16, 16 ], "texture": "#texture", "rotation": 180 }
}
}
]
}

View file

@ -0,0 +1,63 @@
{
"__comment": "Designed by Paulevs with Cubik Studio - https://cubik.studio",
"textures": {
"particle": "#texture"
},
"elements": [
{
"__comment": "PlaneY1",
"from": [ -1, 0, 0 ],
"to": [ 15, 16, 0.001 ],
"rotation": { "origin": [ -1, 16, 0 ], "axis": "x", "angle": -22.5 },
"shade": false,
"faces": {
"north": { "uv": [ 0, 16, 16, 0 ], "texture": "#texture" },
"south": { "uv": [ 0, 0, 16, 16 ], "texture": "#texture", "rotation": 180 }
}
},
{
"__comment": "PlaneY1",
"from": [ 2, -3, 0 ],
"to": [ 18, 13, 0.001 ],
"rotation": { "origin": [ 2, 13, 0 ], "axis": "x", "angle": -22.5 },
"shade": false,
"faces": {
"north": { "uv": [ 0, 16, 16, 0 ], "texture": "#texture" },
"south": { "uv": [ 0, 0, 16, 16 ], "texture": "#texture", "rotation": 180 }
}
},
{
"__comment": "PlaneY1",
"from": [ 0, -8, 0 ],
"to": [ 16, 8, 0.001 ],
"rotation": { "origin": [ 0, 8, 0 ], "axis": "x", "angle": -22.5 },
"shade": false,
"faces": {
"north": { "uv": [ 0, 16, 16, 0 ], "texture": "#texture" },
"south": { "uv": [ 0, 0, 16, 16 ], "texture": "#texture", "rotation": 180 }
}
},
{
"__comment": "PlaneY1",
"from": [ -3, -12, 0 ],
"to": [ 13, 4, 0.001 ],
"rotation": { "origin": [ -3, 4, 0 ], "axis": "x", "angle": -22.5 },
"shade": false,
"faces": {
"north": { "uv": [ 0, 16, 16, 0 ], "texture": "#texture" },
"south": { "uv": [ 0, 0, 16, 16 ], "texture": "#texture", "rotation": 180 }
}
},
{
"__comment": "PlaneY1",
"from": [ 3, -15, 0 ],
"to": [ 19, 1, 0.001 ],
"rotation": { "origin": [ 3, 1, 0 ], "axis": "x", "angle": -22.5 },
"shade": false,
"faces": {
"north": { "uv": [ 0, 16, 16, 0 ], "texture": "#texture" },
"south": { "uv": [ 0, 0, 16, 16 ], "texture": "#texture", "rotation": 180 }
}
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2 KiB