18 Commits

Author SHA1 Message Date
Motschen
f5a3f743a5 Bump version 2021-02-08 16:24:27 +01:00
Motschen
a2a834790c Fix missing starfish particles 2021-02-08 16:21:12 +01:00
Motschen
5616e19b21 This Rocks 1.3.0
Fixes #5, #7, #9, #11, #13
Make rotations random
Starfish is now a json model!
2021-02-08 14:06:01 +01:00
Motschen
b1b8962ec0 Add back MidnightHats, bump version 2020-11-24 19:13:20 +01:00
Motschen
9033b20e2b Merge pull request #6 from CoolMineman/main
Make Code More Normal
2020-11-24 18:53:34 +01:00
CoolMineman
8b39488508 make modelparts static 2020-11-21 18:50:15 -06:00
CoolMineman
e9b4db47d8 clean up terrible code 2020-11-21 18:38:39 -06:00
CoolMineman
de5a4287c4 code cleanup 2020-11-21 18:35:44 -06:00
CoolMineman
b1864bf616 get gradle to work; remove nonexistant mod 2020-11-21 18:33:52 -06:00
Motschen
9c4c40ceb4 Probably Fixed #4, Also little code cleanup 2020-11-19 08:36:37 +01:00
Motschen
289a2b3c44 Merge branch 'main' of https://github.com/TeamMidnightDust/ThisRocks into main 2020-11-14 17:44:50 +01:00
Motschen
08824fee5b Fix #3 2020-11-14 17:44:36 +01:00
Motschen
8f906d5fb2 Merge pull request #1 from Samekichi/Samekichi-patch-1
Create zh_cn.json
2020-11-14 17:40:54 +01:00
Motschen
cf5448b9e5 Merge pull request #2 from Romz24/patch-1
Create ru_ru.json
2020-11-14 17:40:35 +01:00
Motschen
4b53dcd289 This Rocks 1.2.0
-Added geysers!
-Added Granite, Diorite, Andesite, Gravel, Netherrack and Soul Soil rocks!
-Tweaked worldgen to fix some minor issues.
2020-11-14 17:38:01 +01:00
Samekichi
4018865402 Update zh_cn.json
Fixed typo.
2020-11-08 16:06:09 +08:00
Roman Hubenkov
89ef6a2fda Create ru_ru.json 2020-11-05 23:16:36 +03:00
Samekichi
2148ec1218 Create zh_cn.json 2020-11-05 12:49:23 +08:00
114 changed files with 2813 additions and 390 deletions

1
.gitignore vendored
View File

@@ -1,7 +1,6 @@
# gradle # gradle
.gradle/ .gradle/
build/
out/ out/
classes/ classes/

Binary file not shown.

View File

@@ -3,12 +3,12 @@ org.gradle.jvmargs=-Xmx2G
# Fabric Properties # Fabric Properties
# check these on https://fabricmc.net/use # check these on https://fabricmc.net/use
minecraft_version=1.16.2 minecraft_version=1.16.4
yarn_mappings=1.16.2+build.6 yarn_mappings=1.16.4+build.7
loader_version=0.9.1+build.205 loader_version=0.10.8
# Mod Properties # Mod Properties
mod_version = 1.1.0 mod_version = 1.3.1
maven_group = eu.midnightdust.motschen maven_group = eu.midnightdust.motschen
archives_base_name = rocks archives_base_name = rocks

View File

View File

@@ -1,32 +0,0 @@
package eu.midnightdust.motschen.rocks;
import eu.midnightdust.motschen.rocks.block.*;
import eu.midnightdust.motschen.rocks.block.blockentity.BlockEntityInit;
import eu.midnightdust.motschen.rocks.block.render.StarfishBlockEntityRenderer;
import eu.midnightdust.motschen.rocks.blockstates.RockVariation;
import eu.midnightdust.motschen.rocks.blockstates.SeashellVariation;
import eu.midnightdust.motschen.rocks.blockstates.StickVariation;
import eu.midnightdust.motschen.rocks.world.FeatureInjector;
import eu.midnightdust.motschen.rocks.world.MiscFeatures;
import eu.midnightdust.motschen.rocks.world.RockFeatures;
import eu.midnightdust.motschen.rocks.world.StickFeatures;
import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.client.itemgroup.FabricItemGroupBuilder;
import net.fabricmc.fabric.api.client.rendereregistry.v1.BlockEntityRendererRegistry;
import net.minecraft.block.Block;
import net.minecraft.item.BlockItem;
import net.minecraft.item.Item;
import net.minecraft.item.ItemGroup;
import net.minecraft.item.ItemStack;
import net.minecraft.state.property.EnumProperty;
import net.minecraft.util.Identifier;
import net.minecraft.util.registry.Registry;
public class RocksClient implements ClientModInitializer {
@Override
public void onInitializeClient() {
BlockEntityRendererRegistry.INSTANCE.register(BlockEntityInit.STARFISH_BE, StarfishBlockEntityRenderer::new);
}
}

View File

@@ -7,6 +7,10 @@ import eu.midnightdust.motschen.rocks.blockstates.SeashellVariation;
import eu.midnightdust.motschen.rocks.blockstates.StarfishVariation; import eu.midnightdust.motschen.rocks.blockstates.StarfishVariation;
import eu.midnightdust.motschen.rocks.blockstates.StickVariation; import eu.midnightdust.motschen.rocks.blockstates.StickVariation;
import eu.midnightdust.motschen.rocks.world.*; import eu.midnightdust.motschen.rocks.world.*;
import eu.midnightdust.motschen.rocks.world.configured_feature.MiscFeatures;
import eu.midnightdust.motschen.rocks.world.configured_feature.NetherFeatures;
import eu.midnightdust.motschen.rocks.world.configured_feature.RockFeatures;
import eu.midnightdust.motschen.rocks.world.configured_feature.StickFeatures;
import net.fabricmc.api.ModInitializer; import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.client.itemgroup.FabricItemGroupBuilder; import net.fabricmc.fabric.api.client.itemgroup.FabricItemGroupBuilder;
import net.minecraft.block.Block; import net.minecraft.block.Block;
@@ -27,9 +31,15 @@ public class RocksMain implements ModInitializer {
public static final EnumProperty<StarfishVariation> STARFISH_VARIATION = EnumProperty.of("variation", StarfishVariation.class); public static final EnumProperty<StarfishVariation> STARFISH_VARIATION = EnumProperty.of("variation", StarfishVariation.class);
public static Block Rock = new Rock(); public static Block Rock = new Rock();
public static Block GraniteRock = new Rock();
public static Block DioriteRock = new Rock();
public static Block AndesiteRock = new Rock();
public static Block SandRock = new Rock(); public static Block SandRock = new Rock();
public static Block RedSandRock = new Rock(); public static Block RedSandRock = new Rock();
public static Block GravelRock = new Rock();
public static Block EndstoneRock = new Rock(); public static Block EndstoneRock = new Rock();
public static Block NetherrackRock = new Rock();
public static Block SoulSoilRock = new Rock();
public static Block OakStick = new Stick(); public static Block OakStick = new Stick();
public static Block SpruceStick = new Stick(); public static Block SpruceStick = new Stick();
@@ -41,22 +51,41 @@ public class RocksMain implements ModInitializer {
public static Block Pinecone = new Pinecone(); public static Block Pinecone = new Pinecone();
public static Block Seashell = new Seashell(); public static Block Seashell = new Seashell();
public static Block Starfish = new Starfish(); public static Block Starfish = new Starfish();
public static Block Geyser = new OverworldGeyser();
public static Block NetherGeyser = new NetherGeyser();
public static Item CobbleStoneSplitter = new Item(new Item.Settings().group(RocksMain.RocksGroup)); public static Item CobblestoneSplitter = new Item(new Item.Settings().group(RocksMain.RocksGroup));
public static Item GraniteSplitter = new Item(new Item.Settings().group(RocksMain.RocksGroup));
public static Item DioriteSplitter = new Item(new Item.Settings().group(RocksMain.RocksGroup));
public static Item AndesiteSplitter = new Item(new Item.Settings().group(RocksMain.RocksGroup));
public static Item SandStoneSplitter = new Item(new Item.Settings().group(RocksMain.RocksGroup)); public static Item SandStoneSplitter = new Item(new Item.Settings().group(RocksMain.RocksGroup));
public static Item RedSandStoneSplitter = new Item(new Item.Settings().group(RocksMain.RocksGroup)); public static Item RedSandStoneSplitter = new Item(new Item.Settings().group(RocksMain.RocksGroup));
public static Item EndStoneSplitter = new Item(new Item.Settings().group(RocksMain.RocksGroup)); public static Item EndStoneSplitter = new Item(new Item.Settings().group(RocksMain.RocksGroup));
public static Item NetherrackSplitter = new Item(new Item.Settings().group(RocksMain.RocksGroup));
public static Item SoulSoilSplitter = new Item(new Item.Settings().group(RocksMain.RocksGroup));
@Override @Override
public void onInitialize() { public void onInitialize() {
Registry.register(Registry.BLOCK, new Identifier(MOD_ID,"rock"), Rock); Registry.register(Registry.BLOCK, new Identifier(MOD_ID,"rock"), Rock);
Registry.register(Registry.ITEM, new Identifier(MOD_ID,"rock"), new BlockItem(Rock, new Item.Settings().group(RocksMain.RocksGroup))); Registry.register(Registry.ITEM, new Identifier(MOD_ID,"rock"), new BlockItem(Rock, new Item.Settings().group(RocksMain.RocksGroup)));
Registry.register(Registry.BLOCK, new Identifier(MOD_ID,"granite_rock"), GraniteRock);
Registry.register(Registry.ITEM, new Identifier(MOD_ID,"granite_rock"), new BlockItem(GraniteRock, new Item.Settings().group(RocksMain.RocksGroup)));
Registry.register(Registry.BLOCK, new Identifier(MOD_ID,"diorite_rock"), DioriteRock);
Registry.register(Registry.ITEM, new Identifier(MOD_ID,"diorite_rock"), new BlockItem(DioriteRock, new Item.Settings().group(RocksMain.RocksGroup)));
Registry.register(Registry.BLOCK, new Identifier(MOD_ID,"andesite_rock"), AndesiteRock);
Registry.register(Registry.ITEM, new Identifier(MOD_ID,"andesite_rock"), new BlockItem(AndesiteRock, new Item.Settings().group(RocksMain.RocksGroup)));
Registry.register(Registry.BLOCK, new Identifier(MOD_ID,"sand_rock"), SandRock); Registry.register(Registry.BLOCK, new Identifier(MOD_ID,"sand_rock"), SandRock);
Registry.register(Registry.ITEM, new Identifier(MOD_ID,"sand_rock"), new BlockItem(SandRock, new Item.Settings().group(RocksMain.RocksGroup))); Registry.register(Registry.ITEM, new Identifier(MOD_ID,"sand_rock"), new BlockItem(SandRock, new Item.Settings().group(RocksMain.RocksGroup)));
Registry.register(Registry.BLOCK, new Identifier(MOD_ID,"red_sand_rock"), RedSandRock); Registry.register(Registry.BLOCK, new Identifier(MOD_ID,"red_sand_rock"), RedSandRock);
Registry.register(Registry.ITEM, new Identifier(MOD_ID,"red_sand_rock"), new BlockItem(RedSandRock, new Item.Settings().group(RocksMain.RocksGroup))); Registry.register(Registry.ITEM, new Identifier(MOD_ID,"red_sand_rock"), new BlockItem(RedSandRock, new Item.Settings().group(RocksMain.RocksGroup)));
Registry.register(Registry.BLOCK, new Identifier(MOD_ID,"gravel_rock"), GravelRock);
Registry.register(Registry.ITEM, new Identifier(MOD_ID,"gravel_rock"), new BlockItem(GravelRock, new Item.Settings().group(RocksMain.RocksGroup)));
Registry.register(Registry.BLOCK, new Identifier(MOD_ID,"end_stone_rock"), EndstoneRock); Registry.register(Registry.BLOCK, new Identifier(MOD_ID,"end_stone_rock"), EndstoneRock);
Registry.register(Registry.ITEM, new Identifier(MOD_ID,"end_stone_rock"), new BlockItem(EndstoneRock, new Item.Settings().group(RocksMain.RocksGroup))); Registry.register(Registry.ITEM, new Identifier(MOD_ID,"end_stone_rock"), new BlockItem(EndstoneRock, new Item.Settings().group(RocksMain.RocksGroup)));
Registry.register(Registry.BLOCK, new Identifier(MOD_ID,"netherrack_rock"), NetherrackRock);
Registry.register(Registry.ITEM, new Identifier(MOD_ID,"netherrack_rock"), new BlockItem(NetherrackRock, new Item.Settings().group(RocksMain.RocksGroup)));
Registry.register(Registry.BLOCK, new Identifier(MOD_ID,"soul_soil_rock"), SoulSoilRock);
Registry.register(Registry.ITEM, new Identifier(MOD_ID,"soul_soil_rock"), new BlockItem(SoulSoilRock, new Item.Settings().group(RocksMain.RocksGroup)));
Registry.register(Registry.BLOCK, new Identifier(MOD_ID,"oak_stick"), OakStick); Registry.register(Registry.BLOCK, new Identifier(MOD_ID,"oak_stick"), OakStick);
Registry.register(Registry.ITEM, new Identifier(MOD_ID,"oak_stick"), new BlockItem(OakStick, new Item.Settings().group(RocksMain.RocksGroup))); Registry.register(Registry.ITEM, new Identifier(MOD_ID,"oak_stick"), new BlockItem(OakStick, new Item.Settings().group(RocksMain.RocksGroup)));
@@ -71,6 +100,11 @@ public class RocksMain implements ModInitializer {
Registry.register(Registry.BLOCK, new Identifier(MOD_ID,"dark_oak_stick"), DarkOakStick); Registry.register(Registry.BLOCK, new Identifier(MOD_ID,"dark_oak_stick"), DarkOakStick);
Registry.register(Registry.ITEM, new Identifier(MOD_ID,"dark_oak_stick"), new BlockItem(DarkOakStick, new Item.Settings().group(RocksMain.RocksGroup))); Registry.register(Registry.ITEM, new Identifier(MOD_ID,"dark_oak_stick"), new BlockItem(DarkOakStick, new Item.Settings().group(RocksMain.RocksGroup)));
Registry.register(Registry.BLOCK, new Identifier(MOD_ID,"geyser"), Geyser);
Registry.register(Registry.ITEM, new Identifier(MOD_ID,"geyser"), new BlockItem(Geyser, new Item.Settings().group(RocksMain.RocksGroup)));
Registry.register(Registry.BLOCK, new Identifier(MOD_ID,"nether_geyser"), NetherGeyser);
Registry.register(Registry.ITEM, new Identifier(MOD_ID,"nether_geyser"), new BlockItem(NetherGeyser, new Item.Settings().group(RocksMain.RocksGroup)));
Registry.register(Registry.BLOCK, new Identifier(MOD_ID,"pinecone"), Pinecone); Registry.register(Registry.BLOCK, new Identifier(MOD_ID,"pinecone"), Pinecone);
Registry.register(Registry.ITEM, new Identifier(MOD_ID,"pinecone"), new BlockItem(Pinecone, new Item.Settings().group(RocksMain.RocksGroup))); Registry.register(Registry.ITEM, new Identifier(MOD_ID,"pinecone"), new BlockItem(Pinecone, new Item.Settings().group(RocksMain.RocksGroup)));
Registry.register(Registry.BLOCK, new Identifier(MOD_ID,"seashell"), Seashell); Registry.register(Registry.BLOCK, new Identifier(MOD_ID,"seashell"), Seashell);
@@ -78,15 +112,21 @@ public class RocksMain implements ModInitializer {
Registry.register(Registry.BLOCK, new Identifier(MOD_ID,"starfish"), Starfish); Registry.register(Registry.BLOCK, new Identifier(MOD_ID,"starfish"), Starfish);
Registry.register(Registry.ITEM, new Identifier(MOD_ID,"starfish"), new BlockItem(Starfish, new Item.Settings().group(RocksMain.RocksGroup))); Registry.register(Registry.ITEM, new Identifier(MOD_ID,"starfish"), new BlockItem(Starfish, new Item.Settings().group(RocksMain.RocksGroup)));
Registry.register(Registry.ITEM, new Identifier(MOD_ID,"cobblestone_splitter"), CobbleStoneSplitter); Registry.register(Registry.ITEM, new Identifier(MOD_ID,"cobblestone_splitter"), CobblestoneSplitter);
Registry.register(Registry.ITEM, new Identifier(MOD_ID,"granite_splitter"), GraniteSplitter);
Registry.register(Registry.ITEM, new Identifier(MOD_ID,"diorite_splitter"), DioriteSplitter);
Registry.register(Registry.ITEM, new Identifier(MOD_ID,"andesite_splitter"), AndesiteSplitter);
Registry.register(Registry.ITEM, new Identifier(MOD_ID,"sandstone_splitter"), SandStoneSplitter); Registry.register(Registry.ITEM, new Identifier(MOD_ID,"sandstone_splitter"), SandStoneSplitter);
Registry.register(Registry.ITEM, new Identifier(MOD_ID,"red_sandstone_splitter"), RedSandStoneSplitter); Registry.register(Registry.ITEM, new Identifier(MOD_ID,"red_sandstone_splitter"), RedSandStoneSplitter);
Registry.register(Registry.ITEM, new Identifier(MOD_ID,"end_stone_splitter"), EndStoneSplitter); Registry.register(Registry.ITEM, new Identifier(MOD_ID,"end_stone_splitter"), EndStoneSplitter);
Registry.register(Registry.ITEM, new Identifier(MOD_ID,"netherrack_splitter"), NetherrackSplitter);
Registry.register(Registry.ITEM, new Identifier(MOD_ID,"soul_soil_splitter"), SoulSoilSplitter);
new FeatureRegistry();
RockFeatures.init(); RockFeatures.init();
StickFeatures.init(); StickFeatures.init();
MiscFeatures.init(); MiscFeatures.init();
NetherFeatures.init();
FeatureInjector.init(); FeatureInjector.init();
BlockEntityInit.init(); BlockEntityInit.init();
} }

View File

@@ -0,0 +1,54 @@
package eu.midnightdust.motschen.rocks.block;
import eu.midnightdust.motschen.rocks.block.blockentity.NetherGeyserBlockEntity;
import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings;
import net.minecraft.block.*;
import net.minecraft.block.entity.BlockEntity;
import net.minecraft.item.ItemPlacementContext;
import net.minecraft.sound.BlockSoundGroup;
import net.minecraft.state.StateManager;
import net.minecraft.state.property.BooleanProperty;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.Direction;
import net.minecraft.util.shape.VoxelShape;
import net.minecraft.world.BlockView;
import net.minecraft.world.WorldView;
public class NetherGeyser extends Block implements BlockEntityProvider {
private static final VoxelShape SHAPE;
public static final BooleanProperty ACTIVE = BooleanProperty.of("active");
public NetherGeyser() {
super(FabricBlockSettings.copy(Blocks.STONE).strength(10).noCollision().nonOpaque().sounds(BlockSoundGroup.STONE));
this.setDefaultState(this.stateManager.getDefaultState().with(ACTIVE, false));
}
@Override
public BlockEntity createBlockEntity(BlockView view) {
return new NetherGeyserBlockEntity();
}
@Override
public BlockState getPlacementState(ItemPlacementContext itemPlacementContext) {
return super.getPlacementState(itemPlacementContext)
.with(ACTIVE, false);
}
@Override
protected void appendProperties(StateManager.Builder<Block, BlockState> builder) {
builder.add(ACTIVE);
}
@Override
public VoxelShape getOutlineShape(BlockState state, BlockView view, BlockPos pos, ShapeContext context) {
return SHAPE;
}
static {
VoxelShape shape = createCuboidShape(5, 0, 5, 11, 1, 11);
SHAPE = shape;
}
public boolean canPlaceAt(BlockState state, WorldView world, BlockPos pos) {
return world.getBlockState(pos.down()).isSideSolidFullSquare(world,pos,Direction.UP);
}
}

View File

@@ -0,0 +1,63 @@
package eu.midnightdust.motschen.rocks.block;
import eu.midnightdust.motschen.rocks.block.blockentity.OverworldGeyserBlockEntity;
import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings;
import net.minecraft.block.*;
import net.minecraft.block.entity.BlockEntity;
import net.minecraft.item.ItemPlacementContext;
import net.minecraft.sound.BlockSoundGroup;
import net.minecraft.state.StateManager;
import net.minecraft.state.property.BooleanProperty;
import net.minecraft.state.property.Properties;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.Direction;
import net.minecraft.util.shape.VoxelShape;
import net.minecraft.util.shape.VoxelShapes;
import net.minecraft.world.BlockView;
import net.minecraft.world.WorldView;
public class OverworldGeyser extends Block implements BlockEntityProvider {
private static final VoxelShape SHAPE;
private static final VoxelShape SNOWY_SHAPE;
public static final BooleanProperty ACTIVE = BooleanProperty.of("active");
public static final BooleanProperty SNOWY = Properties.SNOWY;
public OverworldGeyser() {
super(FabricBlockSettings.copy(Blocks.STONE).strength(10).noCollision().nonOpaque().sounds(BlockSoundGroup.STONE));
this.setDefaultState(this.stateManager.getDefaultState().with(ACTIVE, false).with(SNOWY, false));
}
@Override
public BlockEntity createBlockEntity(BlockView view) {
return new OverworldGeyserBlockEntity();
}
@Override
public BlockState getPlacementState(ItemPlacementContext itemPlacementContext) {
return super.getPlacementState(itemPlacementContext)
.with(ACTIVE, false).with(SNOWY, false);
}
@Override
protected void appendProperties(StateManager.Builder<Block, BlockState> builder) {
builder.add(ACTIVE,SNOWY);
}
@Override
public VoxelShape getOutlineShape(BlockState state, BlockView view, BlockPos pos, ShapeContext context) {
if (state.get(SNOWY) == true) {return SNOWY_SHAPE;}
else return SHAPE;
}
static {
VoxelShape shape = createCuboidShape(5, 0, 5, 11, 1, 11);
VoxelShape snow_layer = createCuboidShape(0, 0, 0, 16, 2, 16);
VoxelShape shape_snow = createCuboidShape(5, 2, 5, 11, 3, 11);
VoxelShape snowy = VoxelShapes.union(snow_layer, shape_snow);
SHAPE = shape;
SNOWY_SHAPE = snowy;
}
public boolean canPlaceAt(BlockState state, WorldView world, BlockPos pos) {
return world.getBlockState(pos.down()).isSideSolidFullSquare(world,pos,Direction.UP);
}
}

View File

@@ -7,6 +7,7 @@ import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.Direction; import net.minecraft.util.math.Direction;
import net.minecraft.util.shape.VoxelShape; import net.minecraft.util.shape.VoxelShape;
import net.minecraft.world.BlockView; import net.minecraft.world.BlockView;
import net.minecraft.world.WorldAccess;
import net.minecraft.world.WorldView; import net.minecraft.world.WorldView;
public class Pinecone extends Block { public class Pinecone extends Block {
@@ -31,4 +32,7 @@ public class Pinecone extends Block {
public boolean canPlaceAt(BlockState state, WorldView world, BlockPos pos) { public boolean canPlaceAt(BlockState state, WorldView world, BlockPos pos) {
return world.getBlockState(pos.down()).isSideSolidFullSquare(world,pos,Direction.UP); return world.getBlockState(pos.down()).isSideSolidFullSquare(world,pos,Direction.UP);
} }
public BlockState getStateForNeighborUpdate(BlockState state, Direction direction, BlockState newState, WorldAccess world, BlockPos pos, BlockPos posFrom) {
return !state.canPlaceAt(world, pos) ? Blocks.AIR.getDefaultState() : super.getStateForNeighborUpdate(state, direction, newState, world, pos, posFrom);
}
} }

View File

@@ -2,7 +2,6 @@ package eu.midnightdust.motschen.rocks.block;
import eu.midnightdust.motschen.rocks.RocksMain; import eu.midnightdust.motschen.rocks.RocksMain;
import eu.midnightdust.motschen.rocks.blockstates.RockVariation; import eu.midnightdust.motschen.rocks.blockstates.RockVariation;
import eu.midnightdust.motschen.rocks.blockstates.SeashellVariation;
import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings; import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings;
import net.minecraft.block.*; import net.minecraft.block.*;
import net.minecraft.entity.player.PlayerEntity; import net.minecraft.entity.player.PlayerEntity;
@@ -18,6 +17,7 @@ import net.minecraft.util.math.Direction;
import net.minecraft.util.shape.VoxelShape; import net.minecraft.util.shape.VoxelShape;
import net.minecraft.world.BlockView; import net.minecraft.world.BlockView;
import net.minecraft.world.World; import net.minecraft.world.World;
import net.minecraft.world.WorldAccess;
import net.minecraft.world.WorldView; import net.minecraft.world.WorldView;
public class Rock extends Block { public class Rock extends Block {
@@ -71,4 +71,7 @@ public class Rock extends Block {
public boolean canPlaceAt(BlockState state, WorldView world, BlockPos pos) { public boolean canPlaceAt(BlockState state, WorldView world, BlockPos pos) {
return world.getBlockState(pos.down()).isSideSolidFullSquare(world,pos,Direction.UP); return world.getBlockState(pos.down()).isSideSolidFullSquare(world,pos,Direction.UP);
} }
public BlockState getStateForNeighborUpdate(BlockState state, Direction direction, BlockState newState, WorldAccess world, BlockPos pos, BlockPos posFrom) {
return !state.canPlaceAt(world, pos) ? Blocks.AIR.getDefaultState() : super.getStateForNeighborUpdate(state, direction, newState, world, pos, posFrom);
}
} }

View File

@@ -2,8 +2,6 @@ package eu.midnightdust.motschen.rocks.block;
import eu.midnightdust.motschen.rocks.RocksMain; import eu.midnightdust.motschen.rocks.RocksMain;
import eu.midnightdust.motschen.rocks.blockstates.SeashellVariation; import eu.midnightdust.motschen.rocks.blockstates.SeashellVariation;
import eu.midnightdust.motschen.rocks.blockstates.StarfishVariation;
import eu.midnightdust.motschen.rocks.blockstates.StickVariation;
import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings; import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings;
import net.minecraft.block.*; import net.minecraft.block.*;
import net.minecraft.entity.player.PlayerEntity; import net.minecraft.entity.player.PlayerEntity;
@@ -11,8 +9,6 @@ import net.minecraft.fluid.FluidState;
import net.minecraft.fluid.Fluids; import net.minecraft.fluid.Fluids;
import net.minecraft.item.ItemPlacementContext; import net.minecraft.item.ItemPlacementContext;
import net.minecraft.sound.BlockSoundGroup; import net.minecraft.sound.BlockSoundGroup;
import net.minecraft.sound.SoundCategory;
import net.minecraft.sound.SoundEvents;
import net.minecraft.state.StateManager; import net.minecraft.state.StateManager;
import net.minecraft.state.property.BooleanProperty; import net.minecraft.state.property.BooleanProperty;
import net.minecraft.state.property.EnumProperty; import net.minecraft.state.property.EnumProperty;
@@ -25,6 +21,7 @@ import net.minecraft.util.math.Direction;
import net.minecraft.util.shape.VoxelShape; import net.minecraft.util.shape.VoxelShape;
import net.minecraft.world.BlockView; import net.minecraft.world.BlockView;
import net.minecraft.world.World; import net.minecraft.world.World;
import net.minecraft.world.WorldAccess;
import net.minecraft.world.WorldView; import net.minecraft.world.WorldView;
public class Seashell extends Block implements Waterloggable { public class Seashell extends Block implements Waterloggable {
@@ -83,4 +80,7 @@ public class Seashell extends Block implements Waterloggable {
public boolean canPlaceAt(BlockState state, WorldView world, BlockPos pos) { public boolean canPlaceAt(BlockState state, WorldView world, BlockPos pos) {
return world.getBlockState(pos.down()).isSideSolidFullSquare(world,pos,Direction.UP); return world.getBlockState(pos.down()).isSideSolidFullSquare(world,pos,Direction.UP);
} }
public BlockState getStateForNeighborUpdate(BlockState state, Direction direction, BlockState newState, WorldAccess world, BlockPos pos, BlockPos posFrom) {
return !state.canPlaceAt(world, pos) ? Blocks.AIR.getDefaultState() : super.getStateForNeighborUpdate(state, direction, newState, world, pos, posFrom);
}
} }

View File

@@ -1,12 +1,9 @@
package eu.midnightdust.motschen.rocks.block; package eu.midnightdust.motschen.rocks.block;
import eu.midnightdust.motschen.rocks.RocksMain; import eu.midnightdust.motschen.rocks.RocksMain;
import eu.midnightdust.motschen.rocks.block.blockentity.StarfishBlockEntity;
import eu.midnightdust.motschen.rocks.blockstates.SeashellVariation;
import eu.midnightdust.motschen.rocks.blockstates.StarfishVariation; import eu.midnightdust.motschen.rocks.blockstates.StarfishVariation;
import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings; import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings;
import net.minecraft.block.*; import net.minecraft.block.*;
import net.minecraft.block.entity.BlockEntity;
import net.minecraft.entity.player.PlayerEntity; import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.fluid.FluidState; import net.minecraft.fluid.FluidState;
import net.minecraft.fluid.Fluids; import net.minecraft.fluid.Fluids;
@@ -24,9 +21,10 @@ import net.minecraft.util.math.Direction;
import net.minecraft.util.shape.VoxelShape; import net.minecraft.util.shape.VoxelShape;
import net.minecraft.world.BlockView; import net.minecraft.world.BlockView;
import net.minecraft.world.World; import net.minecraft.world.World;
import net.minecraft.world.WorldAccess;
import net.minecraft.world.WorldView; import net.minecraft.world.WorldView;
public class Starfish extends Block implements BlockEntityProvider, Waterloggable { public class Starfish extends Block implements Waterloggable {
private static final VoxelShape SHAPE; private static final VoxelShape SHAPE;
private static final EnumProperty<StarfishVariation> STARFISH_VARIATION = RocksMain.STARFISH_VARIATION; private static final EnumProperty<StarfishVariation> STARFISH_VARIATION = RocksMain.STARFISH_VARIATION;
@@ -42,11 +40,6 @@ public class Starfish extends Block implements BlockEntityProvider, Waterloggabl
return blockState_1.get(WATERLOGGED) ? Fluids.WATER.getStill(true) : super.getFluidState(blockState_1); return blockState_1.get(WATERLOGGED) ? Fluids.WATER.getStill(true) : super.getFluidState(blockState_1);
} }
@Override
public BlockEntity createBlockEntity(BlockView view) {
return new StarfishBlockEntity();
}
@Override @Override
public BlockState getPlacementState(ItemPlacementContext itemPlacementContext) { public BlockState getPlacementState(ItemPlacementContext itemPlacementContext) {
FluidState fluidState = itemPlacementContext.getWorld().getFluidState(itemPlacementContext.getBlockPos()); FluidState fluidState = itemPlacementContext.getWorld().getFluidState(itemPlacementContext.getBlockPos());
@@ -87,4 +80,7 @@ public class Starfish extends Block implements BlockEntityProvider, Waterloggabl
public boolean canPlaceAt(BlockState state, WorldView world, BlockPos pos) { public boolean canPlaceAt(BlockState state, WorldView world, BlockPos pos) {
return world.getBlockState(pos.down()).isSideSolidFullSquare(world,pos,Direction.UP); return world.getBlockState(pos.down()).isSideSolidFullSquare(world,pos,Direction.UP);
} }
public BlockState getStateForNeighborUpdate(BlockState state, Direction direction, BlockState newState, WorldAccess world, BlockPos pos, BlockPos posFrom) {
return !state.canPlaceAt(world, pos) ? Blocks.AIR.getDefaultState() : super.getStateForNeighborUpdate(state, direction, newState, world, pos, posFrom);
}
} }

View File

@@ -1,7 +1,6 @@
package eu.midnightdust.motschen.rocks.block; package eu.midnightdust.motschen.rocks.block;
import eu.midnightdust.motschen.rocks.RocksMain; import eu.midnightdust.motschen.rocks.RocksMain;
import eu.midnightdust.motschen.rocks.blockstates.RockVariation;
import eu.midnightdust.motschen.rocks.blockstates.StickVariation; import eu.midnightdust.motschen.rocks.blockstates.StickVariation;
import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings; import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings;
import net.minecraft.block.*; import net.minecraft.block.*;
@@ -18,6 +17,7 @@ import net.minecraft.util.math.Direction;
import net.minecraft.util.shape.VoxelShape; import net.minecraft.util.shape.VoxelShape;
import net.minecraft.world.BlockView; import net.minecraft.world.BlockView;
import net.minecraft.world.World; import net.minecraft.world.World;
import net.minecraft.world.WorldAccess;
import net.minecraft.world.WorldView; import net.minecraft.world.WorldView;
public class Stick extends Block { public class Stick extends Block {
@@ -68,4 +68,7 @@ public class Stick extends Block {
public boolean canPlaceAt(BlockState state, WorldView world, BlockPos pos) { public boolean canPlaceAt(BlockState state, WorldView world, BlockPos pos) {
return world.getBlockState(pos.down()).isSideSolidFullSquare(world,pos,Direction.UP); return world.getBlockState(pos.down()).isSideSolidFullSquare(world,pos,Direction.UP);
} }
public BlockState getStateForNeighborUpdate(BlockState state, Direction direction, BlockState newState, WorldAccess world, BlockPos pos, BlockPos posFrom) {
return !state.canPlaceAt(world, pos) ? Blocks.AIR.getDefaultState() : super.getStateForNeighborUpdate(state, direction, newState, world, pos, posFrom);
}
} }

View File

@@ -6,9 +6,11 @@ import net.minecraft.util.Identifier;
import net.minecraft.util.registry.Registry; import net.minecraft.util.registry.Registry;
public class BlockEntityInit { public class BlockEntityInit {
public static BlockEntityType<StarfishBlockEntity> STARFISH_BE; public static BlockEntityType<OverworldGeyserBlockEntity> OVERWORLD_GEYSER_BE;
public static BlockEntityType<NetherGeyserBlockEntity> NETHER_GEYSER_BE;
public static void init() { public static void init() {
STARFISH_BE = Registry.register(Registry.BLOCK_ENTITY_TYPE, new Identifier(RocksMain.MOD_ID,"starfish_blockentity"), BlockEntityType.Builder.create(StarfishBlockEntity::new, RocksMain.Starfish).build(null)); OVERWORLD_GEYSER_BE = Registry.register(Registry.BLOCK_ENTITY_TYPE, new Identifier(RocksMain.MOD_ID,"overworld_geyser_blockentity"), BlockEntityType.Builder.create(OverworldGeyserBlockEntity::new, RocksMain.Geyser).build(null));
NETHER_GEYSER_BE = Registry.register(Registry.BLOCK_ENTITY_TYPE, new Identifier(RocksMain.MOD_ID,"nether_geyser_blockentity"), BlockEntityType.Builder.create(NetherGeyserBlockEntity::new, RocksMain.NetherGeyser).build(null));
} }
} }

View File

@@ -0,0 +1,51 @@
package eu.midnightdust.motschen.rocks.block.blockentity;
import eu.midnightdust.motschen.rocks.RocksMain;
import eu.midnightdust.motschen.rocks.block.NetherGeyser;
import net.minecraft.block.BlockState;
import net.minecraft.block.entity.BlockEntity;
import net.minecraft.entity.damage.DamageSource;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.particle.ParticleTypes;
import net.minecraft.util.Tickable;
import net.minecraft.util.math.BlockPos;
public class NetherGeyserBlockEntity extends BlockEntity implements Tickable {
private int countdown = 0;
public NetherGeyserBlockEntity() {
super(BlockEntityInit.NETHER_GEYSER_BE);
}
@Override
public void tick() {
if (world.getBlockState(pos).getBlock() == RocksMain.NetherGeyser) {
PlayerEntity player = this.world.getClosestPlayer(pos.getX() + 0.5, pos.getY() + 0.5, pos.getZ() + 0.5, 3, true);
PlayerEntity player2 = this.world.getClosestPlayer(pos.getX() + 0.5, pos.getY() + 0.5, pos.getZ() + 0.5, 1, true);
BlockState state = this.getCachedState();
if (player != null) {
world.setBlockState(pos, state.with(NetherGeyser.ACTIVE, true));
player.damage(DamageSource.ON_FIRE, 1);
if (player2 != null) {
player2.damage(DamageSource.ON_FIRE, 4);
}
countdown = 1000;
} else {
if (countdown > 0) {
countdown = countdown - 1;
}
if (countdown == 0) {
world.setBlockState(pos, state.with(NetherGeyser.ACTIVE, false));
}
}
if (Boolean.TRUE.equals(state.get(NetherGeyser.ACTIVE))) {
world.addParticle(ParticleTypes.LAVA, pos.getX() + 0.5, pos.getY() + 0.1, pos.getZ() + 0.5, 1, 1.5, 1);
world.addParticle(ParticleTypes.LAVA, pos.getX() + 0.5, pos.getY() + 1.0, pos.getZ() + 0.5, 1, 1.5, 1);
world.addParticle(ParticleTypes.SMOKE, pos.getX() + 0.5, pos.getY() + 0.1, pos.getZ() + 0.5, 0, 0.3, 0);
}
}
}
}

View File

@@ -0,0 +1,56 @@
package eu.midnightdust.motschen.rocks.block.blockentity;
import eu.midnightdust.motschen.rocks.RocksMain;
import eu.midnightdust.motschen.rocks.block.OverworldGeyser;
import net.minecraft.block.BlockState;
import net.minecraft.block.entity.BlockEntity;
import net.minecraft.entity.effect.StatusEffectInstance;
import net.minecraft.entity.effect.StatusEffects;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.particle.ParticleTypes;
import net.minecraft.util.Tickable;
import net.minecraft.util.math.BlockPos;
public class OverworldGeyserBlockEntity extends BlockEntity implements Tickable {
private int countdown = 0;
public OverworldGeyserBlockEntity() {
super(BlockEntityInit.OVERWORLD_GEYSER_BE);
}
@Override
public void tick() {
if (world.getBlockState(pos).getBlock() == RocksMain.Geyser) {
PlayerEntity player = this.world.getClosestPlayer(pos.getX() + 0.5, pos.getY() + 0.5, pos.getZ() + 0.5, 3, true);
PlayerEntity player2 = this.world.getClosestPlayer(pos.getX() + 0.5, pos.getY() + 0.5, pos.getZ() + 0.5, 8, true);
PlayerEntity player3 = null;
if (player2 != null && player2.getY() >= pos.getY() && (pos.getX() <= player2.getX() && pos.getX() + 1 >= player2.getX()) && (pos.getZ() <= player2.getZ() && pos.getZ() + 1 >= player2.getZ())) {
player3 = player2;
}
BlockState state = this.getCachedState();
if (player != null) {
world.setBlockState(pos, state.with(OverworldGeyser.ACTIVE, true));
if (player3 != null) {
player3.addStatusEffect(new StatusEffectInstance(StatusEffects.LEVITATION, 2, 12, true, false, false));
}
countdown = 1000;
} else {
if (countdown > 0) {
countdown = countdown - 1;
}
if (countdown == 0) {
world.setBlockState(pos, state.with(OverworldGeyser.ACTIVE, false));
}
}
if (world != null && state.get(OverworldGeyser.ACTIVE) == true) {
world.addParticle(ParticleTypes.SPIT, pos.getX() + 0.5, pos.getY() + 0.1, pos.getZ() + 0.5, 0, 1.0, 0);
world.addParticle(ParticleTypes.SPIT, pos.getX() + 0.5, pos.getY() + 0.3, pos.getZ() + 0.5, 0, 1.0, 0);
world.addParticle(ParticleTypes.SPLASH, pos.getX() + 0.5, pos.getY() + 1.0, pos.getZ() + 0.5, -0.01, 1.5, -0.01);
}
}
}
}

View File

@@ -1,40 +0,0 @@
package eu.midnightdust.motschen.rocks.block.blockentity;
import eu.midnightdust.motschen.rocks.RocksMain;
import eu.midnightdust.motschen.rocks.blockstates.StarfishVariation;
import net.minecraft.block.BlockState;
import net.minecraft.block.entity.BlockEntity;
import net.minecraft.sound.SoundCategory;
import net.minecraft.util.Tickable;
import net.minecraft.util.math.BlockPos;
public class StarfishBlockEntity extends BlockEntity implements Tickable {
private String variation;
public StarfishBlockEntity() {
super(BlockEntityInit.STARFISH_BE);
}
@Override
public void tick() {
BlockPos pos = this.pos;
BlockState state = this.world.getBlockState(pos);
if (world != null && state.get(RocksMain.STARFISH_VARIATION) == StarfishVariation.RED) {
variation = String.valueOf(StarfishVariation.RED);
return;
}
else if (world != null && state.get(RocksMain.STARFISH_VARIATION) == StarfishVariation.PINK) {
variation = String.valueOf(StarfishVariation.PINK);
return;
}
else {
variation = String.valueOf(StarfishVariation.ORANGE);
return;
}
}
public String getVariation() {
return variation;
}
}

View File

@@ -1,122 +0,0 @@
package eu.midnightdust.motschen.rocks.block.render;
import eu.midnightdust.motschen.rocks.block.blockentity.StarfishBlockEntity;
import eu.midnightdust.motschen.rocks.blockstates.StarfishVariation;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.client.model.ModelPart;
import net.minecraft.client.render.RenderLayer;
import net.minecraft.client.render.VertexConsumer;
import net.minecraft.client.render.VertexConsumerProvider;
import net.minecraft.client.render.block.entity.BlockEntityRenderDispatcher;
import net.minecraft.client.render.block.entity.BlockEntityRenderer;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.client.util.math.Vector3f;
import net.minecraft.util.Identifier;
@Environment(EnvType.CLIENT)
public class StarfishBlockEntityRenderer extends BlockEntityRenderer<StarfishBlockEntity> {
private final ModelPart side1;
private final ModelPart side2;
private final ModelPart side3;
private final ModelPart side4;
private final ModelPart side5;
private final ModelPart bb_main;
public StarfishBlockEntityRenderer(BlockEntityRenderDispatcher blockEntityRenderDispatcher) {
super(blockEntityRenderDispatcher);
side1 = new ModelPart(16, 16, 0, 0);
side1.setPivot(0.0F, 24.0F, 0.0F);
side1.setTextureOffset(0, 0).addCuboid(-0.5F, -1.0F, 1.0F, 1.0F, 1.0F, 4.0F, 0.0F, false);
side1.setTextureOffset(1, 1).addCuboid(-0.75F, -1.02F, 1.0F, 1.0F, 1.0F, 3.0F, 0.0F, false);
side1.setTextureOffset(1, 2).addCuboid(-1.0F, -0.99F, 1.0F, 2.0F, 1.0F, 2.0F, 0.0F, false);
side1.setTextureOffset(1, 1).addCuboid(-0.25F, -1.01F, 1.0F, 1.0F, 1.0F, 3.0F, 0.0F, false);
side2 = new ModelPart(16, 16, 0, 0);
side2.setPivot(0.0F, 24.0F, 0.0F);
setRotationAngle(side2, 0.0F, -1.2654F, 0.0F);
side2.setTextureOffset(0, 0).addCuboid(-0.5F, -1.0F, 1.0F, 1.0F, 1.0F, 4.0F, 0.0F, false);
side2.setTextureOffset(1, 1).addCuboid(-0.75F, -1.02F, 1.0F, 1.0F, 1.0F, 3.0F, 0.0F, false);
side2.setTextureOffset(1, 1).addCuboid(-0.25F, -1.01F, 1.0F, 1.0F, 1.0F, 3.0F, 0.0F, false);
side2.setTextureOffset(1, 2).addCuboid(-1.0F, -0.99F, 1.0F, 2.0F, 1.0F, 2.0F, 0.0F, false);
side3 = new ModelPart(16, 16, 0, 0);
side3.setPivot(0.0F, 24.0F, 0.0F);
setRotationAngle(side3, 0.0F, 1.2654F, 0.0F);
side3.setTextureOffset(0, 0).addCuboid(-0.5F, -1.0F, 1.0F, 1.0F, 1.0F, 4.0F, 0.0F, false);
side3.setTextureOffset(1, 1).addCuboid(-0.75F, -1.02F, 1.0F, 1.0F, 1.0F, 3.0F, 0.0F, false);
side3.setTextureOffset(1, 1).addCuboid(-0.25F, -1.01F, 1.0F, 1.0F, 1.0F, 3.0F, 0.0F, false);
side3.setTextureOffset(1, 2).addCuboid(-1.0F, -0.99F, 1.0F, 2.0F, 1.0F, 2.0F, 0.0F, false);
side4 = new ModelPart(16, 16, 0, 0);
side4.setPivot(0.0F, 24.0F, 0.0F);
setRotationAngle(side4, 0.0F, 2.5307F, 0.0F);
side4.setTextureOffset(0, 0).addCuboid(-0.5F, -1.0F, 1.0F, 1.0F, 1.0F, 4.0F, 0.0F, false);
side4.setTextureOffset(1, 1).addCuboid(-0.75F, -1.02F, 1.0F, 1.0F, 1.0F, 3.0F, 0.0F, false);
side4.setTextureOffset(1, 1).addCuboid(-0.25F, -1.01F, 1.0F, 1.0F, 1.0F, 3.0F, 0.0F, false);
side4.setTextureOffset(1, 2).addCuboid(-1.0F, -0.99F, 1.0F, 2.0F, 1.0F, 2.0F, 0.0F, false);
side5 = new ModelPart(16, 16, 0, 0);
side5.setPivot(0.0F, 24.0F, 0.0F);
setRotationAngle(side5, 0.0F, -2.5307F, 0.0F);
side5.setTextureOffset(0, 0).addCuboid(-0.5F, -1.0F, 1.0F, 1.0F, 1.0F, 4.0F, 0.0F, false);
side5.setTextureOffset(1, 1).addCuboid(-0.75F, -1.02F, 1.0F, 1.0F, 1.0F, 3.0F, 0.0F, false);
side5.setTextureOffset(1, 1).addCuboid(-0.25F, -1.01F, 1.0F, 1.0F, 1.0F, 3.0F, 0.0F, false);
side5.setTextureOffset(1, 2).addCuboid(-1.0F, -0.99F, 1.0F, 2.0F, 1.0F, 2.0F, 0.0F, false);
bb_main = new ModelPart(16, 16, 0, 0);
bb_main.setPivot(0.0F, 24.0F, 0.0F);
bb_main.setTextureOffset(1, 2).addCuboid(-1.0F, -1.005F, -1.0F, 2.0F, 1.0F, 2.0F, 0.0F, false);
bb_main.setTextureOffset(1, 2).addCuboid(-0.8F, -1.0F, -1.25F, 2.0F, 1.0F, 2.0F, 0.0F, false);
bb_main.setTextureOffset(2, 2).addCuboid(-1.2F, -1.0F, -1.25F, 1.0F, 1.0F, 2.0F, 0.0F, false);
}
@Override
public void render(StarfishBlockEntity blockEntity, float tickDelta, MatrixStack matrixStack, VertexConsumerProvider vertexConsumers, int light, int overlay) {
if (blockEntity.getVariation() == String.valueOf(StarfishVariation.RED)) {
matrixStack.push();
VertexConsumer vertexConsumer = vertexConsumers.getBuffer(RenderLayer.getEntityCutoutNoCull(new Identifier("rocks:textures/block/starfish_red.png")));
matrixStack.translate(0.4, -1.44, 0.6);
side1.render(matrixStack, vertexConsumer, light, overlay);
side2.render(matrixStack, vertexConsumer, light, overlay);
side3.render(matrixStack, vertexConsumer, light, overlay);
side4.render(matrixStack, vertexConsumer, light, overlay);
side5.render(matrixStack, vertexConsumer, light, overlay);
bb_main.render(matrixStack, vertexConsumer, light, overlay);
matrixStack.pop();
}
else if (blockEntity.getVariation() == String.valueOf(StarfishVariation.PINK)) {
matrixStack.push();
VertexConsumer vertexConsumer = vertexConsumers.getBuffer(RenderLayer.getEntityCutoutNoCull(new Identifier("rocks:textures/block/starfish_pink.png")));
matrixStack.translate(0.4, -1.44, 0.4);
matrixStack.multiply(Vector3f.POSITIVE_Y.getDegreesQuaternion(90));
side1.render(matrixStack, vertexConsumer, light, overlay);
side2.render(matrixStack, vertexConsumer, light, overlay);
side3.render(matrixStack, vertexConsumer, light, overlay);
side4.render(matrixStack, vertexConsumer, light, overlay);
side5.render(matrixStack, vertexConsumer, light, overlay);
bb_main.render(matrixStack, vertexConsumer, light, overlay);
matrixStack.pop();
}
else {
matrixStack.push();
VertexConsumer vertexConsumer = vertexConsumers.getBuffer(RenderLayer.getEntityCutoutNoCull(new Identifier("rocks:textures/block/starfish_orange.png")));
matrixStack.translate(0.65, -1.44, 0.65);
matrixStack.multiply(Vector3f.POSITIVE_Y.getDegreesQuaternion(123));
side1.render(matrixStack, vertexConsumer, light, overlay);
side2.render(matrixStack, vertexConsumer, light, overlay);
side3.render(matrixStack, vertexConsumer, light, overlay);
side4.render(matrixStack, vertexConsumer, light, overlay);
side5.render(matrixStack, vertexConsumer, light, overlay);
bb_main.render(matrixStack, vertexConsumer, light, overlay);
matrixStack.pop();
}
}
public void setRotationAngle(ModelPart bone, float x, float y, float z) {
bone.pitch = x;
bone.yaw = y;
bone.roll = z;
}
}

View File

@@ -0,0 +1,22 @@
package eu.midnightdust.motschen.rocks.mixin;
import com.google.gson.JsonObject;
import net.minecraft.client.render.model.json.ModelElement;
import net.minecraft.util.JsonHelper;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Overwrite;
@Mixin(value = ModelElement.Deserializer.class, priority = 2000)
public class MixinModelElementDeserializer {
/**
* @author Motschen
* @reason Not cancellable
* Unlimited rotation angles for starfish
* Inspired by https://github.com/CottonMC/ModelsUnlocked/blob/master/src/main/java/io/github/cottonmc/modelsunlocked/mixin/ModelElementDeserializerMixin.java
*/
@Overwrite
private float deserializeRotationAngle(JsonObject json) {
return (JsonHelper.getFloat(json, "angle"));
}
}

View File

@@ -2,6 +2,10 @@ package eu.midnightdust.motschen.rocks.world;
import com.google.common.collect.Lists; import com.google.common.collect.Lists;
import eu.midnightdust.motschen.rocks.mixin.GenerationSettingsAccessorMixin; import eu.midnightdust.motschen.rocks.mixin.GenerationSettingsAccessorMixin;
import eu.midnightdust.motschen.rocks.world.configured_feature.MiscFeatures;
import eu.midnightdust.motschen.rocks.world.configured_feature.NetherFeatures;
import eu.midnightdust.motschen.rocks.world.configured_feature.RockFeatures;
import eu.midnightdust.motschen.rocks.world.configured_feature.StickFeatures;
import net.fabricmc.fabric.api.event.registry.RegistryEntryAddedCallback; import net.fabricmc.fabric.api.event.registry.RegistryEntryAddedCallback;
import net.minecraft.util.registry.BuiltinRegistries; import net.minecraft.util.registry.BuiltinRegistries;
import net.minecraft.world.biome.Biome; import net.minecraft.world.biome.Biome;
@@ -22,53 +26,68 @@ public class FeatureInjector {
private static void addRockToBiome(Biome biome) { private static void addRockToBiome(Biome biome) {
// Rocks // Rocks
if (biome.getCategory() != Biome.Category.NETHER && biome.getCategory() != Biome.Category.THEEND && biome.getCategory() != Biome.Category.BEACH && biome.getCategory() != Biome.Category.DESERT && biome.getCategory() != Biome.Category.MESA && biome.getCategory() != Biome.Category.ICY && biome.getCategory() != Biome.Category.OCEAN) { if (biome.getCategory() != Biome.Category.NETHER && biome.getCategory() != Biome.Category.THEEND && biome.getCategory() != Biome.Category.BEACH && biome.getCategory() != Biome.Category.DESERT && biome.getCategory() != Biome.Category.MESA && biome.getCategory() != Biome.Category.ICY && biome.getCategory() != Biome.Category.OCEAN) {
addFeature(biome, GenerationStep.Feature.TOP_LAYER_MODIFICATION, RockFeatures.ROCK_FEATURE); addRockFeature(biome, GenerationStep.Feature.TOP_LAYER_MODIFICATION, RockFeatures.ROCK_FEATURE);
addRockFeature(biome, GenerationStep.Feature.TOP_LAYER_MODIFICATION, RockFeatures.GRANITE_ROCK_FEATURE);
addRockFeature(biome, GenerationStep.Feature.TOP_LAYER_MODIFICATION, RockFeatures.DIORITE_ROCK_FEATURE);
addRockFeature(biome, GenerationStep.Feature.TOP_LAYER_MODIFICATION, RockFeatures.ANDESITE_ROCK_FEATURE);
} }
if ((biome.getCategory() == Biome.Category.BEACH) || (biome.getCategory() == Biome.Category.DESERT)) { if (biome.getCategory() == Biome.Category.BEACH || biome.getCategory() == Biome.Category.DESERT || biome.getCategory() == Biome.Category.MESA || biome.toString().contains("terrestria:lush_desert")) {
addFeature(biome, GenerationStep.Feature.TOP_LAYER_MODIFICATION, RockFeatures.SAND_ROCK_FEATURE); addRockFeature(biome, GenerationStep.Feature.TOP_LAYER_MODIFICATION, RockFeatures.SAND_ROCK_FEATURE);
} }
if (biome.getCategory() == Biome.Category.MESA) { if (biome.getCategory() == Biome.Category.MESA || biome.getCategory() == Biome.Category.DESERT || biome.toString().contains("terrestria:lush_desert")) {
addFeature(biome, GenerationStep.Feature.TOP_LAYER_MODIFICATION, RockFeatures.RED_SAND_ROCK_FEATURE); addRockFeature(biome, GenerationStep.Feature.TOP_LAYER_MODIFICATION, RockFeatures.RED_SAND_ROCK_FEATURE);
} }
if (biome.getCategory() == Biome.Category.THEEND) { if (biome.getCategory() == Biome.Category.THEEND) {
addFeature(biome, GenerationStep.Feature.TOP_LAYER_MODIFICATION, RockFeatures.END_STONE_ROCK_FEATURE); addRockFeature(biome, GenerationStep.Feature.TOP_LAYER_MODIFICATION, RockFeatures.END_STONE_ROCK_FEATURE);
} }
// Sticks // Sticks
if (biome.toString().contains("minecraft:forest") || biome.toString().contains("minecraft:wooded_hills") || if (biome.toString().contains("minecraft:forest") || biome.toString().contains("minecraft:wooded_hills") ||
biome.toString().contains("minecraft:wooded_mountains") || biome.toString().contains("minecraft:plains") || biome.toString().contains("minecraft:wooded_mountains") || biome.toString().contains("minecraft:plains") ||
biome.toString().contains("minecraft:flower_forest") || biome.toString().contains("minecraft:wooded_badlands_plateau") || biome.toString().contains("minecraft:flower_forest") || biome.toString().contains("minecraft:wooded_badlands_plateau") ||
biome.toString().contains("minecraft:modified_wooded_badlands_plateau") || biome.getCategory() == Biome.Category.SWAMP) { biome.toString().contains("minecraft:modified_wooded_badlands_plateau") || biome.getCategory() == Biome.Category.SWAMP) {
addFeature(biome, GenerationStep.Feature.TOP_LAYER_MODIFICATION, StickFeatures.OAK_STICK_FEATURE); addRockFeature(biome, GenerationStep.Feature.TOP_LAYER_MODIFICATION, StickFeatures.OAK_STICK_FEATURE);
} }
if (biome.toString().contains("minecraft:forest") || biome.toString().contains("minecraft:birch_forest") || if (biome.toString().contains("minecraft:forest") || biome.toString().contains("minecraft:birch_forest") ||
biome.toString().contains("minecraft:birch_forest_hills") || biome.toString().contains("minecraft:flower_forest")) { biome.toString().contains("minecraft:birch_forest_hills") || biome.toString().contains("minecraft:flower_forest")) {
addFeature(biome, GenerationStep.Feature.TOP_LAYER_MODIFICATION, StickFeatures.BIRCH_STICK_FEATURE); addRockFeature(biome, GenerationStep.Feature.TOP_LAYER_MODIFICATION, StickFeatures.BIRCH_STICK_FEATURE);
} }
if (biome.toString().contains("minecraft:wooded_mountains") || biome.getCategory() == Biome.Category.TAIGA) { if (biome.toString().contains("minecraft:wooded_mountains") || biome.getCategory() == Biome.Category.TAIGA) {
addFeature(biome, GenerationStep.Feature.TOP_LAYER_MODIFICATION, StickFeatures.SPRUCE_STICK_FEATURE); addRockFeature(biome, GenerationStep.Feature.TOP_LAYER_MODIFICATION, StickFeatures.SPRUCE_STICK_FEATURE);
} }
if (biome.getCategory() == Biome.Category.SAVANNA) { if (biome.getCategory() == Biome.Category.SAVANNA) {
addFeature(biome, GenerationStep.Feature.TOP_LAYER_MODIFICATION, StickFeatures.ACACIA_STICK_FEATURE); addRockFeature(biome, GenerationStep.Feature.TOP_LAYER_MODIFICATION, StickFeatures.ACACIA_STICK_FEATURE);
} }
if (biome.getCategory() == Biome.Category.JUNGLE) { if (biome.getCategory() == Biome.Category.JUNGLE) {
addFeature(biome, GenerationStep.Feature.UNDERGROUND_DECORATION, StickFeatures.JUNGLE_STICK_FEATURE); addRockFeature(biome, GenerationStep.Feature.UNDERGROUND_DECORATION, StickFeatures.JUNGLE_STICK_FEATURE);
} }
if (biome.toString().contains("minecraft:dark_forest") || biome.toString().contains("minecraft:dark_forest_hills") || if (biome.toString().contains("minecraft:dark_forest") || biome.toString().contains("minecraft:dark_forest_hills") ||
biome.toString().contains("minecraft:dark_forest_mountains")) { biome.toString().contains("minecraft:dark_forest_mountains")) {
addFeature(biome, GenerationStep.Feature.TOP_LAYER_MODIFICATION, StickFeatures.DARK_OAK_STICK_FEATURE); addRockFeature(biome, GenerationStep.Feature.TOP_LAYER_MODIFICATION, StickFeatures.DARK_OAK_STICK_FEATURE);
} }
// Misc // Misc
if (biome.getCategory() == Biome.Category.BEACH && !biome.toString().contains("minecraft:snowy_beach")) { if (biome.getCategory() == Biome.Category.BEACH && !biome.toString().contains("minecraft:snowy_beach")) {
addFeature(biome, GenerationStep.Feature.TOP_LAYER_MODIFICATION, MiscFeatures.SEASHELL_FEATURE); addRockFeature(biome, GenerationStep.Feature.TOP_LAYER_MODIFICATION, MiscFeatures.SEASHELL_FEATURE);
addFeature(biome, GenerationStep.Feature.TOP_LAYER_MODIFICATION, MiscFeatures.STARFISH_FEATURE); addRockFeature(biome, GenerationStep.Feature.TOP_LAYER_MODIFICATION, MiscFeatures.STARFISH_FEATURE);
} }
if (biome.getCategory() == Biome.Category.OCEAN) { if (biome.getCategory() == Biome.Category.OCEAN) {
addFeature(biome, GenerationStep.Feature.TOP_LAYER_MODIFICATION, MiscFeatures.UNDERWATER_STARFISH_FEATURE); addRockFeature(biome, GenerationStep.Feature.TOP_LAYER_MODIFICATION, MiscFeatures.UNDERWATER_STARFISH_FEATURE);
addFeature(biome, GenerationStep.Feature.TOP_LAYER_MODIFICATION, MiscFeatures.UNDERWATER_SEASHELL_FEATURE); addRockFeature(biome, GenerationStep.Feature.TOP_LAYER_MODIFICATION, MiscFeatures.UNDERWATER_SEASHELL_FEATURE);
}
if (biome.getCategory() == Biome.Category.NETHER) {
addRockFeature(biome, GenerationStep.Feature.TOP_LAYER_MODIFICATION, NetherFeatures.NETHERRACK_ROCK_FEATURE);
addRockFeature(biome, GenerationStep.Feature.TOP_LAYER_MODIFICATION, NetherFeatures.SOUL_SOIL_ROCK_FEATURE);
addRockFeature(biome, GenerationStep.Feature.TOP_LAYER_MODIFICATION, NetherFeatures.NETHER_GRAVEL_ROCK_FEATURE);
addRockFeature(biome, GenerationStep.Feature.TOP_LAYER_MODIFICATION, NetherFeatures.NETHER_GEYSER_FEATURE);
}
if (biome.getCategory() != Biome.Category.NETHER) {
addRockFeature(biome, GenerationStep.Feature.TOP_LAYER_MODIFICATION, RockFeatures.GRAVEL_ROCK_FEATURE);
}
if (biome.getCategory() == Biome.Category.ICY) {
addRockFeature(biome, GenerationStep.Feature.TOP_LAYER_MODIFICATION, MiscFeatures.SNOWY_GEYSER_FEATURE);
} }
} }
public static void addFeature(Biome biome, GenerationStep.Feature step, ConfiguredFeature<?, ?> feature) { public static void addRockFeature(Biome biome, GenerationStep.Feature step, ConfiguredFeature<?, ?> feature) {
GenerationSettingsAccessorMixin generationSettingsAccessor = (GenerationSettingsAccessorMixin) biome.getGenerationSettings(); GenerationSettingsAccessorMixin generationSettingsAccessor = (GenerationSettingsAccessorMixin) biome.getGenerationSettings();
int stepIndex = step.ordinal(); int stepIndex = step.ordinal();
List<List<Supplier<ConfiguredFeature<?, ?>>>> featuresByStep = new ArrayList<>( generationSettingsAccessor.getFeatures()); List<List<Supplier<ConfiguredFeature<?, ?>>>> featuresByStep = new ArrayList<>( generationSettingsAccessor.getFeatures());

View File

@@ -3,6 +3,8 @@ package eu.midnightdust.motschen.rocks.world;
import eu.midnightdust.motschen.rocks.RocksMain; import eu.midnightdust.motschen.rocks.RocksMain;
import eu.midnightdust.motschen.rocks.blockstates.SeashellVariation; import eu.midnightdust.motschen.rocks.blockstates.SeashellVariation;
import eu.midnightdust.motschen.rocks.blockstates.StarfishVariation; import eu.midnightdust.motschen.rocks.blockstates.StarfishVariation;
import eu.midnightdust.motschen.rocks.world.feature.SnowFeature;
import eu.midnightdust.motschen.rocks.world.feature.UnderwaterFeature;
import net.minecraft.state.property.Properties; import net.minecraft.state.property.Properties;
import net.minecraft.util.registry.Registry; import net.minecraft.util.registry.Registry;
import net.minecraft.world.gen.ProbabilityConfig; import net.minecraft.world.gen.ProbabilityConfig;
@@ -14,6 +16,7 @@ public class FeatureRegistry<FC extends FeatureConfig> {
public static final UnderwaterFeature UNDERWATER_STARFISH_FEATURE; public static final UnderwaterFeature UNDERWATER_STARFISH_FEATURE;
public static final UnderwaterFeature UNDERWATER_SEASHELL_FEATURE; public static final UnderwaterFeature UNDERWATER_SEASHELL_FEATURE;
public static final SnowFeature SNOWY_GEYSER_FEATURE;
private static <C extends FeatureConfig, F extends Feature<C>> F register(String name, F feature) { private static <C extends FeatureConfig, F extends Feature<C>> F register(String name, F feature) {
return Registry.register(Registry.FEATURE, name, feature); return Registry.register(Registry.FEATURE, name, feature);
@@ -29,8 +32,12 @@ public class FeatureRegistry<FC extends FeatureConfig> {
.addState(RocksMain.Seashell.getDefaultState().with(RocksMain.SEASHELL_VARIATION,SeashellVariation.PINK).with(Properties.WATERLOGGED, true), 2) .addState(RocksMain.Seashell.getDefaultState().with(RocksMain.SEASHELL_VARIATION,SeashellVariation.PINK).with(Properties.WATERLOGGED, true), 2)
.addState(RocksMain.Seashell.getDefaultState().with(RocksMain.SEASHELL_VARIATION,SeashellVariation.WHITE).with(Properties.WATERLOGGED, true), 6); .addState(RocksMain.Seashell.getDefaultState().with(RocksMain.SEASHELL_VARIATION,SeashellVariation.WHITE).with(Properties.WATERLOGGED, true), 6);
private static final WeightedBlockStateProvider GeyserStates = new WeightedBlockStateProvider()
.addState(RocksMain.Geyser.getDefaultState().with(Properties.SNOWY, true), 1);
static { static {
UNDERWATER_STARFISH_FEATURE = (UnderwaterFeature)register("underwater_starfish", new UnderwaterFeature(ProbabilityConfig.CODEC, StarfishStates)); UNDERWATER_STARFISH_FEATURE = register("underwater_starfish", new UnderwaterFeature(ProbabilityConfig.CODEC, StarfishStates));
UNDERWATER_SEASHELL_FEATURE = (UnderwaterFeature)register("underwater_seashell", new UnderwaterFeature(ProbabilityConfig.CODEC, SeashellStates)); UNDERWATER_SEASHELL_FEATURE = register("underwater_seashell", new UnderwaterFeature(ProbabilityConfig.CODEC, SeashellStates));
SNOWY_GEYSER_FEATURE = register("snowy_geyser", new SnowFeature(ProbabilityConfig.CODEC, GeyserStates));
} }
} }

View File

@@ -1,62 +0,0 @@
package eu.midnightdust.motschen.rocks.world;
import eu.midnightdust.motschen.rocks.RocksMain;
import eu.midnightdust.motschen.rocks.blockstates.RockVariation;
import net.minecraft.util.Identifier;
import net.minecraft.util.registry.BuiltinRegistries;
import net.minecraft.util.registry.Registry;
import net.minecraft.world.gen.feature.*;
import net.minecraft.world.gen.placer.SimpleBlockPlacer;
import net.minecraft.world.gen.stateprovider.WeightedBlockStateProvider;
public class RockFeatures {
public static ConfiguredFeature<?, ?> ROCK_FEATURE = Feature.RANDOM_PATCH.configure(
(new RandomPatchFeatureConfig.Builder(
new WeightedBlockStateProvider()
.addState(RocksMain.Rock.getDefaultState().with(RocksMain.ROCK_VARIATION,RockVariation.TINY), 10)
.addState(RocksMain.Rock.getDefaultState().with(RocksMain.ROCK_VARIATION,RockVariation.SMALL), 7)
.addState(RocksMain.Rock.getDefaultState().with(RocksMain.ROCK_VARIATION,RockVariation.MEDIUM), 5)
.addState(RocksMain.Rock.getDefaultState().with(RocksMain.ROCK_VARIATION,RockVariation.LARGE), 1),
SimpleBlockPlacer.INSTANCE))
.tries(1).spreadX(0).spreadY(0).spreadZ(0)
.build()).decorate(ConfiguredFeatures.Decorators.FIRE).applyChance(1);
public static ConfiguredFeature<?, ?> SAND_ROCK_FEATURE = Feature.RANDOM_PATCH.configure(
(new RandomPatchFeatureConfig.Builder(
new WeightedBlockStateProvider()
.addState(RocksMain.SandRock.getDefaultState().with(RocksMain.ROCK_VARIATION,RockVariation.TINY), 10)
.addState(RocksMain.SandRock.getDefaultState().with(RocksMain.ROCK_VARIATION,RockVariation.SMALL), 7)
.addState(RocksMain.SandRock.getDefaultState().with(RocksMain.ROCK_VARIATION,RockVariation.MEDIUM), 5)
.addState(RocksMain.SandRock.getDefaultState().with(RocksMain.ROCK_VARIATION,RockVariation.LARGE), 1),
SimpleBlockPlacer.INSTANCE))
.tries(1).spreadX(0).spreadY(0).spreadZ(0)
.build()).decorate(ConfiguredFeatures.Decorators.FIRE).applyChance(1);
public static ConfiguredFeature<?, ?> RED_SAND_ROCK_FEATURE = Feature.RANDOM_PATCH.configure(
(new RandomPatchFeatureConfig.Builder(
new WeightedBlockStateProvider()
.addState(RocksMain.RedSandRock.getDefaultState().with(RocksMain.ROCK_VARIATION,RockVariation.TINY), 10)
.addState(RocksMain.RedSandRock.getDefaultState().with(RocksMain.ROCK_VARIATION,RockVariation.SMALL), 7)
.addState(RocksMain.RedSandRock.getDefaultState().with(RocksMain.ROCK_VARIATION,RockVariation.MEDIUM), 5)
.addState(RocksMain.RedSandRock.getDefaultState().with(RocksMain.ROCK_VARIATION,RockVariation.LARGE), 1),
SimpleBlockPlacer.INSTANCE))
.tries(1).spreadX(0).spreadY(0).spreadZ(0)
.build()).decorate(ConfiguredFeatures.Decorators.FIRE).applyChance(1);
public static ConfiguredFeature<?, ?> END_STONE_ROCK_FEATURE = Feature.RANDOM_PATCH.configure(
(new RandomPatchFeatureConfig.Builder(
new WeightedBlockStateProvider()
.addState(RocksMain.EndstoneRock.getDefaultState().with(RocksMain.ROCK_VARIATION,RockVariation.TINY), 10)
.addState(RocksMain.EndstoneRock.getDefaultState().with(RocksMain.ROCK_VARIATION,RockVariation.SMALL), 7)
.addState(RocksMain.EndstoneRock.getDefaultState().with(RocksMain.ROCK_VARIATION,RockVariation.MEDIUM), 5)
.addState(RocksMain.EndstoneRock.getDefaultState().with(RocksMain.ROCK_VARIATION,RockVariation.LARGE), 1),
SimpleBlockPlacer.INSTANCE))
.tries(1).spreadX(0).spreadY(0).spreadZ(0)
.build()).decorate(ConfiguredFeatures.Decorators.FIRE).applyChance(1);
public static void init() {
Registry<ConfiguredFeature<?, ?>> registry = BuiltinRegistries.CONFIGURED_FEATURE;
Registry.register(registry, new Identifier(RocksMain.MOD_ID, "rock"), ROCK_FEATURE);
Registry.register(registry, new Identifier(RocksMain.MOD_ID, "sand_rock"), SAND_ROCK_FEATURE);
Registry.register(registry, new Identifier(RocksMain.MOD_ID, "red_sand_rock"), RED_SAND_ROCK_FEATURE);
Registry.register(registry, new Identifier(RocksMain.MOD_ID, "endstone_rock"), END_STONE_ROCK_FEATURE);
}
}

View File

@@ -1,16 +1,17 @@
package eu.midnightdust.motschen.rocks.world; package eu.midnightdust.motschen.rocks.world.configured_feature;
import com.google.common.collect.ImmutableSet;
import eu.midnightdust.motschen.rocks.RocksMain; import eu.midnightdust.motschen.rocks.RocksMain;
import eu.midnightdust.motschen.rocks.blockstates.SeashellVariation; import eu.midnightdust.motschen.rocks.blockstates.SeashellVariation;
import eu.midnightdust.motschen.rocks.blockstates.StarfishVariation; import eu.midnightdust.motschen.rocks.blockstates.StarfishVariation;
import eu.midnightdust.motschen.rocks.blockstates.StickVariation; import eu.midnightdust.motschen.rocks.world.FeatureRegistry;
import net.minecraft.block.Blocks;
import net.minecraft.util.Identifier; import net.minecraft.util.Identifier;
import net.minecraft.util.registry.BuiltinRegistries; import net.minecraft.util.registry.BuiltinRegistries;
import net.minecraft.util.registry.Registry; import net.minecraft.util.registry.Registry;
import net.minecraft.world.gen.ProbabilityConfig; import net.minecraft.world.gen.ProbabilityConfig;
import net.minecraft.world.gen.feature.*; import net.minecraft.world.gen.feature.*;
import net.minecraft.world.gen.placer.SimpleBlockPlacer; import net.minecraft.world.gen.placer.SimpleBlockPlacer;
import net.minecraft.world.gen.stateprovider.SimpleBlockStateProvider;
import net.minecraft.world.gen.stateprovider.WeightedBlockStateProvider; import net.minecraft.world.gen.stateprovider.WeightedBlockStateProvider;
public class MiscFeatures { public class MiscFeatures {
@@ -21,8 +22,8 @@ public class MiscFeatures {
.addState(RocksMain.Seashell.getDefaultState().with(RocksMain.SEASHELL_VARIATION,SeashellVariation.PINK), 2) .addState(RocksMain.Seashell.getDefaultState().with(RocksMain.SEASHELL_VARIATION,SeashellVariation.PINK), 2)
.addState(RocksMain.Seashell.getDefaultState().with(RocksMain.SEASHELL_VARIATION,SeashellVariation.WHITE), 6), .addState(RocksMain.Seashell.getDefaultState().with(RocksMain.SEASHELL_VARIATION,SeashellVariation.WHITE), 6),
SimpleBlockPlacer.INSTANCE)) SimpleBlockPlacer.INSTANCE))
.tries(1).spreadX(0).spreadY(0).spreadZ(0) .tries(1).spreadX(0).spreadY(0).spreadZ(0).whitelist(ImmutableSet.of(Blocks.SAND, Blocks.SANDSTONE, Blocks.RED_SAND, Blocks.RED_SANDSTONE))
.build()).decorate(ConfiguredFeatures.Decorators.FIRE).applyChance(1); .build()).decorate(ConfiguredFeatures.Decorators.FIRE);
public static ConfiguredFeature<?, ?> STARFISH_FEATURE = Feature.RANDOM_PATCH.configure( public static ConfiguredFeature<?, ?> STARFISH_FEATURE = Feature.RANDOM_PATCH.configure(
(new RandomPatchFeatureConfig.Builder( (new RandomPatchFeatureConfig.Builder(
new WeightedBlockStateProvider() new WeightedBlockStateProvider()
@@ -30,11 +31,12 @@ public class MiscFeatures {
.addState(RocksMain.Starfish.getDefaultState().with(RocksMain.STARFISH_VARIATION,StarfishVariation.PINK), 6) .addState(RocksMain.Starfish.getDefaultState().with(RocksMain.STARFISH_VARIATION,StarfishVariation.PINK), 6)
.addState(RocksMain.Starfish.getDefaultState().with(RocksMain.STARFISH_VARIATION,StarfishVariation.ORANGE), 7), .addState(RocksMain.Starfish.getDefaultState().with(RocksMain.STARFISH_VARIATION,StarfishVariation.ORANGE), 7),
SimpleBlockPlacer.INSTANCE)) SimpleBlockPlacer.INSTANCE))
.tries(1).spreadX(0).spreadY(0).spreadZ(0) .tries(1).spreadX(0).spreadY(0).spreadZ(0).whitelist(ImmutableSet.of(Blocks.SAND, Blocks.SANDSTONE, Blocks.RED_SAND, Blocks.RED_SANDSTONE))
.build()).decorate(ConfiguredFeatures.Decorators.FIRE).applyChance(1); .build()).decorate(ConfiguredFeatures.Decorators.FIRE);
public static ConfiguredFeature<?, ?> UNDERWATER_STARFISH_FEATURE = FeatureRegistry.UNDERWATER_STARFISH_FEATURE.configure(new ProbabilityConfig(1)); public static ConfiguredFeature<?, ?> UNDERWATER_STARFISH_FEATURE = FeatureRegistry.UNDERWATER_STARFISH_FEATURE.configure(new ProbabilityConfig(1));
public static ConfiguredFeature<?, ?> UNDERWATER_SEASHELL_FEATURE = FeatureRegistry.UNDERWATER_SEASHELL_FEATURE.configure(new ProbabilityConfig(1)); public static ConfiguredFeature<?, ?> UNDERWATER_SEASHELL_FEATURE = FeatureRegistry.UNDERWATER_SEASHELL_FEATURE.configure(new ProbabilityConfig(1));
public static ConfiguredFeature<?, ?> SNOWY_GEYSER_FEATURE = FeatureRegistry.SNOWY_GEYSER_FEATURE.configure(new ProbabilityConfig(1)).decorate(ConfiguredFeatures.Decorators.FIRE);
public static void init() { public static void init() {
Registry<ConfiguredFeature<?, ?>> registry = BuiltinRegistries.CONFIGURED_FEATURE; Registry<ConfiguredFeature<?, ?>> registry = BuiltinRegistries.CONFIGURED_FEATURE;
@@ -42,6 +44,7 @@ public class MiscFeatures {
Registry.register(registry, new Identifier(RocksMain.MOD_ID, "starfish"), STARFISH_FEATURE); Registry.register(registry, new Identifier(RocksMain.MOD_ID, "starfish"), STARFISH_FEATURE);
Registry.register(registry, new Identifier(RocksMain.MOD_ID, "underwater_starfish"), UNDERWATER_STARFISH_FEATURE); Registry.register(registry, new Identifier(RocksMain.MOD_ID, "underwater_starfish"), UNDERWATER_STARFISH_FEATURE);
Registry.register(registry, new Identifier(RocksMain.MOD_ID, "underwater_seashell"), UNDERWATER_SEASHELL_FEATURE); Registry.register(registry, new Identifier(RocksMain.MOD_ID, "underwater_seashell"), UNDERWATER_SEASHELL_FEATURE);
Registry.register(registry, new Identifier(RocksMain.MOD_ID, "snowy_geyser"), SNOWY_GEYSER_FEATURE);
} }
} }

View File

@@ -0,0 +1,66 @@
package eu.midnightdust.motschen.rocks.world.configured_feature;
import com.google.common.collect.ImmutableSet;
import eu.midnightdust.motschen.rocks.RocksMain;
import eu.midnightdust.motschen.rocks.blockstates.RockVariation;
import net.minecraft.block.Blocks;
import net.minecraft.util.Identifier;
import net.minecraft.util.registry.BuiltinRegistries;
import net.minecraft.util.registry.Registry;
import net.minecraft.world.gen.feature.ConfiguredFeature;
import net.minecraft.world.gen.feature.ConfiguredFeatures;
import net.minecraft.world.gen.feature.Feature;
import net.minecraft.world.gen.feature.RandomPatchFeatureConfig;
import net.minecraft.world.gen.placer.SimpleBlockPlacer;
import net.minecraft.world.gen.stateprovider.WeightedBlockStateProvider;
public class NetherFeatures {
public static ConfiguredFeature<?, ?> NETHERRACK_ROCK_FEATURE = Feature.RANDOM_PATCH.configure(
(new RandomPatchFeatureConfig.Builder(
new WeightedBlockStateProvider()
.addState(RocksMain.NetherrackRock.getDefaultState().with(RocksMain.ROCK_VARIATION, RockVariation.TINY), 10)
.addState(RocksMain.NetherrackRock.getDefaultState().with(RocksMain.ROCK_VARIATION,RockVariation.SMALL), 7)
.addState(RocksMain.NetherrackRock.getDefaultState().with(RocksMain.ROCK_VARIATION,RockVariation.MEDIUM), 5)
.addState(RocksMain.NetherrackRock.getDefaultState().with(RocksMain.ROCK_VARIATION,RockVariation.LARGE), 1),
SimpleBlockPlacer.INSTANCE))
.tries(1).spreadX(0).spreadY(0).spreadZ(0)
.whitelist(ImmutableSet.of(Blocks.NETHERRACK,Blocks.WARPED_NYLIUM,Blocks.CRIMSON_NYLIUM)).cannotProject().build()).decorate(ConfiguredFeatures.Decorators.FIRE).repeat(128);
public static ConfiguredFeature<?, ?> SOUL_SOIL_ROCK_FEATURE = Feature.RANDOM_PATCH.configure(
(new RandomPatchFeatureConfig.Builder(
new WeightedBlockStateProvider()
.addState(RocksMain.SoulSoilRock.getDefaultState().with(RocksMain.ROCK_VARIATION, RockVariation.TINY), 10)
.addState(RocksMain.SoulSoilRock.getDefaultState().with(RocksMain.ROCK_VARIATION,RockVariation.SMALL), 7)
.addState(RocksMain.SoulSoilRock.getDefaultState().with(RocksMain.ROCK_VARIATION,RockVariation.MEDIUM), 5)
.addState(RocksMain.SoulSoilRock.getDefaultState().with(RocksMain.ROCK_VARIATION,RockVariation.LARGE), 1),
SimpleBlockPlacer.INSTANCE))
.tries(1).spreadX(0).spreadY(0).spreadZ(0)
.whitelist(ImmutableSet.of(Blocks.SOUL_SOIL,Blocks.SOUL_SAND)).cannotProject().build()).decorate(ConfiguredFeatures.Decorators.FIRE).repeat(128);
public static ConfiguredFeature<?, ?> NETHER_GRAVEL_ROCK_FEATURE = Feature.RANDOM_PATCH.configure(
(new RandomPatchFeatureConfig.Builder(
new WeightedBlockStateProvider()
.addState(RocksMain.GravelRock.getDefaultState().with(RocksMain.ROCK_VARIATION, RockVariation.TINY), 10)
.addState(RocksMain.GravelRock.getDefaultState().with(RocksMain.ROCK_VARIATION,RockVariation.SMALL), 7)
.addState(RocksMain.GravelRock.getDefaultState().with(RocksMain.ROCK_VARIATION,RockVariation.MEDIUM), 5)
.addState(RocksMain.GravelRock.getDefaultState().with(RocksMain.ROCK_VARIATION,RockVariation.LARGE), 1),
SimpleBlockPlacer.INSTANCE))
.tries(1).spreadX(0).spreadY(0).spreadZ(0)
.whitelist(ImmutableSet.of(Blocks.GRAVEL)).cannotProject().build()).decorate(ConfiguredFeatures.Decorators.FIRE).repeat(128);
public static ConfiguredFeature<?, ?> NETHER_GEYSER_FEATURE = Feature.RANDOM_PATCH.configure(
(new RandomPatchFeatureConfig.Builder(
new WeightedBlockStateProvider()
.addState(RocksMain.NetherGeyser.getDefaultState(),1),
SimpleBlockPlacer.INSTANCE))
.tries(1).spreadX(0).spreadY(0).spreadZ(0)
.whitelist(ImmutableSet.of(Blocks.NETHERRACK)).cannotProject().build()).decorate(ConfiguredFeatures.Decorators.FIRE).repeat(16);
public static void init() {
Registry<ConfiguredFeature<?, ?>> registry = BuiltinRegistries.CONFIGURED_FEATURE;
Registry.register(registry, new Identifier(RocksMain.MOD_ID, "netherrack_rock"), NETHERRACK_ROCK_FEATURE);
Registry.register(registry, new Identifier(RocksMain.MOD_ID, "soul_soil_rock"), SOUL_SOIL_ROCK_FEATURE);
Registry.register(registry, new Identifier(RocksMain.MOD_ID, "nether_gravel_rock"), NETHER_GRAVEL_ROCK_FEATURE);
Registry.register(registry, new Identifier(RocksMain.MOD_ID, "nether_geyser"), NETHER_GEYSER_FEATURE);
}
}

View File

@@ -0,0 +1,108 @@
package eu.midnightdust.motschen.rocks.world.configured_feature;
import com.google.common.collect.ImmutableSet;
import eu.midnightdust.motschen.rocks.RocksMain;
import eu.midnightdust.motschen.rocks.blockstates.RockVariation;
import net.minecraft.block.Blocks;
import net.minecraft.util.Identifier;
import net.minecraft.util.registry.BuiltinRegistries;
import net.minecraft.util.registry.Registry;
import net.minecraft.world.gen.feature.*;
import net.minecraft.world.gen.placer.SimpleBlockPlacer;
import net.minecraft.world.gen.stateprovider.WeightedBlockStateProvider;
public class RockFeatures {
public static ConfiguredFeature<?, ?> ROCK_FEATURE = Feature.RANDOM_PATCH.configure(
(new RandomPatchFeatureConfig.Builder(
new WeightedBlockStateProvider()
.addState(RocksMain.Rock.getDefaultState().with(RocksMain.ROCK_VARIATION,RockVariation.TINY), 10)
.addState(RocksMain.Rock.getDefaultState().with(RocksMain.ROCK_VARIATION,RockVariation.SMALL), 7)
.addState(RocksMain.Rock.getDefaultState().with(RocksMain.ROCK_VARIATION,RockVariation.MEDIUM), 5)
.addState(RocksMain.Rock.getDefaultState().with(RocksMain.ROCK_VARIATION,RockVariation.LARGE), 1),
SimpleBlockPlacer.INSTANCE))
.tries(1).spreadX(0).spreadY(0).spreadZ(0).blacklist(ImmutableSet.of(Blocks.ICE.getDefaultState(),Blocks.SAND.getDefaultState(),Blocks.RED_SAND.getDefaultState()))
.build()).decorate(ConfiguredFeatures.Decorators.FIRE);
public static ConfiguredFeature<?, ?> GRANITE_ROCK_FEATURE = Feature.RANDOM_PATCH.configure(
(new RandomPatchFeatureConfig.Builder(
new WeightedBlockStateProvider()
.addState(RocksMain.GraniteRock.getDefaultState().with(RocksMain.ROCK_VARIATION,RockVariation.TINY), 10)
.addState(RocksMain.GraniteRock.getDefaultState().with(RocksMain.ROCK_VARIATION,RockVariation.SMALL), 7)
.addState(RocksMain.GraniteRock.getDefaultState().with(RocksMain.ROCK_VARIATION,RockVariation.MEDIUM), 5)
.addState(RocksMain.GraniteRock.getDefaultState().with(RocksMain.ROCK_VARIATION,RockVariation.LARGE), 1),
SimpleBlockPlacer.INSTANCE))
.tries(1).spreadX(0).spreadY(0).spreadZ(0).whitelist(ImmutableSet.of(Blocks.GRANITE))
.build()).decorate(ConfiguredFeatures.Decorators.FIRE);
public static ConfiguredFeature<?, ?> DIORITE_ROCK_FEATURE = Feature.RANDOM_PATCH.configure(
(new RandomPatchFeatureConfig.Builder(
new WeightedBlockStateProvider()
.addState(RocksMain.DioriteRock.getDefaultState().with(RocksMain.ROCK_VARIATION,RockVariation.TINY), 10)
.addState(RocksMain.DioriteRock.getDefaultState().with(RocksMain.ROCK_VARIATION,RockVariation.SMALL), 7)
.addState(RocksMain.DioriteRock.getDefaultState().with(RocksMain.ROCK_VARIATION,RockVariation.MEDIUM), 5)
.addState(RocksMain.DioriteRock.getDefaultState().with(RocksMain.ROCK_VARIATION,RockVariation.LARGE), 1),
SimpleBlockPlacer.INSTANCE))
.tries(1).spreadX(0).spreadY(0).spreadZ(0).whitelist(ImmutableSet.of(Blocks.DIORITE))
.build()).decorate(ConfiguredFeatures.Decorators.FIRE);
public static ConfiguredFeature<?, ?> ANDESITE_ROCK_FEATURE = Feature.RANDOM_PATCH.configure(
(new RandomPatchFeatureConfig.Builder(
new WeightedBlockStateProvider()
.addState(RocksMain.AndesiteRock.getDefaultState().with(RocksMain.ROCK_VARIATION,RockVariation.TINY), 10)
.addState(RocksMain.AndesiteRock.getDefaultState().with(RocksMain.ROCK_VARIATION,RockVariation.SMALL), 7)
.addState(RocksMain.AndesiteRock.getDefaultState().with(RocksMain.ROCK_VARIATION,RockVariation.MEDIUM), 5)
.addState(RocksMain.AndesiteRock.getDefaultState().with(RocksMain.ROCK_VARIATION,RockVariation.LARGE), 1),
SimpleBlockPlacer.INSTANCE))
.tries(1).spreadX(0).spreadY(0).spreadZ(0).whitelist(ImmutableSet.of(Blocks.ANDESITE))
.build()).decorate(ConfiguredFeatures.Decorators.FIRE);
public static ConfiguredFeature<?, ?> SAND_ROCK_FEATURE = Feature.RANDOM_PATCH.configure(
(new RandomPatchFeatureConfig.Builder(
new WeightedBlockStateProvider()
.addState(RocksMain.SandRock.getDefaultState().with(RocksMain.ROCK_VARIATION,RockVariation.TINY), 10)
.addState(RocksMain.SandRock.getDefaultState().with(RocksMain.ROCK_VARIATION,RockVariation.SMALL), 7)
.addState(RocksMain.SandRock.getDefaultState().with(RocksMain.ROCK_VARIATION,RockVariation.MEDIUM), 5)
.addState(RocksMain.SandRock.getDefaultState().with(RocksMain.ROCK_VARIATION,RockVariation.LARGE), 1),
SimpleBlockPlacer.INSTANCE))
.tries(1).spreadX(0).spreadY(0).spreadZ(0).whitelist(ImmutableSet.of(Blocks.SAND, Blocks.SANDSTONE))
.build()).decorate(ConfiguredFeatures.Decorators.FIRE);
public static ConfiguredFeature<?, ?> RED_SAND_ROCK_FEATURE = Feature.RANDOM_PATCH.configure(
(new RandomPatchFeatureConfig.Builder(
new WeightedBlockStateProvider()
.addState(RocksMain.RedSandRock.getDefaultState().with(RocksMain.ROCK_VARIATION,RockVariation.TINY), 10)
.addState(RocksMain.RedSandRock.getDefaultState().with(RocksMain.ROCK_VARIATION,RockVariation.SMALL), 7)
.addState(RocksMain.RedSandRock.getDefaultState().with(RocksMain.ROCK_VARIATION,RockVariation.MEDIUM), 5)
.addState(RocksMain.RedSandRock.getDefaultState().with(RocksMain.ROCK_VARIATION,RockVariation.LARGE), 1),
SimpleBlockPlacer.INSTANCE))
.tries(1).spreadX(0).spreadY(0).spreadZ(0).whitelist(ImmutableSet.of(Blocks.RED_SAND, Blocks.RED_SANDSTONE))
.build()).decorate(ConfiguredFeatures.Decorators.FIRE);
public static ConfiguredFeature<?, ?> END_STONE_ROCK_FEATURE = Feature.RANDOM_PATCH.configure(
(new RandomPatchFeatureConfig.Builder(
new WeightedBlockStateProvider()
.addState(RocksMain.EndstoneRock.getDefaultState().with(RocksMain.ROCK_VARIATION,RockVariation.TINY), 10)
.addState(RocksMain.EndstoneRock.getDefaultState().with(RocksMain.ROCK_VARIATION,RockVariation.SMALL), 7)
.addState(RocksMain.EndstoneRock.getDefaultState().with(RocksMain.ROCK_VARIATION,RockVariation.MEDIUM), 5)
.addState(RocksMain.EndstoneRock.getDefaultState().with(RocksMain.ROCK_VARIATION,RockVariation.LARGE), 1),
SimpleBlockPlacer.INSTANCE))
.tries(1).spreadX(0).spreadY(0).spreadZ(0)
.build()).decorate(ConfiguredFeatures.Decorators.FIRE);
public static ConfiguredFeature<?, ?> GRAVEL_ROCK_FEATURE = Feature.RANDOM_PATCH.configure(
(new RandomPatchFeatureConfig.Builder(
new WeightedBlockStateProvider()
.addState(RocksMain.GravelRock.getDefaultState().with(RocksMain.ROCK_VARIATION,RockVariation.TINY), 10)
.addState(RocksMain.GravelRock.getDefaultState().with(RocksMain.ROCK_VARIATION,RockVariation.SMALL), 7)
.addState(RocksMain.GravelRock.getDefaultState().with(RocksMain.ROCK_VARIATION,RockVariation.MEDIUM), 5)
.addState(RocksMain.GravelRock.getDefaultState().with(RocksMain.ROCK_VARIATION,RockVariation.LARGE), 1),
SimpleBlockPlacer.INSTANCE))
.tries(1).spreadX(0).spreadY(0).spreadZ(0).whitelist(ImmutableSet.of(Blocks.GRAVEL))
.build()).decorate(ConfiguredFeatures.Decorators.FIRE);
public static void init() {
Registry<ConfiguredFeature<?, ?>> registry = BuiltinRegistries.CONFIGURED_FEATURE;
Registry.register(registry, new Identifier(RocksMain.MOD_ID, "rock"), ROCK_FEATURE);
Registry.register(registry, new Identifier(RocksMain.MOD_ID, "granite_rock"), GRANITE_ROCK_FEATURE);
Registry.register(registry, new Identifier(RocksMain.MOD_ID, "diorite_rock"), DIORITE_ROCK_FEATURE);
Registry.register(registry, new Identifier(RocksMain.MOD_ID, "andesite_rock"), ANDESITE_ROCK_FEATURE);
Registry.register(registry, new Identifier(RocksMain.MOD_ID, "sand_rock"), SAND_ROCK_FEATURE);
Registry.register(registry, new Identifier(RocksMain.MOD_ID, "red_sand_rock"), RED_SAND_ROCK_FEATURE);
Registry.register(registry, new Identifier(RocksMain.MOD_ID, "endstone_rock"), END_STONE_ROCK_FEATURE);
Registry.register(registry, new Identifier(RocksMain.MOD_ID, "gravel_rock"), GRAVEL_ROCK_FEATURE);
}
}

View File

@@ -1,8 +1,9 @@
package eu.midnightdust.motschen.rocks.world; package eu.midnightdust.motschen.rocks.world.configured_feature;
import com.google.common.collect.ImmutableSet;
import eu.midnightdust.motschen.rocks.RocksMain; import eu.midnightdust.motschen.rocks.RocksMain;
import eu.midnightdust.motschen.rocks.blockstates.RockVariation;
import eu.midnightdust.motschen.rocks.blockstates.StickVariation; import eu.midnightdust.motschen.rocks.blockstates.StickVariation;
import net.minecraft.block.Blocks;
import net.minecraft.util.Identifier; import net.minecraft.util.Identifier;
import net.minecraft.util.registry.BuiltinRegistries; import net.minecraft.util.registry.BuiltinRegistries;
import net.minecraft.util.registry.Registry; import net.minecraft.util.registry.Registry;
@@ -21,8 +22,8 @@ public class StickFeatures {
.addState(RocksMain.OakStick.getDefaultState().with(RocksMain.STICK_VARIATION,StickVariation.MEDIUM), 5) .addState(RocksMain.OakStick.getDefaultState().with(RocksMain.STICK_VARIATION,StickVariation.MEDIUM), 5)
.addState(RocksMain.OakStick.getDefaultState().with(RocksMain.STICK_VARIATION,StickVariation.LARGE), 1), .addState(RocksMain.OakStick.getDefaultState().with(RocksMain.STICK_VARIATION,StickVariation.LARGE), 1),
SimpleBlockPlacer.INSTANCE)) SimpleBlockPlacer.INSTANCE))
.tries(1).spreadX(0).spreadY(0).spreadZ(0) .tries(1).spreadX(0).spreadY(0).spreadZ(0).whitelist(ImmutableSet.of(Blocks.GRASS_BLOCK))
.build()).decorate(ConfiguredFeatures.Decorators.FIRE).applyChance(1); .build()).decorate(ConfiguredFeatures.Decorators.FIRE);
public static ConfiguredFeature<?, ?> SPRUCE_STICK_FEATURE = Feature.RANDOM_PATCH.configure( public static ConfiguredFeature<?, ?> SPRUCE_STICK_FEATURE = Feature.RANDOM_PATCH.configure(
(new RandomPatchFeatureConfig.Builder( (new RandomPatchFeatureConfig.Builder(
new WeightedBlockStateProvider() new WeightedBlockStateProvider()
@@ -32,7 +33,7 @@ public class StickFeatures {
.addState(RocksMain.Pinecone.getDefaultState(), 1), .addState(RocksMain.Pinecone.getDefaultState(), 1),
SimpleBlockPlacer.INSTANCE)) SimpleBlockPlacer.INSTANCE))
.tries(1).spreadX(0).spreadY(0).spreadZ(0) .tries(1).spreadX(0).spreadY(0).spreadZ(0)
.build()).decorate(ConfiguredFeatures.Decorators.FIRE).applyChance(1); .build()).decorate(ConfiguredFeatures.Decorators.FIRE);
public static ConfiguredFeature<?, ?> BIRCH_STICK_FEATURE = Feature.RANDOM_PATCH.configure( public static ConfiguredFeature<?, ?> BIRCH_STICK_FEATURE = Feature.RANDOM_PATCH.configure(
(new RandomPatchFeatureConfig.Builder( (new RandomPatchFeatureConfig.Builder(
new WeightedBlockStateProvider() new WeightedBlockStateProvider()
@@ -41,7 +42,7 @@ public class StickFeatures {
.addState(RocksMain.BirchStick.getDefaultState().with(RocksMain.STICK_VARIATION,StickVariation.LARGE), 1), .addState(RocksMain.BirchStick.getDefaultState().with(RocksMain.STICK_VARIATION,StickVariation.LARGE), 1),
SimpleBlockPlacer.INSTANCE)) SimpleBlockPlacer.INSTANCE))
.tries(1).spreadX(0).spreadY(0).spreadZ(0) .tries(1).spreadX(0).spreadY(0).spreadZ(0)
.build()).decorate(ConfiguredFeatures.Decorators.FIRE).applyChance(1); .build()).decorate(ConfiguredFeatures.Decorators.FIRE);
public static ConfiguredFeature<?, ?> ACACIA_STICK_FEATURE = Feature.RANDOM_PATCH.configure( public static ConfiguredFeature<?, ?> ACACIA_STICK_FEATURE = Feature.RANDOM_PATCH.configure(
(new RandomPatchFeatureConfig.Builder( (new RandomPatchFeatureConfig.Builder(
new WeightedBlockStateProvider() new WeightedBlockStateProvider()
@@ -50,7 +51,7 @@ public class StickFeatures {
.addState(RocksMain.AcaciaStick.getDefaultState().with(RocksMain.STICK_VARIATION,StickVariation.LARGE), 1), .addState(RocksMain.AcaciaStick.getDefaultState().with(RocksMain.STICK_VARIATION,StickVariation.LARGE), 1),
SimpleBlockPlacer.INSTANCE)) SimpleBlockPlacer.INSTANCE))
.tries(1).spreadX(0).spreadY(0).spreadZ(0) .tries(1).spreadX(0).spreadY(0).spreadZ(0)
.build()).decorate(ConfiguredFeatures.Decorators.FIRE).applyChance(1); .build()).decorate(ConfiguredFeatures.Decorators.FIRE);
public static ConfiguredFeature<?, ?> JUNGLE_STICK_FEATURE = Feature.RANDOM_PATCH.configure( public static ConfiguredFeature<?, ?> JUNGLE_STICK_FEATURE = Feature.RANDOM_PATCH.configure(
(new RandomPatchFeatureConfig.Builder( (new RandomPatchFeatureConfig.Builder(
new WeightedBlockStateProvider() new WeightedBlockStateProvider()
@@ -59,7 +60,7 @@ public class StickFeatures {
.addState(RocksMain.JungleStick.getDefaultState().with(RocksMain.STICK_VARIATION,StickVariation.LARGE), 1), .addState(RocksMain.JungleStick.getDefaultState().with(RocksMain.STICK_VARIATION,StickVariation.LARGE), 1),
SimpleBlockPlacer.INSTANCE)) SimpleBlockPlacer.INSTANCE))
.tries(1).spreadX(0).spreadY(0).spreadZ(0) .tries(1).spreadX(0).spreadY(0).spreadZ(0)
.build()).decorate(ConfiguredFeatures.Decorators.FIRE).applyChance(1); .build()).decorate(ConfiguredFeatures.Decorators.FIRE);
public static ConfiguredFeature<?, ?> DARK_OAK_STICK_FEATURE = Feature.RANDOM_PATCH.configure( public static ConfiguredFeature<?, ?> DARK_OAK_STICK_FEATURE = Feature.RANDOM_PATCH.configure(
(new RandomPatchFeatureConfig.Builder( (new RandomPatchFeatureConfig.Builder(
new WeightedBlockStateProvider() new WeightedBlockStateProvider()
@@ -68,7 +69,7 @@ public class StickFeatures {
.addState(RocksMain.DarkOakStick.getDefaultState().with(RocksMain.STICK_VARIATION,StickVariation.LARGE), 1), .addState(RocksMain.DarkOakStick.getDefaultState().with(RocksMain.STICK_VARIATION,StickVariation.LARGE), 1),
SimpleBlockPlacer.INSTANCE)) SimpleBlockPlacer.INSTANCE))
.tries(1).spreadX(0).spreadY(0).spreadZ(0) .tries(1).spreadX(0).spreadY(0).spreadZ(0)
.build()).decorate(ConfiguredFeatures.Decorators.FIRE).applyChance(1); .build()).decorate(ConfiguredFeatures.Decorators.FIRE);
public static void init() { public static void init() {
Registry<ConfiguredFeature<?, ?>> registry = BuiltinRegistries.CONFIGURED_FEATURE; Registry<ConfiguredFeature<?, ?>> registry = BuiltinRegistries.CONFIGURED_FEATURE;

View File

@@ -0,0 +1,49 @@
package eu.midnightdust.motschen.rocks.world.feature;
import com.mojang.serialization.Codec;
import net.minecraft.block.BlockState;
import net.minecraft.block.Blocks;
import net.minecraft.state.property.Properties;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.Heightmap;
import net.minecraft.world.StructureWorldAccess;
import net.minecraft.world.gen.ProbabilityConfig;
import net.minecraft.world.gen.chunk.ChunkGenerator;
import net.minecraft.world.gen.feature.Feature;
import net.minecraft.world.gen.stateprovider.WeightedBlockStateProvider;
import java.util.Random;
public class SnowFeature extends Feature<ProbabilityConfig> {
WeightedBlockStateProvider weightedBlockStateProvider1;
public SnowFeature(Codec<ProbabilityConfig> codec, WeightedBlockStateProvider weightedBlockStateProvider) {
super(codec);
weightedBlockStateProvider1 = weightedBlockStateProvider;
}
public boolean generate(StructureWorldAccess structureWorldAccess, ChunkGenerator chunkGenerator, Random random, BlockPos blockPos, ProbabilityConfig probabilityConfig) {
boolean bl = false;
int i = random.nextInt(8) - random.nextInt(8);
int j = random.nextInt(8) - random.nextInt(8);
int k = structureWorldAccess.getTopY(Heightmap.Type.OCEAN_FLOOR, blockPos.getX() + i, blockPos.getZ() + j);
BlockPos blockPos2 = new BlockPos(blockPos.getX() + i, k, blockPos.getZ() + j);
int chance = random.nextInt(8);
if (structureWorldAccess.getBlockState(blockPos2).isOf(Blocks.SNOW) && chance == 1) {
BlockState blockState = weightedBlockStateProvider1.getBlockState(random,blockPos);
if (blockState.canPlaceAt(structureWorldAccess, blockPos2)) {
structureWorldAccess.setBlockState(blockPos2, blockState, 1);
if (structureWorldAccess.getBlockState(blockPos2.down()) == Blocks.GRASS_BLOCK.getDefaultState()) {
structureWorldAccess.setBlockState(blockPos2.down(), Blocks.GRASS_BLOCK.getDefaultState().with(Properties.SNOWY, true), 1);
}
bl = true;
}
}
return bl;
}
}

View File

@@ -1,21 +1,14 @@
package eu.midnightdust.motschen.rocks.world; package eu.midnightdust.motschen.rocks.world.feature;
import com.mojang.serialization.Codec; import com.mojang.serialization.Codec;
import eu.midnightdust.motschen.rocks.RocksMain;
import eu.midnightdust.motschen.rocks.blockstates.StarfishVariation;
import net.minecraft.block.BlockState; import net.minecraft.block.BlockState;
import net.minecraft.block.Blocks; import net.minecraft.block.Blocks;
import net.minecraft.block.RailPlacementHelper;
import net.minecraft.block.TallSeagrassBlock;
import net.minecraft.block.enums.DoubleBlockHalf;
import net.minecraft.state.property.Properties;
import net.minecraft.util.math.BlockPos; import net.minecraft.util.math.BlockPos;
import net.minecraft.world.Heightmap; import net.minecraft.world.Heightmap;
import net.minecraft.world.StructureWorldAccess; import net.minecraft.world.StructureWorldAccess;
import net.minecraft.world.gen.ProbabilityConfig; import net.minecraft.world.gen.ProbabilityConfig;
import net.minecraft.world.gen.chunk.ChunkGenerator; import net.minecraft.world.gen.chunk.ChunkGenerator;
import net.minecraft.world.gen.feature.Feature; import net.minecraft.world.gen.feature.Feature;
import net.minecraft.world.gen.placer.SimpleBlockPlacer;
import net.minecraft.world.gen.stateprovider.WeightedBlockStateProvider; import net.minecraft.world.gen.stateprovider.WeightedBlockStateProvider;
import java.util.Random; import java.util.Random;
@@ -35,8 +28,6 @@ public class UnderwaterFeature extends Feature<ProbabilityConfig> {
BlockPos blockPos2 = new BlockPos(blockPos.getX() + i, k, blockPos.getZ() + j); BlockPos blockPos2 = new BlockPos(blockPos.getX() + i, k, blockPos.getZ() + j);
if (structureWorldAccess.getBlockState(blockPos2).isOf(Blocks.WATER)) { if (structureWorldAccess.getBlockState(blockPos2).isOf(Blocks.WATER)) {
boolean bl2 = random.nextDouble() < (double)probabilityConfig.probability;
boolean bl3 = random.nextDouble() < (double)2;
BlockState blockState = weightedBlockStateProvider1.getBlockState(random,blockPos); BlockState blockState = weightedBlockStateProvider1.getBlockState(random,blockPos);

View File

@@ -1,7 +1,22 @@
{ {
"variants": { "variants": {
"variation=small": { "model": "rocks:block/small_acacia_stick" }, "variation=small": [
"variation=medium": { "model": "rocks:block/medium_acacia_stick" }, {"model": "rocks:block/small_acacia_stick"},
"variation=large": { "model": "rocks:block/large_acacia_stick" } {"model": "rocks:block/small_acacia_stick", "y": 90},
{"model": "rocks:block/small_acacia_stick", "y": 180},
{"model": "rocks:block/small_acacia_stick", "y": 270}
],
"variation=medium": [
{"model": "rocks:block/medium_acacia_stick"},
{"model": "rocks:block/medium_acacia_stick", "y": 90},
{"model": "rocks:block/medium_acacia_stick", "y": 180},
{"model": "rocks:block/medium_acacia_stick", "y": 270}
],
"variation=large": [
{"model": "rocks:block/large_acacia_stick"},
{"model": "rocks:block/large_acacia_stick", "y": 90},
{"model": "rocks:block/large_acacia_stick", "y": 180},
{"model": "rocks:block/large_acacia_stick", "y": 270}
]
} }
} }

View File

@@ -0,0 +1,28 @@
{
"variants": {
"variation=tiny": [
{"model": "rocks:block/tiny_andesite_rock"},
{"model": "rocks:block/tiny_andesite_rock", "y": 90},
{"model": "rocks:block/tiny_andesite_rock", "y": 180},
{"model": "rocks:block/tiny_andesite_rock", "y": 270}
],
"variation=small": [
{"model": "rocks:block/small_andesite_rock"},
{"model": "rocks:block/small_andesite_rock", "y": 90},
{"model": "rocks:block/small_andesite_rock", "y": 180},
{"model": "rocks:block/small_andesite_rock", "y": 270}
],
"variation=medium": [
{"model": "rocks:block/medium_andesite_rock"},
{"model": "rocks:block/medium_andesite_rock", "y": 90},
{"model": "rocks:block/medium_andesite_rock", "y": 180},
{"model": "rocks:block/medium_andesite_rock", "y": 270}
],
"variation=large": [
{"model": "rocks:block/large_andesite_rock"},
{"model": "rocks:block/large_andesite_rock", "y": 90},
{"model": "rocks:block/large_andesite_rock", "y": 180},
{"model": "rocks:block/large_andesite_rock", "y": 270}
]
}
}

View File

@@ -1,7 +1,22 @@
{ {
"variants": { "variants": {
"variation=small": { "model": "rocks:block/small_birch_stick" }, "variation=small": [
"variation=medium": { "model": "rocks:block/medium_birch_stick" }, {"model": "rocks:block/small_birch_stick"},
"variation=large": { "model": "rocks:block/large_birch_stick" } {"model": "rocks:block/small_birch_stick", "y": 90},
{"model": "rocks:block/small_birch_stick", "y": 180},
{"model": "rocks:block/small_birch_stick", "y": 270}
],
"variation=medium": [
{"model": "rocks:block/medium_birch_stick"},
{"model": "rocks:block/medium_birch_stick", "y": 90},
{"model": "rocks:block/medium_birch_stick", "y": 180},
{"model": "rocks:block/medium_birch_stick", "y": 270}
],
"variation=large": [
{"model": "rocks:block/large_birch_stick"},
{"model": "rocks:block/large_birch_stick", "y": 90},
{"model": "rocks:block/large_birch_stick", "y": 180},
{"model": "rocks:block/large_birch_stick", "y": 270}
]
} }
} }

View File

@@ -1,7 +1,22 @@
{ {
"variants": { "variants": {
"variation=small": { "model": "rocks:block/small_dark_oak_stick" }, "variation=small": [
"variation=medium": { "model": "rocks:block/medium_dark_oak_stick" }, {"model": "rocks:block/small_dark_oak_stick"},
"variation=large": { "model": "rocks:block/large_dark_oak_stick" } {"model": "rocks:block/small_dark_oak_stick", "y": 90},
{"model": "rocks:block/small_dark_oak_stick", "y": 180},
{"model": "rocks:block/small_dark_oak_stick", "y": 270}
],
"variation=medium": [
{"model": "rocks:block/medium_dark_oak_stick"},
{"model": "rocks:block/medium_dark_oak_stick", "y": 90},
{"model": "rocks:block/medium_dark_oak_stick", "y": 180},
{"model": "rocks:block/medium_dark_oak_stick", "y": 270}
],
"variation=large": [
{"model": "rocks:block/large_dark_oak_stick"},
{"model": "rocks:block/large_dark_oak_stick", "y": 90},
{"model": "rocks:block/large_dark_oak_stick", "y": 180},
{"model": "rocks:block/large_dark_oak_stick", "y": 270}
]
} }
} }

View File

@@ -0,0 +1,28 @@
{
"variants": {
"variation=tiny": [
{"model": "rocks:block/tiny_diorite_rock"},
{"model": "rocks:block/tiny_diorite_rock", "y": 90},
{"model": "rocks:block/tiny_diorite_rock", "y": 180},
{"model": "rocks:block/tiny_diorite_rock", "y": 270}
],
"variation=small": [
{"model": "rocks:block/small_diorite_rock"},
{"model": "rocks:block/small_diorite_rock", "y": 90},
{"model": "rocks:block/small_diorite_rock", "y": 180},
{"model": "rocks:block/small_diorite_rock", "y": 270}
],
"variation=medium": [
{"model": "rocks:block/medium_diorite_rock"},
{"model": "rocks:block/medium_diorite_rock", "y": 90},
{"model": "rocks:block/medium_diorite_rock", "y": 180},
{"model": "rocks:block/medium_diorite_rock", "y": 270}
],
"variation=large": [
{"model": "rocks:block/large_diorite_rock"},
{"model": "rocks:block/large_diorite_rock", "y": 90},
{"model": "rocks:block/large_diorite_rock", "y": 180},
{"model": "rocks:block/large_diorite_rock", "y": 270}
]
}
}

View File

@@ -1,8 +1,28 @@
{ {
"variants": { "variants": {
"variation=tiny": { "model": "rocks:block/tiny_end_stone_rock" }, "variation=tiny": [
"variation=small": { "model": "rocks:block/small_end_stone_rock" }, {"model": "rocks:block/tiny_end_stone_rock"},
"variation=medium": { "model": "rocks:block/medium_end_stone_rock" }, {"model": "rocks:block/tiny_end_stone_rock", "y": 90},
"variation=large": { "model": "rocks:block/large_end_stone_rock" } {"model": "rocks:block/tiny_end_stone_rock", "y": 180},
{"model": "rocks:block/tiny_end_stone_rock", "y": 270}
],
"variation=small": [
{"model": "rocks:block/small_end_stone_rock"},
{"model": "rocks:block/small_end_stone_rock", "y": 90},
{"model": "rocks:block/small_end_stone_rock", "y": 180},
{"model": "rocks:block/small_end_stone_rock", "y": 270}
],
"variation=medium": [
{"model": "rocks:block/medium_end_stone_rock"},
{"model": "rocks:block/medium_end_stone_rock", "y": 90},
{"model": "rocks:block/medium_end_stone_rock", "y": 180},
{"model": "rocks:block/medium_end_stone_rock", "y": 270}
],
"variation=large": [
{"model": "rocks:block/large_end_stone_rock"},
{"model": "rocks:block/large_end_stone_rock", "y": 90},
{"model": "rocks:block/large_end_stone_rock", "y": 180},
{"model": "rocks:block/large_end_stone_rock", "y": 270}
]
} }
} }

View File

@@ -0,0 +1,8 @@
{
"variants": {
"active=true,snowy=false": { "model": "rocks:block/geyser_on" },
"active=false,snowy=false": { "model": "rocks:block/geyser_off" },
"active=true,snowy=true": { "model": "rocks:block/snowy_geyser_on" },
"active=false,snowy=true": { "model": "rocks:block/snowy_geyser_off" }
}
}

View File

@@ -0,0 +1,28 @@
{
"variants": {
"variation=tiny": [
{"model": "rocks:block/tiny_granite_rock"},
{"model": "rocks:block/tiny_granite_rock", "y": 90},
{"model": "rocks:block/tiny_granite_rock", "y": 180},
{"model": "rocks:block/tiny_granite_rock", "y": 270}
],
"variation=small": [
{"model": "rocks:block/small_granite_rock"},
{"model": "rocks:block/small_granite_rock", "y": 90},
{"model": "rocks:block/small_granite_rock", "y": 180},
{"model": "rocks:block/small_granite_rock", "y": 270}
],
"variation=medium": [
{"model": "rocks:block/medium_granite_rock"},
{"model": "rocks:block/medium_granite_rock", "y": 90},
{"model": "rocks:block/medium_granite_rock", "y": 180},
{"model": "rocks:block/medium_granite_rock", "y": 270}
],
"variation=large": [
{"model": "rocks:block/large_granite_rock"},
{"model": "rocks:block/large_granite_rock", "y": 90},
{"model": "rocks:block/large_granite_rock", "y": 180},
{"model": "rocks:block/large_granite_rock", "y": 270}
]
}
}

View File

@@ -0,0 +1,28 @@
{
"variants": {
"variation=tiny": [
{"model": "rocks:block/tiny_gravel_rock"},
{"model": "rocks:block/tiny_gravel_rock", "y": 90},
{"model": "rocks:block/tiny_gravel_rock", "y": 180},
{"model": "rocks:block/tiny_gravel_rock", "y": 270}
],
"variation=small": [
{"model": "rocks:block/small_gravel_rock"},
{"model": "rocks:block/small_gravel_rock", "y": 90},
{"model": "rocks:block/small_gravel_rock", "y": 180},
{"model": "rocks:block/small_gravel_rock", "y": 270}
],
"variation=medium": [
{"model": "rocks:block/medium_gravel_rock"},
{"model": "rocks:block/medium_gravel_rock", "y": 90},
{"model": "rocks:block/medium_gravel_rock", "y": 180},
{"model": "rocks:block/medium_gravel_rock", "y": 270}
],
"variation=large": [
{"model": "rocks:block/large_gravel_rock"},
{"model": "rocks:block/large_gravel_rock", "y": 90},
{"model": "rocks:block/large_gravel_rock", "y": 180},
{"model": "rocks:block/large_gravel_rock", "y": 270}
]
}
}

View File

@@ -1,7 +1,22 @@
{ {
"variants": { "variants": {
"variation=small": { "model": "rocks:block/small_jungle_stick" }, "variation=small": [
"variation=medium": { "model": "rocks:block/medium_jungle_stick" }, {"model": "rocks:block/small_jungle_stick"},
"variation=large": { "model": "rocks:block/large_jungle_stick" } {"model": "rocks:block/small_jungle_stick", "y": 90},
{"model": "rocks:block/small_jungle_stick", "y": 180},
{"model": "rocks:block/small_jungle_stick", "y": 270}
],
"variation=medium": [
{"model": "rocks:block/medium_jungle_stick"},
{"model": "rocks:block/medium_jungle_stick", "y": 90},
{"model": "rocks:block/medium_jungle_stick", "y": 180},
{"model": "rocks:block/medium_jungle_stick", "y": 270}
],
"variation=large": [
{"model": "rocks:block/large_jungle_stick"},
{"model": "rocks:block/large_jungle_stick", "y": 90},
{"model": "rocks:block/large_jungle_stick", "y": 180},
{"model": "rocks:block/large_jungle_stick", "y": 270}
]
} }
} }

View File

@@ -0,0 +1,6 @@
{
"variants": {
"active=true": { "model": "rocks:block/nether_geyser_on" },
"active=false": { "model": "rocks:block/nether_geyser_off" }
}
}

View File

@@ -0,0 +1,28 @@
{
"variants": {
"variation=tiny": [
{"model": "rocks:block/tiny_netherrack_rock"},
{"model": "rocks:block/tiny_netherrack_rock", "y": 90},
{"model": "rocks:block/tiny_netherrack_rock", "y": 180},
{"model": "rocks:block/tiny_netherrack_rock", "y": 270}
],
"variation=small": [
{"model": "rocks:block/small_netherrack_rock"},
{"model": "rocks:block/small_netherrack_rock", "y": 90},
{"model": "rocks:block/small_netherrack_rock", "y": 180},
{"model": "rocks:block/small_netherrack_rock", "y": 270}
],
"variation=medium": [
{"model": "rocks:block/medium_netherrack_rock"},
{"model": "rocks:block/medium_netherrack_rock", "y": 90},
{"model": "rocks:block/medium_netherrack_rock", "y": 180},
{"model": "rocks:block/medium_netherrack_rock", "y": 270}
],
"variation=large": [
{"model": "rocks:block/large_netherrack_rock"},
{"model": "rocks:block/large_netherrack_rock", "y": 90},
{"model": "rocks:block/large_netherrack_rock", "y": 180},
{"model": "rocks:block/large_netherrack_rock", "y": 270}
]
}
}

View File

@@ -1,7 +1,22 @@
{ {
"variants": { "variants": {
"variation=small": { "model": "rocks:block/small_oak_stick" }, "variation=small": [
"variation=medium": { "model": "rocks:block/medium_oak_stick" }, {"model": "rocks:block/small_oak_stick"},
"variation=large": { "model": "rocks:block/large_oak_stick" } {"model": "rocks:block/small_oak_stick", "y": 90},
{"model": "rocks:block/small_oak_stick", "y": 180},
{"model": "rocks:block/small_oak_stick", "y": 270}
],
"variation=medium": [
{"model": "rocks:block/medium_oak_stick"},
{"model": "rocks:block/medium_oak_stick", "y": 90},
{"model": "rocks:block/medium_oak_stick", "y": 180},
{"model": "rocks:block/medium_oak_stick", "y": 270}
],
"variation=large": [
{"model": "rocks:block/large_oak_stick"},
{"model": "rocks:block/large_oak_stick", "y": 90},
{"model": "rocks:block/large_oak_stick", "y": 180},
{"model": "rocks:block/large_oak_stick", "y": 270}
]
} }
} }

View File

@@ -1,5 +1,10 @@
{ {
"variants": { "variants": {
"": { "model": "rocks:block/pinecone" } "": [
{"model": "rocks:block/pinecone"},
{"model": "rocks:block/pinecone", "y": 90},
{"model": "rocks:block/pinecone", "y": 180},
{"model": "rocks:block/pinecone", "y": 270}
]
} }
} }

View File

@@ -1,8 +1,28 @@
{ {
"variants": { "variants": {
"variation=tiny": { "model": "rocks:block/tiny_red_sand_rock" }, "variation=tiny": [
"variation=small": { "model": "rocks:block/small_red_sand_rock" }, {"model": "rocks:block/tiny_red_sand_rock"},
"variation=medium": { "model": "rocks:block/medium_red_sand_rock" }, {"model": "rocks:block/tiny_red_sand_rock", "y": 90},
"variation=large": { "model": "rocks:block/large_red_sand_rock" } {"model": "rocks:block/tiny_red_sand_rock", "y": 180},
{"model": "rocks:block/tiny_red_sand_rock", "y": 270}
],
"variation=small": [
{"model": "rocks:block/small_red_sand_rock"},
{"model": "rocks:block/small_red_sand_rock", "y": 90},
{"model": "rocks:block/small_red_sand_rock", "y": 180},
{"model": "rocks:block/small_red_sand_rock", "y": 270}
],
"variation=medium": [
{"model": "rocks:block/medium_red_sand_rock"},
{"model": "rocks:block/medium_red_sand_rock", "y": 90},
{"model": "rocks:block/medium_red_sand_rock", "y": 180},
{"model": "rocks:block/medium_red_sand_rock", "y": 270}
],
"variation=large": [
{"model": "rocks:block/large_red_sand_rock"},
{"model": "rocks:block/large_red_sand_rock", "y": 90},
{"model": "rocks:block/large_red_sand_rock", "y": 180},
{"model": "rocks:block/large_red_sand_rock", "y": 270}
]
} }
} }

View File

@@ -1,8 +1,28 @@
{ {
"variants": { "variants": {
"variation=tiny": { "model": "rocks:block/tiny_rock" }, "variation=tiny": [
"variation=small": { "model": "rocks:block/small_rock" }, {"model": "rocks:block/tiny_rock"},
"variation=medium": { "model": "rocks:block/medium_rock" }, {"model": "rocks:block/tiny_rock", "y": 90},
"variation=large": { "model": "rocks:block/large_rock" } {"model": "rocks:block/tiny_rock", "y": 180},
{"model": "rocks:block/tiny_rock", "y": 270}
],
"variation=small": [
{"model": "rocks:block/small_rock"},
{"model": "rocks:block/small_rock", "y": 90},
{"model": "rocks:block/small_rock", "y": 180},
{"model": "rocks:block/small_rock", "y": 270}
],
"variation=medium": [
{"model": "rocks:block/medium_rock"},
{"model": "rocks:block/medium_rock", "y": 90},
{"model": "rocks:block/medium_rock", "y": 180},
{"model": "rocks:block/medium_rock", "y": 270}
],
"variation=large": [
{"model": "rocks:block/large_rock"},
{"model": "rocks:block/large_rock", "y": 90},
{"model": "rocks:block/large_rock", "y": 180},
{"model": "rocks:block/large_rock", "y": 270}
]
} }
} }

View File

@@ -1,8 +1,28 @@
{ {
"variants": { "variants": {
"variation=tiny": { "model": "rocks:block/tiny_sand_rock" }, "variation=tiny": [
"variation=small": { "model": "rocks:block/small_sand_rock" }, {"model": "rocks:block/tiny_sand_rock"},
"variation=medium": { "model": "rocks:block/medium_sand_rock" }, {"model": "rocks:block/tiny_sand_rock", "y": 90},
"variation=large": { "model": "rocks:block/large_sand_rock" } {"model": "rocks:block/tiny_sand_rock", "y": 180},
{"model": "rocks:block/tiny_sand_rock", "y": 270}
],
"variation=small": [
{"model": "rocks:block/small_sand_rock"},
{"model": "rocks:block/small_sand_rock", "y": 90},
{"model": "rocks:block/small_sand_rock", "y": 180},
{"model": "rocks:block/small_sand_rock", "y": 270}
],
"variation=medium": [
{"model": "rocks:block/medium_sand_rock"},
{"model": "rocks:block/medium_sand_rock", "y": 90},
{"model": "rocks:block/medium_sand_rock", "y": 180},
{"model": "rocks:block/medium_sand_rock", "y": 270}
],
"variation=large": [
{"model": "rocks:block/large_sand_rock"},
{"model": "rocks:block/large_sand_rock", "y": 90},
{"model": "rocks:block/large_sand_rock", "y": 180},
{"model": "rocks:block/large_sand_rock", "y": 270}
]
} }
} }

View File

@@ -1,7 +1,22 @@
{ {
"variants": { "variants": {
"variation=yellow": { "model": "rocks:block/seashell_yellow" }, "variation=yellow": [
"variation=pink": { "model": "rocks:block/seashell_pink" }, {"model": "rocks:block/seashell_yellow"},
"variation=white": { "model": "rocks:block/seashell_white" } {"model": "rocks:block/seashell_yellow", "y": 90},
{"model": "rocks:block/seashell_yellow", "y": 180},
{"model": "rocks:block/seashell_yellow", "y": 270}
],
"variation=pink": [
{"model": "rocks:block/seashell_pink"},
{"model": "rocks:block/seashell_pink", "y": 90},
{"model": "rocks:block/seashell_pink", "y": 180},
{"model": "rocks:block/seashell_pink", "y": 270}
],
"variation=white": [
{"model": "rocks:block/seashell_white"},
{"model": "rocks:block/seashell_white", "y": 90},
{"model": "rocks:block/seashell_white", "y": 180},
{"model": "rocks:block/seashell_white", "y": 270}
]
} }
} }

View File

@@ -0,0 +1,28 @@
{
"variants": {
"variation=tiny": [
{"model": "rocks:block/tiny_soul_soil_rock"},
{"model": "rocks:block/tiny_soul_soil_rock", "y": 90},
{"model": "rocks:block/tiny_soul_soil_rock", "y": 180},
{"model": "rocks:block/tiny_soul_soil_rock", "y": 270}
],
"variation=small": [
{"model": "rocks:block/small_soul_soil_rock"},
{"model": "rocks:block/small_soul_soil_rock", "y": 90},
{"model": "rocks:block/small_soul_soil_rock", "y": 180},
{"model": "rocks:block/small_soul_soil_rock", "y": 270}
],
"variation=medium": [
{"model": "rocks:block/medium_soul_soil_rock"},
{"model": "rocks:block/medium_soul_soil_rock", "y": 90},
{"model": "rocks:block/medium_soul_soil_rock", "y": 180},
{"model": "rocks:block/medium_soul_soil_rock", "y": 270}
],
"variation=large": [
{"model": "rocks:block/large_soul_soil_rock"},
{"model": "rocks:block/large_soul_soil_rock", "y": 90},
{"model": "rocks:block/large_soul_soil_rock", "y": 180},
{"model": "rocks:block/large_soul_soil_rock", "y": 270}
]
}
}

View File

@@ -1,7 +1,22 @@
{ {
"variants": { "variants": {
"variation=small": { "model": "rocks:block/small_spruce_stick" }, "variation=small": [
"variation=medium": { "model": "rocks:block/medium_spruce_stick" }, {"model": "rocks:block/small_spruce_stick"},
"variation=large": { "model": "rocks:block/large_spruce_stick" } {"model": "rocks:block/small_spruce_stick", "y": 90},
{"model": "rocks:block/small_spruce_stick", "y": 180},
{"model": "rocks:block/small_spruce_stick", "y": 270}
],
"variation=medium": [
{"model": "rocks:block/medium_spruce_stick"},
{"model": "rocks:block/medium_spruce_stick", "y": 90},
{"model": "rocks:block/medium_spruce_stick", "y": 180},
{"model": "rocks:block/medium_spruce_stick", "y": 270}
],
"variation=large": [
{"model": "rocks:block/large_spruce_stick"},
{"model": "rocks:block/large_spruce_stick", "y": 90},
{"model": "rocks:block/large_spruce_stick", "y": 180},
{"model": "rocks:block/large_spruce_stick", "y": 270}
]
} }
} }

View File

@@ -1,7 +1,23 @@
{ {
"variants": { "variants": {
"variation=red": { "model": "rocks:block/starfish_red" }, "variation=red": [
"variation=pink": { "model": "rocks:block/starfish_pink" }, {"model": "rocks:block/starfish_red", "y": 180},
"variation=orange": { "model": "rocks:block/starfish_orange" } {"model": "rocks:block/starfish_red", "y": 270},
{"model": "rocks:block/starfish_red", "y": 0},
{"model": "rocks:block/starfish_red", "y": 90}
],
"variation=pink": [
{"model": "rocks:block/starfish_pink"},
{"model": "rocks:block/starfish_pink", "y": 90},
{"model": "rocks:block/starfish_pink", "y": 180},
{"model": "rocks:block/starfish_pink", "y": 270}
],
"variation=orange": [
{"model": "rocks:block/starfish_orange", "y": 90},
{"model": "rocks:block/starfish_orange", "y": 180},
{"model": "rocks:block/starfish_orange", "y": 270},
{"model": "rocks:block/starfish_orange"}
]
} }
} }

View File

@@ -2,9 +2,15 @@
"itemGroup.rocks.rocks":"This Rocks!", "itemGroup.rocks.rocks":"This Rocks!",
"block.rocks.rock":"Steinbrocken", "block.rocks.rock":"Steinbrocken",
"block.rocks.granite_rock":"Granitbrocken",
"block.rocks.diorite_rock":"Dioritbrocken",
"block.rocks.andesite_rock":"Andesitbrocken",
"block.rocks.sand_rock":"Sandsteinbrocken", "block.rocks.sand_rock":"Sandsteinbrocken",
"block.rocks.red_sand_rock":"Roter Sandsteinbrocken", "block.rocks.red_sand_rock":"Roter Sandsteinbrocken",
"block.rocks.gravel_rock":"Kiesbrocken",
"block.rocks.end_stone_rock":"Endsteinbrocken", "block.rocks.end_stone_rock":"Endsteinbrocken",
"block.rocks.netherrack_rock":"Netherrackbrocken",
"block.rocks.soul_soil_rock":"Seelenerdebrocken",
"block.rocks.oak_stick":"Eichenholzstock", "block.rocks.oak_stick":"Eichenholzstock",
"block.rocks.birch_stick":"Birkenholzstock", "block.rocks.birch_stick":"Birkenholzstock",
@@ -13,12 +19,20 @@
"block.rocks.acacia_stick":"Akazienholzstock", "block.rocks.acacia_stick":"Akazienholzstock",
"block.rocks.dark_oak_stick":"Schwarzeichenholzstock", "block.rocks.dark_oak_stick":"Schwarzeichenholzstock",
"block.rocks.geyser":"Geyser",
"block.rocks.nether_geyser":"Magma Geyser",
"block.rocks.pinecone":"Tannenzapfen", "block.rocks.pinecone":"Tannenzapfen",
"block.rocks.seashell":"Muschel", "block.rocks.seashell":"Muschel",
"block.rocks.starfish":"Seestern", "block.rocks.starfish":"Seestern",
"item.rocks.cobblestone_splitter":"Bruchsteinsplitter", "item.rocks.cobblestone_splitter":"Bruchsteinsplitter",
"item.rocks.granite_splitter":"Granitsplitter",
"item.rocks.diorite_splitter":"Dioritsplitter",
"item.rocks.andesite_splitter":"Andesitsplitter",
"item.rocks.sandstone_splitter":"Sandsteinsplitter", "item.rocks.sandstone_splitter":"Sandsteinsplitter",
"item.rocks.red_sandstone_splitter":"Roter Sandsteinsplitter", "item.rocks.red_sandstone_splitter":"Roter Sandsteinsplitter",
"item.rocks.end_stone_splitter":"Endsteinsplitter" "item.rocks.end_stone_splitter":"Endsteinsplitter",
"item.rocks.netherrack_splitter":"Netherracksplitter",
"item.rocks.soul_soil_splitter":"Seelenerdesplitter"
} }

View File

@@ -2,9 +2,15 @@
"itemGroup.rocks.rocks":"This Rocks!", "itemGroup.rocks.rocks":"This Rocks!",
"block.rocks.rock":"Rock", "block.rocks.rock":"Rock",
"block.rocks.granite_rock":"Granite Rock",
"block.rocks.diorite_rock":"Diorite Rock",
"block.rocks.andesite_rock":"Andesite Rock",
"block.rocks.sand_rock":"Sand Rock", "block.rocks.sand_rock":"Sand Rock",
"block.rocks.red_sand_rock":"Red Sand Rock", "block.rocks.red_sand_rock":"Red Sand Rock",
"block.rocks.gravel_rock":"Gravel Rock",
"block.rocks.end_stone_rock":"End Stone Rock", "block.rocks.end_stone_rock":"End Stone Rock",
"block.rocks.netherrack_rock":"Netherrack Rock",
"block.rocks.soul_soil_rock":"Soul Soil Rock",
"block.rocks.oak_stick":"Oak Stick", "block.rocks.oak_stick":"Oak Stick",
"block.rocks.birch_stick":"Birch Stick", "block.rocks.birch_stick":"Birch Stick",
@@ -13,12 +19,20 @@
"block.rocks.acacia_stick":"Acacia Stick", "block.rocks.acacia_stick":"Acacia Stick",
"block.rocks.dark_oak_stick":"Dark Oak Stick", "block.rocks.dark_oak_stick":"Dark Oak Stick",
"block.rocks.geyser":"Geyser",
"block.rocks.nether_geyser":"Magma Geyser",
"block.rocks.pinecone":"Pinecone", "block.rocks.pinecone":"Pinecone",
"block.rocks.seashell":"Seashell", "block.rocks.seashell":"Seashell",
"block.rocks.starfish":"Starfish", "block.rocks.starfish":"Starfish",
"item.rocks.cobblestone_splitter":"Cobblestone Splitter", "item.rocks.cobblestone_splitter":"Cobblestone Splitter",
"item.rocks.granite_splitter":"Granite Splitter",
"item.rocks.diorite_splitter":"Diorite Splitter",
"item.rocks.andesite_splitter":"Andesite Splitter",
"item.rocks.sandstone_splitter":"Sandstone Splitter", "item.rocks.sandstone_splitter":"Sandstone Splitter",
"item.rocks.red_sandstone_splitter":"Red Sandstone Splitter", "item.rocks.red_sandstone_splitter":"Red Sandstone Splitter",
"item.rocks.end_stone_splitter":"End Stone Splitter" "item.rocks.end_stone_splitter":"End Stone Splitter",
"item.rocks.netherrack_splitter":"Netherrack Splitter",
"item.rocks.soul_soil_splitter":"Soul Soil Splitter"
} }

View File

@@ -0,0 +1,24 @@
{
"itemGroup.rocks.rocks":"This Rocks!",
"block.rocks.rock":"Камушек из булыжника",
"block.rocks.sand_rock":"Камушек из песчаника",
"block.rocks.red_sand_rock":"Камушек из красного песчаника",
"block.rocks.end_stone_rock":"Камушек из эндерняка",
"block.rocks.oak_stick":"Дубовая палка",
"block.rocks.birch_stick":"Берёзовая палка",
"block.rocks.spruce_stick":"Еловая палочка",
"block.rocks.jungle_stick":"Палка из тропического дерева",
"block.rocks.acacia_stick":"Палка из акации",
"block.rocks.dark_oak_stick":"Палка из тёмного дуба",
"block.rocks.pinecone":"Шишка",
"block.rocks.seashell":"Морская ракушка",
"block.rocks.starfish":"Морская звезда",
"item.rocks.cobblestone_splitter":"Кусочек булыжника",
"item.rocks.sandstone_splitter":"Кусочек песчаника",
"item.rocks.red_sandstone_splitter":"Кусочек красного песчаника",
"item.rocks.end_stone_splitter":"Кусочек эндерняка"
}

View File

@@ -0,0 +1,24 @@
{
"itemGroup.rocks.rocks":"这就是石粒! §7This Rocks!",
"block.rocks.rock":"石粒",
"block.rocks.sand_rock":"砂岩粒",
"block.rocks.red_sand_rock":"红砂岩粒",
"block.rocks.end_stone_rock":"末地石粒",
"block.rocks.oak_stick":"橡木棍",
"block.rocks.birch_stick":"白桦木棍",
"block.rocks.spruce_stick":"云杉木棍",
"block.rocks.jungle_stick":"丛林木棍",
"block.rocks.acacia_stick":"金合欢木棍",
"block.rocks.dark_oak_stick":"深色橡木棍",
"block.rocks.pinecone":"松果",
"block.rocks.seashell":"海贝",
"block.rocks.starfish":"海星",
"item.rocks.cobblestone_splitter":"圆石碎块",
"item.rocks.sandstone_splitter":"砂石碎块",
"item.rocks.red_sandstone_splitter":"红砂石碎块",
"item.rocks.end_stone_splitter":"末地石碎块"
}

View File

@@ -0,0 +1,10 @@
{
"defaultMap": {
"spriteMap": [
{
"sprite": "minecraft:block/magma",
"material": "canvas:warm_glow"
}
]
}
}

View File

@@ -0,0 +1,10 @@
{
"defaultMap": {
"spriteMap": [
{
"sprite": "minecraft:block/magma",
"material": "canvas:warm_glow"
}
]
}
}

View File

@@ -0,0 +1,108 @@
{
"credit": "made by Motschen",
"parent": "block/block",
"textures": {
"0": "block/snow",
"2": "block/black_concrete",
"particle": "block/snow"
},
"elements": [
{
"from": [5, 0, 5],
"to": [11, 1, 6],
"rotation": {"angle": 0, "axis": "y", "origin": [13, 8, 13]},
"faces": {
"north": {"uv": [0, 0, 6, 1], "texture": "#0"},
"east": {"uv": [0, 0, 1, 1], "texture": "#0"},
"south": {"uv": [0, 0, 6, 1], "texture": "#0"},
"west": {"uv": [0, 0, 1, 1], "texture": "#0"},
"up": {"uv": [0, 0, 6, 1], "texture": "#0"},
"down": {"uv": [0, 0, 6, 1], "texture": "#0"}
}
},
{
"from": [10, 0, 6],
"to": [11, 1, 10],
"rotation": {"angle": 0, "axis": "y", "origin": [13, 8, 14]},
"faces": {
"north": {"uv": [0, 0, 1, 1], "texture": "#0"},
"east": {"uv": [0, 0, 4, 1], "texture": "#0"},
"south": {"uv": [0, 0, 1, 1], "texture": "#0"},
"west": {"uv": [0, 0, 4, 1], "texture": "#0"},
"up": {"uv": [0, 2, 1, 6], "texture": "#0"},
"down": {"uv": [0, 0, 1, 4], "texture": "#0"}
}
},
{
"from": [5, 0, 6],
"to": [6, 1, 10],
"rotation": {"angle": 0, "axis": "y", "origin": [8, 8, 14]},
"faces": {
"north": {"uv": [0, 0, 1, 1], "texture": "#0"},
"east": {"uv": [0, 0, 4, 1], "texture": "#0"},
"south": {"uv": [0, 0, 1, 1], "texture": "#0"},
"west": {"uv": [0, 0, 4, 1], "texture": "#0"},
"up": {"uv": [15, 1, 16, 5], "texture": "#0"},
"down": {"uv": [0, 0, 1, 4], "texture": "#0"}
}
},
{
"from": [5, 0, 10],
"to": [11, 1, 11],
"rotation": {"angle": 0, "axis": "y", "origin": [13, 8, 18]},
"faces": {
"north": {"uv": [0, 0, 6, 1], "texture": "#0"},
"east": {"uv": [0, 0, 1, 1], "texture": "#0"},
"south": {"uv": [0, 0, 6, 1], "texture": "#0"},
"west": {"uv": [0, 0, 1, 1], "texture": "#0"},
"up": {"uv": [0, 5, 6, 6], "texture": "#0"},
"down": {"uv": [0, 0, 6, 1], "texture": "#0"}
}
},
{
"from": [6, 0, 6],
"to": [10, 0.1, 10],
"rotation": {"angle": 0, "axis": "y", "origin": [13, 8, 13]},
"faces": {
"north": {"uv": [0, 0, 4, 0.1], "texture": "#0"},
"east": {"uv": [0, 0, 4, 0.1], "texture": "#0"},
"south": {"uv": [0, 0, 4, 0.1], "texture": "#0"},
"west": {"uv": [0, 0, 4, 0.1], "texture": "#0"},
"up": {"uv": [0, 0, 4, 4], "texture": "#2"},
"down": {"uv": [0, 0, 4, 4], "texture": "#0"}
}
}
],
"display": {
"thirdperson_righthand": {
"translation": [0, 2.25, -1.5],
"scale": [0.5, 0.5, 0.5]
},
"thirdperson_lefthand": {
"translation": [0, 2.25, -1.5],
"scale": [0.5, 0.5, 0.5]
},
"firstperson_righthand": {
"translation": [2.5, 8.25, -0.25]
},
"firstperson_lefthand": {
"translation": [2.5, 8.25, -0.25]
},
"ground": {
"translation": [0, 5.75, 0]
},
"gui": {
"rotation": [45, 45, 0],
"translation": [0, 7.25, 0],
"scale": [1.5, 1.5, 1.5]
},
"head": {
"translation": [0, 14.5, 0]
},
"fixed": {
"rotation": [-90, 0, 0],
"translation": [0, 0, -12],
"scale": [1.5, 1.5, 1.5]
}
}
}

View File

@@ -0,0 +1,7 @@
{
"credit": "made by Motschen",
"parent": "rocks:block/geyser_off",
"textures": {
"2": "block/magma"
}
}

View File

@@ -0,0 +1,7 @@
{
"parent": "rocks:block/large_rock",
"textures": {
"0": "block/andesite",
"particle": "block/andesite"
}
}

View File

@@ -0,0 +1,7 @@
{
"parent": "rocks:block/large_rock",
"textures": {
"0": "block/diorite",
"particle": "block/diorite"
}
}

View File

@@ -0,0 +1,7 @@
{
"parent": "rocks:block/large_rock",
"textures": {
"0": "block/granite",
"particle": "block/granite"
}
}

View File

@@ -0,0 +1,7 @@
{
"parent": "rocks:block/large_rock",
"textures": {
"0": "block/gravel",
"particle": "block/gravel"
}
}

View File

@@ -0,0 +1,7 @@
{
"parent": "rocks:block/large_rock",
"textures": {
"0": "block/netherrack",
"particle": "block/netherrack"
}
}

View File

@@ -0,0 +1,7 @@
{
"parent": "rocks:block/large_rock",
"textures": {
"0": "block/soul_soil",
"particle": "block/soul_soil"
}
}

View File

@@ -0,0 +1,7 @@
{
"parent": "rocks:block/medium_rock",
"textures": {
"0": "block/andesite",
"particle": "block/andesite"
}
}

View File

@@ -0,0 +1,7 @@
{
"parent": "rocks:block/medium_rock",
"textures": {
"0": "block/diorite",
"particle": "block/diorite"
}
}

View File

@@ -0,0 +1,7 @@
{
"parent": "rocks:block/medium_rock",
"textures": {
"0": "block/granite",
"particle": "block/granite"
}
}

View File

@@ -0,0 +1,7 @@
{
"parent": "rocks:block/medium_rock",
"textures": {
"0": "block/gravel",
"particle": "block/gravel"
}
}

View File

@@ -0,0 +1,7 @@
{
"parent": "rocks:block/medium_rock",
"textures": {
"0": "block/netherrack",
"particle": "block/netherrack"
}
}

View File

@@ -0,0 +1,7 @@
{
"parent": "rocks:block/medium_rock",
"textures": {
"0": "block/soul_soil",
"particle": "block/soul_soil"
}
}

View File

@@ -0,0 +1,9 @@
{
"credit": "made by Motschen",
"parent": "rocks:block/geyser_off",
"textures": {
"0": "block/netherrack",
"2": "block/black_concrete",
"particle": "block/netherrack"
}
}

View File

@@ -0,0 +1,7 @@
{
"credit": "made by Motschen",
"parent": "rocks:block/nether_geyser_off",
"textures": {
"2": "block/magma"
}
}

View File

@@ -0,0 +1,7 @@
{
"parent": "rocks:block/small_rock",
"textures": {
"0": "block/andesite",
"particle": "block/andesite"
}
}

View File

@@ -0,0 +1,7 @@
{
"parent": "rocks:block/small_rock",
"textures": {
"0": "block/diorite",
"particle": "block/diorite"
}
}

View File

@@ -0,0 +1,7 @@
{
"parent": "rocks:block/small_rock",
"textures": {
"0": "block/granite",
"particle": "block/granite"
}
}

View File

@@ -0,0 +1,7 @@
{
"parent": "rocks:block/small_rock",
"textures": {
"0": "block/gravel",
"particle": "block/gravel"
}
}

View File

@@ -0,0 +1,7 @@
{
"parent": "rocks:block/small_rock",
"textures": {
"0": "block/netherrack",
"particle": "block/netherrack"
}
}

View File

@@ -0,0 +1,7 @@
{
"parent": "rocks:block/small_rock",
"textures": {
"0": "block/soul_soil",
"particle": "block/soul_soil"
}
}

View File

@@ -0,0 +1,87 @@
{
"credit": "made by Motschen",
"parent": "block/block",
"textures": {
"0": "block/snow",
"2": "block/black_concrete",
"particle": "block/snow"
},
"elements": [
{
"from": [5, 2, 5],
"to": [11, 3, 6],
"rotation": {"angle": 0, "axis": "y", "origin": [13, 10, 13]},
"faces": {
"north": {"uv": [0, 0, 6, 1], "texture": "#0"},
"east": {"uv": [0, 0, 1, 1], "texture": "#0"},
"south": {"uv": [0, 0, 6, 1], "texture": "#0"},
"west": {"uv": [0, 0, 1, 1], "texture": "#0"},
"up": {"uv": [0, 0, 6, 1], "texture": "#0"},
"down": {"uv": [0, 0, 6, 1], "texture": "#0"}
}
},
{
"from": [10, 2, 6],
"to": [11, 3, 10],
"rotation": {"angle": 0, "axis": "y", "origin": [13, 10, 14]},
"faces": {
"north": {"uv": [0, 0, 1, 1], "texture": "#0"},
"east": {"uv": [0, 0, 4, 1], "texture": "#0"},
"south": {"uv": [0, 0, 1, 1], "texture": "#0"},
"west": {"uv": [0, 0, 4, 1], "texture": "#0"},
"up": {"uv": [0, 2, 1, 6], "texture": "#0"},
"down": {"uv": [0, 0, 1, 4], "texture": "#0"}
}
},
{
"from": [5, 2, 6],
"to": [6, 3, 10],
"rotation": {"angle": 0, "axis": "y", "origin": [8, 10, 14]},
"faces": {
"north": {"uv": [0, 0, 1, 1], "texture": "#0"},
"east": {"uv": [0, 0, 4, 1], "texture": "#0"},
"south": {"uv": [0, 0, 1, 1], "texture": "#0"},
"west": {"uv": [0, 0, 4, 1], "texture": "#0"},
"up": {"uv": [15, 1, 16, 5], "texture": "#0"},
"down": {"uv": [0, 0, 1, 4], "texture": "#0"}
}
},
{
"from": [5, 2, 10],
"to": [11, 3, 11],
"rotation": {"angle": 0, "axis": "y", "origin": [13, 10, 18]},
"faces": {
"north": {"uv": [0, 0, 6, 1], "texture": "#0"},
"east": {"uv": [0, 0, 1, 1], "texture": "#0"},
"south": {"uv": [0, 0, 6, 1], "texture": "#0"},
"west": {"uv": [0, 0, 1, 1], "texture": "#0"},
"up": {"uv": [0, 5, 6, 6], "texture": "#0"},
"down": {"uv": [0, 0, 6, 1], "texture": "#0"}
}
},
{
"from": [6, 2, 6],
"to": [10, 2.1, 10],
"rotation": {"angle": 0, "axis": "y", "origin": [13, 10, 13]},
"faces": {
"north": {"uv": [0, 0, 4, 0.1], "texture": "#0"},
"east": {"uv": [0, 0, 4, 0.1], "texture": "#0"},
"south": {"uv": [0, 0, 4, 0.1], "texture": "#0"},
"west": {"uv": [0, 0, 4, 0.1], "texture": "#0"},
"up": {"uv": [0, 0, 4, 4], "texture": "#2"},
"down": {"uv": [0, 0, 4, 4], "texture": "#0"}
}
},
{
"from": [0, 0, 0],
"to": [16, 2, 16],
"faces": {
"north": {"uv": [0, 0, 16, 2], "texture": "#0"},
"east": {"uv": [0, 0, 16, 2], "texture": "#0"},
"south": {"uv": [0, 0, 16, 2], "texture": "#0"},
"west": {"uv": [0, 0, 16, 2], "texture": "#0"},
"up": {"uv": [0, 0, 16, 16], "texture": "#0"}
}
}
]
}

View File

@@ -0,0 +1,7 @@
{
"credit": "made by Motschen",
"parent": "rocks:block/snowy_geyser_off",
"textures": {
"2": "block/magma"
}
}

View File

@@ -1,6 +1,334 @@
{ {
"parent": "block/air", "credit": "made by Motschen",
"textures": { "textures": {
"0": "rocks:block/starfish_orange",
"particle": "rocks:block/starfish_orange" "particle": "rocks:block/starfish_orange"
} },
"elements": [
{
"from": [4.5, 0, 10.5],
"to": [5.5, 1, 14.5],
"rotation": {"angle": 0, "axis": "y", "origin": [5, 0, 10]},
"faces": {
"north": {"uv": [4, 4, 5, 5], "texture": "#0"},
"east": {"uv": [0, 4, 4, 5], "texture": "#0"},
"south": {"uv": [9, 4, 10, 5], "texture": "#0"},
"west": {"uv": [5, 4, 9, 5], "texture": "#0"},
"up": {"uv": [5, 4, 4, 0], "texture": "#0"},
"down": {"uv": [6, 0, 5, 4], "texture": "#0"}
}
},
{
"from": [4.75, 0.02, 10.5],
"to": [5.75, 1.02, 13.5],
"rotation": {"angle": 0, "axis": "y", "origin": [6, 0, 10]},
"faces": {
"north": {"uv": [4, 4, 5, 5], "texture": "#0"},
"east": {"uv": [1, 4, 4, 5], "texture": "#0"},
"south": {"uv": [8, 4, 9, 5], "texture": "#0"},
"west": {"uv": [5, 4, 8, 5], "texture": "#0"},
"up": {"uv": [5, 4, 4, 1], "texture": "#0"},
"down": {"uv": [6, 1, 5, 4], "texture": "#0"}
}
},
{
"from": [4, -0.01, 10.5],
"to": [6, 0.99, 12.5],
"rotation": {"angle": 0, "axis": "y", "origin": [7, 0, 10]},
"faces": {
"north": {"uv": [3, 4, 5, 5], "texture": "#0"},
"east": {"uv": [1, 4, 3, 5], "texture": "#0"},
"south": {"uv": [7, 4, 9, 5], "texture": "#0"},
"west": {"uv": [5, 4, 7, 5], "texture": "#0"},
"up": {"uv": [5, 4, 3, 2], "texture": "#0"},
"down": {"uv": [7, 2, 5, 4], "texture": "#0"}
}
},
{
"from": [4.25, 0.01, 10.5],
"to": [5.25, 1.01, 13.5],
"rotation": {"angle": 0, "axis": "y", "origin": [5, 0, 10]},
"faces": {
"north": {"uv": [4, 4, 5, 5], "texture": "#0"},
"east": {"uv": [1, 4, 4, 5], "texture": "#0"},
"south": {"uv": [8, 4, 9, 5], "texture": "#0"},
"west": {"uv": [5, 4, 8, 5], "texture": "#0"},
"up": {"uv": [5, 4, 4, 1], "texture": "#0"},
"down": {"uv": [6, 1, 5, 4], "texture": "#0"}
}
},
{
"from": [5.75, 0, 10],
"to": [6.75, 1, 14],
"rotation": {"angle": 72.5, "axis": "y", "origin": [6, 0, 10]},
"faces": {
"north": {"uv": [4, 4, 5, 5], "texture": "#0"},
"east": {"uv": [0, 4, 4, 5], "texture": "#0"},
"south": {"uv": [9, 4, 10, 5], "texture": "#0"},
"west": {"uv": [5, 4, 9, 5], "texture": "#0"},
"up": {"uv": [5, 4, 4, 0], "texture": "#0"},
"down": {"uv": [6, 0, 5, 4], "texture": "#0"}
}
},
{
"from": [4.5, 0.02, 9],
"to": [5.5, 1.02, 12],
"rotation": {"angle": 72.5, "axis": "y", "origin": [6, 0, 9]},
"faces": {
"north": {"uv": [4, 4, 5, 5], "texture": "#0"},
"east": {"uv": [1, 4, 4, 5], "texture": "#0"},
"south": {"uv": [8, 4, 9, 5], "texture": "#0"},
"west": {"uv": [5, 4, 8, 5], "texture": "#0"},
"up": {"uv": [5, 4, 4, 1], "texture": "#0"},
"down": {"uv": [6, 1, 5, 4], "texture": "#0"}
}
},
{
"from": [5, 0.01, 9],
"to": [6, 1.01, 12],
"rotation": {"angle": 72.5, "axis": "y", "origin": [6, 0, 9]},
"faces": {
"north": {"uv": [4, 4, 5, 5], "texture": "#0"},
"east": {"uv": [1, 4, 4, 5], "texture": "#0"},
"south": {"uv": [8, 4, 9, 5], "texture": "#0"},
"west": {"uv": [5, 4, 8, 5], "texture": "#0"},
"up": {"uv": [5, 4, 4, 1], "texture": "#0"},
"down": {"uv": [6, 1, 5, 4], "texture": "#0"}
}
},
{
"from": [1.4, -0.01, 9],
"to": [3.4, 0.99, 11],
"rotation": {"angle": 72.5, "axis": "y", "origin": [4.6, 0, 7]},
"faces": {
"north": {"uv": [3, 4, 5, 5], "texture": "#0"},
"east": {"uv": [1, 4, 3, 5], "texture": "#0"},
"south": {"uv": [7, 4, 9, 5], "texture": "#0"},
"west": {"uv": [5, 4, 7, 5], "texture": "#0"},
"up": {"uv": [5, 4, 3, 2], "texture": "#0"},
"down": {"uv": [7, 2, 5, 4], "texture": "#0"}
}
},
{
"from": [3.5, 0, 10],
"to": [4.5, 1, 14],
"rotation": {"angle": -72.5, "axis": "y", "origin": [4, 0, 10]},
"faces": {
"north": {"uv": [4, 4, 5, 5], "texture": "#0"},
"east": {"uv": [0, 4, 4, 5], "texture": "#0"},
"south": {"uv": [9, 4, 10, 5], "texture": "#0"},
"west": {"uv": [5, 4, 9, 5], "texture": "#0"},
"up": {"uv": [5, 4, 4, 0], "texture": "#0"},
"down": {"uv": [6, 0, 5, 4], "texture": "#0"}
}
},
{
"from": [2.75, 0.02, 10.5],
"to": [3.75, 1.02, 13.5],
"rotation": {"angle": -72.5, "axis": "y", "origin": [4, 0, 10.5]},
"faces": {
"north": {"uv": [4, 4, 5, 5], "texture": "#0"},
"east": {"uv": [1, 4, 4, 5], "texture": "#0"},
"south": {"uv": [8, 4, 9, 5], "texture": "#0"},
"west": {"uv": [5, 4, 8, 5], "texture": "#0"},
"up": {"uv": [5, 4, 4, 1], "texture": "#0"},
"down": {"uv": [6, 1, 5, 4], "texture": "#0"}
}
},
{
"from": [3.25, 0.01, 10.5],
"to": [4.25, 1.01, 13.5],
"rotation": {"angle": -72.5, "axis": "y", "origin": [4, 0, 10.5]},
"faces": {
"north": {"uv": [4, 4, 5, 5], "texture": "#0"},
"east": {"uv": [1, 4, 4, 5], "texture": "#0"},
"south": {"uv": [8, 4, 9, 5], "texture": "#0"},
"west": {"uv": [5, 4, 8, 5], "texture": "#0"},
"up": {"uv": [5, 4, 4, 1], "texture": "#0"},
"down": {"uv": [6, 1, 5, 4], "texture": "#0"}
}
},
{
"from": [4, -0.01, 13],
"to": [6, 0.99, 15],
"rotation": {"angle": -72.5, "axis": "y", "origin": [7, 0, 11]},
"faces": {
"north": {"uv": [3, 4, 5, 5], "texture": "#0"},
"east": {"uv": [1, 4, 3, 5], "texture": "#0"},
"south": {"uv": [7, 4, 9, 5], "texture": "#0"},
"west": {"uv": [5, 4, 7, 5], "texture": "#0"},
"up": {"uv": [5, 4, 3, 2], "texture": "#0"},
"down": {"uv": [7, 2, 5, 4], "texture": "#0"}
}
},
{
"from": [3.5, 0, 7.4],
"to": [4.5, 1, 11.4],
"rotation": {"angle": -145, "axis": "y", "origin": [4, 0, 8]},
"faces": {
"north": {"uv": [4, 4, 5, 5], "texture": "#0"},
"east": {"uv": [0, 4, 4, 5], "texture": "#0"},
"south": {"uv": [9, 4, 10, 5], "texture": "#0"},
"west": {"uv": [5, 4, 9, 5], "texture": "#0"},
"up": {"uv": [5, 4, 4, 0], "texture": "#0"},
"down": {"uv": [6, 0, 5, 4], "texture": "#0"}
}
},
{
"from": [1.25, 0.02, 8.7],
"to": [2.25, 1.02, 11.7],
"rotation": {"angle": -145, "axis": "y", "origin": [3, 0, 9]},
"faces": {
"north": {"uv": [4, 4, 5, 5], "texture": "#0"},
"east": {"uv": [1, 4, 4, 5], "texture": "#0"},
"south": {"uv": [8, 4, 9, 5], "texture": "#0"},
"west": {"uv": [5, 4, 8, 5], "texture": "#0"},
"up": {"uv": [5, 4, 4, 1], "texture": "#0"},
"down": {"uv": [6, 1, 5, 4], "texture": "#0"}
}
},
{
"from": [3.25, 0.01, 7.4],
"to": [4.25, 1.01, 10.4],
"rotation": {"angle": -145, "axis": "y", "origin": [4, 0, 8]},
"faces": {
"north": {"uv": [4, 4, 5, 5], "texture": "#0"},
"east": {"uv": [1, 4, 4, 5], "texture": "#0"},
"south": {"uv": [8, 4, 9, 5], "texture": "#0"},
"west": {"uv": [5, 4, 8, 5], "texture": "#0"},
"up": {"uv": [5, 4, 4, 1], "texture": "#0"},
"down": {"uv": [6, 1, 5, 4], "texture": "#0"}
}
},
{
"from": [0, -0.01, 10.5],
"to": [2, 0.99, 12.5],
"rotation": {"angle": -145, "axis": "y", "origin": [3, 0, 10]},
"faces": {
"north": {"uv": [3, 4, 5, 5], "texture": "#0"},
"east": {"uv": [1, 4, 3, 5], "texture": "#0"},
"south": {"uv": [7, 4, 9, 5], "texture": "#0"},
"west": {"uv": [5, 4, 7, 5], "texture": "#0"},
"up": {"uv": [5, 4, 3, 2], "texture": "#0"},
"down": {"uv": [7, 2, 5, 4], "texture": "#0"}
}
},
{
"from": [7.35, 0, 7.3],
"to": [8.35, 1, 11.3],
"rotation": {"angle": 145, "axis": "y", "origin": [7, 0, 8]},
"faces": {
"north": {"uv": [4, 4, 5, 5], "texture": "#0"},
"east": {"uv": [0, 4, 4, 5], "texture": "#0"},
"south": {"uv": [9, 4, 10, 5], "texture": "#0"},
"west": {"uv": [5, 4, 9, 5], "texture": "#0"},
"up": {"uv": [5, 4, 4, 0], "texture": "#0"},
"down": {"uv": [6, 0, 5, 4], "texture": "#0"}
}
},
{
"from": [3.5, 0.02, 8],
"to": [4.5, 1.02, 11],
"rotation": {"angle": 145, "axis": "y", "origin": [5, 0, 8]},
"faces": {
"north": {"uv": [4, 4, 5, 5], "texture": "#0"},
"east": {"uv": [1, 4, 4, 5], "texture": "#0"},
"south": {"uv": [8, 4, 9, 5], "texture": "#0"},
"west": {"uv": [5, 4, 8, 5], "texture": "#0"},
"up": {"uv": [5, 4, 4, 1], "texture": "#0"},
"down": {"uv": [6, 1, 5, 4], "texture": "#0"}
}
},
{
"from": [4, 0.01, 8],
"to": [5, 1.01, 11],
"rotation": {"angle": 145, "axis": "y", "origin": [5, 0, 8]},
"faces": {
"north": {"uv": [4, 4, 5, 5], "texture": "#0"},
"east": {"uv": [1, 4, 4, 5], "texture": "#0"},
"south": {"uv": [8, 4, 9, 5], "texture": "#0"},
"west": {"uv": [5, 4, 8, 5], "texture": "#0"},
"up": {"uv": [5, 4, 4, 1], "texture": "#0"},
"down": {"uv": [6, 1, 5, 4], "texture": "#0"}
}
},
{
"from": [2, -0.01, 10.5],
"to": [4, 0.99, 12.5],
"rotation": {"angle": 145, "axis": "y", "origin": [4, 0, 9]},
"faces": {
"north": {"uv": [3, 4, 5, 5], "texture": "#0"},
"east": {"uv": [1, 4, 3, 5], "texture": "#0"},
"south": {"uv": [7, 4, 9, 5], "texture": "#0"},
"west": {"uv": [5, 4, 7, 5], "texture": "#0"},
"up": {"uv": [5, 4, 3, 2], "texture": "#0"},
"down": {"uv": [7, 2, 5, 4], "texture": "#0"}
}
},
{
"from": [4, 0.005, 8.5],
"to": [6, 1.005, 10.5],
"rotation": {"angle": 0, "axis": "y", "origin": [5, 0, 9]},
"faces": {
"north": {"uv": [3, 4, 5, 5], "texture": "#0"},
"east": {"uv": [1, 4, 3, 5], "texture": "#0"},
"south": {"uv": [7, 4, 9, 5], "texture": "#0"},
"west": {"uv": [5, 4, 7, 5], "texture": "#0"},
"up": {"uv": [5, 4, 3, 2], "texture": "#0"},
"down": {"uv": [7, 2, 5, 4], "texture": "#0"}
}
},
{
"from": [3.8, 0, 8],
"to": [5.8, 1, 10],
"rotation": {"angle": 0, "axis": "y", "origin": [5, 0, 10]},
"faces": {
"north": {"uv": [3, 4, 5, 5], "texture": "#0"},
"east": {"uv": [1, 4, 3, 5], "texture": "#0"},
"south": {"uv": [7, 4, 9, 5], "texture": "#0"},
"west": {"uv": [5, 4, 7, 5], "texture": "#0"},
"up": {"uv": [5, 4, 3, 2], "texture": "#0"},
"down": {"uv": [7, 2, 5, 4], "texture": "#0"}
}
},
{
"from": [5.2, 0, 8.25],
"to": [6.2, 1, 10.25],
"rotation": {"angle": 0, "axis": "y", "origin": [5, 0, 10]},
"faces": {
"north": {"uv": [4, 4, 5, 5], "texture": "#0"},
"east": {"uv": [2, 4, 4, 5], "texture": "#0"},
"south": {"uv": [7, 4, 8, 5], "texture": "#0"},
"west": {"uv": [5, 4, 7, 5], "texture": "#0"},
"up": {"uv": [5, 4, 4, 2], "texture": "#0"},
"down": {"uv": [6, 2, 5, 4], "texture": "#0"}
}
}
],
"groups": [
{
"name": "side1",
"origin": [0, 0, 0],
"children": [0, 1, 2, 3]
},
{
"name": "side2",
"origin": [0, 0, 0],
"children": [4, 5, 6, 7]
},
{
"name": "side3",
"origin": [0, 0, 0],
"children": [8, 9, 10, 11]
},
{
"name": "side4",
"origin": [0, 0, 0],
"children": [12, 13, 14, 15]
},
{
"name": "side5",
"origin": [0, 0, 0],
"children": [16, 17, 18, 19]
}, 20, 21, 22]
} }

View File

@@ -1,6 +1,334 @@
{ {
"parent": "block/air", "credit": "made by Motschen",
"textures": { "textures": {
"0": "rocks:block/starfish_pink",
"particle": "rocks:block/starfish_pink" "particle": "rocks:block/starfish_pink"
} },
"elements": [
{
"from": [7.5, 0, 8.5],
"to": [8.5, 1, 12.5],
"rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]},
"faces": {
"north": {"uv": [4, 4, 5, 5], "texture": "#0"},
"east": {"uv": [0, 4, 4, 5], "texture": "#0"},
"south": {"uv": [9, 4, 10, 5], "texture": "#0"},
"west": {"uv": [5, 4, 9, 5], "texture": "#0"},
"up": {"uv": [5, 4, 4, 0], "texture": "#0"},
"down": {"uv": [6, 0, 5, 4], "texture": "#0"}
}
},
{
"from": [7.75, 0.02, 8.5],
"to": [8.75, 1.02, 11.5],
"rotation": {"angle": 0, "axis": "y", "origin": [9, 0, 8]},
"faces": {
"north": {"uv": [4, 4, 5, 5], "texture": "#0"},
"east": {"uv": [1, 4, 4, 5], "texture": "#0"},
"south": {"uv": [8, 4, 9, 5], "texture": "#0"},
"west": {"uv": [5, 4, 8, 5], "texture": "#0"},
"up": {"uv": [5, 4, 4, 1], "texture": "#0"},
"down": {"uv": [6, 1, 5, 4], "texture": "#0"}
}
},
{
"from": [7, -0.01, 8.5],
"to": [9, 0.99, 10.5],
"rotation": {"angle": 0, "axis": "y", "origin": [10, 0, 8]},
"faces": {
"north": {"uv": [3, 4, 5, 5], "texture": "#0"},
"east": {"uv": [1, 4, 3, 5], "texture": "#0"},
"south": {"uv": [7, 4, 9, 5], "texture": "#0"},
"west": {"uv": [5, 4, 7, 5], "texture": "#0"},
"up": {"uv": [5, 4, 3, 2], "texture": "#0"},
"down": {"uv": [7, 2, 5, 4], "texture": "#0"}
}
},
{
"from": [7.25, 0.01, 8.5],
"to": [8.25, 1.01, 11.5],
"rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]},
"faces": {
"north": {"uv": [4, 4, 5, 5], "texture": "#0"},
"east": {"uv": [1, 4, 4, 5], "texture": "#0"},
"south": {"uv": [8, 4, 9, 5], "texture": "#0"},
"west": {"uv": [5, 4, 8, 5], "texture": "#0"},
"up": {"uv": [5, 4, 4, 1], "texture": "#0"},
"down": {"uv": [6, 1, 5, 4], "texture": "#0"}
}
},
{
"from": [8.75, 0, 8],
"to": [9.75, 1, 12],
"rotation": {"angle": 72.5, "axis": "y", "origin": [9, 0, 8]},
"faces": {
"north": {"uv": [4, 4, 5, 5], "texture": "#0"},
"east": {"uv": [0, 4, 4, 5], "texture": "#0"},
"south": {"uv": [9, 4, 10, 5], "texture": "#0"},
"west": {"uv": [5, 4, 9, 5], "texture": "#0"},
"up": {"uv": [5, 4, 4, 0], "texture": "#0"},
"down": {"uv": [6, 0, 5, 4], "texture": "#0"}
}
},
{
"from": [7.5, 0.02, 7],
"to": [8.5, 1.02, 10],
"rotation": {"angle": 72.5, "axis": "y", "origin": [9, 0, 7]},
"faces": {
"north": {"uv": [4, 4, 5, 5], "texture": "#0"},
"east": {"uv": [1, 4, 4, 5], "texture": "#0"},
"south": {"uv": [8, 4, 9, 5], "texture": "#0"},
"west": {"uv": [5, 4, 8, 5], "texture": "#0"},
"up": {"uv": [5, 4, 4, 1], "texture": "#0"},
"down": {"uv": [6, 1, 5, 4], "texture": "#0"}
}
},
{
"from": [8, 0.01, 7],
"to": [9, 1.01, 10],
"rotation": {"angle": 72.5, "axis": "y", "origin": [9, 0, 7]},
"faces": {
"north": {"uv": [4, 4, 5, 5], "texture": "#0"},
"east": {"uv": [1, 4, 4, 5], "texture": "#0"},
"south": {"uv": [8, 4, 9, 5], "texture": "#0"},
"west": {"uv": [5, 4, 8, 5], "texture": "#0"},
"up": {"uv": [5, 4, 4, 1], "texture": "#0"},
"down": {"uv": [6, 1, 5, 4], "texture": "#0"}
}
},
{
"from": [4.4, -0.01, 7],
"to": [6.4, 0.99, 9],
"rotation": {"angle": 72.5, "axis": "y", "origin": [7.6, 0, 5]},
"faces": {
"north": {"uv": [3, 4, 5, 5], "texture": "#0"},
"east": {"uv": [1, 4, 3, 5], "texture": "#0"},
"south": {"uv": [7, 4, 9, 5], "texture": "#0"},
"west": {"uv": [5, 4, 7, 5], "texture": "#0"},
"up": {"uv": [5, 4, 3, 2], "texture": "#0"},
"down": {"uv": [7, 2, 5, 4], "texture": "#0"}
}
},
{
"from": [6.5, 0, 8],
"to": [7.5, 1, 12],
"rotation": {"angle": -72.5, "axis": "y", "origin": [7, 0, 8]},
"faces": {
"north": {"uv": [4, 4, 5, 5], "texture": "#0"},
"east": {"uv": [0, 4, 4, 5], "texture": "#0"},
"south": {"uv": [9, 4, 10, 5], "texture": "#0"},
"west": {"uv": [5, 4, 9, 5], "texture": "#0"},
"up": {"uv": [5, 4, 4, 0], "texture": "#0"},
"down": {"uv": [6, 0, 5, 4], "texture": "#0"}
}
},
{
"from": [5.75, 0.02, 8.5],
"to": [6.75, 1.02, 11.5],
"rotation": {"angle": -72.5, "axis": "y", "origin": [7, 0, 8.5]},
"faces": {
"north": {"uv": [4, 4, 5, 5], "texture": "#0"},
"east": {"uv": [1, 4, 4, 5], "texture": "#0"},
"south": {"uv": [8, 4, 9, 5], "texture": "#0"},
"west": {"uv": [5, 4, 8, 5], "texture": "#0"},
"up": {"uv": [5, 4, 4, 1], "texture": "#0"},
"down": {"uv": [6, 1, 5, 4], "texture": "#0"}
}
},
{
"from": [6.25, 0.01, 8.5],
"to": [7.25, 1.01, 11.5],
"rotation": {"angle": -72.5, "axis": "y", "origin": [7, 0, 8.5]},
"faces": {
"north": {"uv": [4, 4, 5, 5], "texture": "#0"},
"east": {"uv": [1, 4, 4, 5], "texture": "#0"},
"south": {"uv": [8, 4, 9, 5], "texture": "#0"},
"west": {"uv": [5, 4, 8, 5], "texture": "#0"},
"up": {"uv": [5, 4, 4, 1], "texture": "#0"},
"down": {"uv": [6, 1, 5, 4], "texture": "#0"}
}
},
{
"from": [7, -0.01, 11],
"to": [9, 0.99, 13],
"rotation": {"angle": -72.5, "axis": "y", "origin": [10, 0, 9]},
"faces": {
"north": {"uv": [3, 4, 5, 5], "texture": "#0"},
"east": {"uv": [1, 4, 3, 5], "texture": "#0"},
"south": {"uv": [7, 4, 9, 5], "texture": "#0"},
"west": {"uv": [5, 4, 7, 5], "texture": "#0"},
"up": {"uv": [5, 4, 3, 2], "texture": "#0"},
"down": {"uv": [7, 2, 5, 4], "texture": "#0"}
}
},
{
"from": [6.5, 0, 5.4],
"to": [7.5, 1, 9.4],
"rotation": {"angle": -145, "axis": "y", "origin": [7, 0, 6]},
"faces": {
"north": {"uv": [4, 4, 5, 5], "texture": "#0"},
"east": {"uv": [0, 4, 4, 5], "texture": "#0"},
"south": {"uv": [9, 4, 10, 5], "texture": "#0"},
"west": {"uv": [5, 4, 9, 5], "texture": "#0"},
"up": {"uv": [5, 4, 4, 0], "texture": "#0"},
"down": {"uv": [6, 0, 5, 4], "texture": "#0"}
}
},
{
"from": [4.25, 0.02, 6.7],
"to": [5.25, 1.02, 9.7],
"rotation": {"angle": -145, "axis": "y", "origin": [6, 0, 7]},
"faces": {
"north": {"uv": [4, 4, 5, 5], "texture": "#0"},
"east": {"uv": [1, 4, 4, 5], "texture": "#0"},
"south": {"uv": [8, 4, 9, 5], "texture": "#0"},
"west": {"uv": [5, 4, 8, 5], "texture": "#0"},
"up": {"uv": [5, 4, 4, 1], "texture": "#0"},
"down": {"uv": [6, 1, 5, 4], "texture": "#0"}
}
},
{
"from": [6.25, 0.01, 5.4],
"to": [7.25, 1.01, 8.4],
"rotation": {"angle": -145, "axis": "y", "origin": [7, 0, 6]},
"faces": {
"north": {"uv": [4, 4, 5, 5], "texture": "#0"},
"east": {"uv": [1, 4, 4, 5], "texture": "#0"},
"south": {"uv": [8, 4, 9, 5], "texture": "#0"},
"west": {"uv": [5, 4, 8, 5], "texture": "#0"},
"up": {"uv": [5, 4, 4, 1], "texture": "#0"},
"down": {"uv": [6, 1, 5, 4], "texture": "#0"}
}
},
{
"from": [3, -0.01, 8.5],
"to": [5, 0.99, 10.5],
"rotation": {"angle": -145, "axis": "y", "origin": [6, 0, 8]},
"faces": {
"north": {"uv": [3, 4, 5, 5], "texture": "#0"},
"east": {"uv": [1, 4, 3, 5], "texture": "#0"},
"south": {"uv": [7, 4, 9, 5], "texture": "#0"},
"west": {"uv": [5, 4, 7, 5], "texture": "#0"},
"up": {"uv": [5, 4, 3, 2], "texture": "#0"},
"down": {"uv": [7, 2, 5, 4], "texture": "#0"}
}
},
{
"from": [10.35, 0, 5.3],
"to": [11.35, 1, 9.3],
"rotation": {"angle": 145, "axis": "y", "origin": [10, 0, 6]},
"faces": {
"north": {"uv": [4, 4, 5, 5], "texture": "#0"},
"east": {"uv": [0, 4, 4, 5], "texture": "#0"},
"south": {"uv": [9, 4, 10, 5], "texture": "#0"},
"west": {"uv": [5, 4, 9, 5], "texture": "#0"},
"up": {"uv": [5, 4, 4, 0], "texture": "#0"},
"down": {"uv": [6, 0, 5, 4], "texture": "#0"}
}
},
{
"from": [6.5, 0.02, 6],
"to": [7.5, 1.02, 9],
"rotation": {"angle": 145, "axis": "y", "origin": [8, 0, 6]},
"faces": {
"north": {"uv": [4, 4, 5, 5], "texture": "#0"},
"east": {"uv": [1, 4, 4, 5], "texture": "#0"},
"south": {"uv": [8, 4, 9, 5], "texture": "#0"},
"west": {"uv": [5, 4, 8, 5], "texture": "#0"},
"up": {"uv": [5, 4, 4, 1], "texture": "#0"},
"down": {"uv": [6, 1, 5, 4], "texture": "#0"}
}
},
{
"from": [7, 0.01, 6],
"to": [8, 1.01, 9],
"rotation": {"angle": 145, "axis": "y", "origin": [8, 0, 6]},
"faces": {
"north": {"uv": [4, 4, 5, 5], "texture": "#0"},
"east": {"uv": [1, 4, 4, 5], "texture": "#0"},
"south": {"uv": [8, 4, 9, 5], "texture": "#0"},
"west": {"uv": [5, 4, 8, 5], "texture": "#0"},
"up": {"uv": [5, 4, 4, 1], "texture": "#0"},
"down": {"uv": [6, 1, 5, 4], "texture": "#0"}
}
},
{
"from": [5, -0.01, 8.5],
"to": [7, 0.99, 10.5],
"rotation": {"angle": 145, "axis": "y", "origin": [7, 0, 7]},
"faces": {
"north": {"uv": [3, 4, 5, 5], "texture": "#0"},
"east": {"uv": [1, 4, 3, 5], "texture": "#0"},
"south": {"uv": [7, 4, 9, 5], "texture": "#0"},
"west": {"uv": [5, 4, 7, 5], "texture": "#0"},
"up": {"uv": [5, 4, 3, 2], "texture": "#0"},
"down": {"uv": [7, 2, 5, 4], "texture": "#0"}
}
},
{
"from": [7, 0.005, 6.5],
"to": [9, 1.005, 8.5],
"rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 7]},
"faces": {
"north": {"uv": [3, 4, 5, 5], "texture": "#0"},
"east": {"uv": [1, 4, 3, 5], "texture": "#0"},
"south": {"uv": [7, 4, 9, 5], "texture": "#0"},
"west": {"uv": [5, 4, 7, 5], "texture": "#0"},
"up": {"uv": [5, 4, 3, 2], "texture": "#0"},
"down": {"uv": [7, 2, 5, 4], "texture": "#0"}
}
},
{
"from": [6.8, 0, 6],
"to": [8.8, 1, 8],
"rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]},
"faces": {
"north": {"uv": [3, 4, 5, 5], "texture": "#0"},
"east": {"uv": [1, 4, 3, 5], "texture": "#0"},
"south": {"uv": [7, 4, 9, 5], "texture": "#0"},
"west": {"uv": [5, 4, 7, 5], "texture": "#0"},
"up": {"uv": [5, 4, 3, 2], "texture": "#0"},
"down": {"uv": [7, 2, 5, 4], "texture": "#0"}
}
},
{
"from": [8.2, 0, 6.25],
"to": [9.2, 1, 8.25],
"rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]},
"faces": {
"north": {"uv": [4, 4, 5, 5], "texture": "#0"},
"east": {"uv": [2, 4, 4, 5], "texture": "#0"},
"south": {"uv": [7, 4, 8, 5], "texture": "#0"},
"west": {"uv": [5, 4, 7, 5], "texture": "#0"},
"up": {"uv": [5, 4, 4, 2], "texture": "#0"},
"down": {"uv": [6, 2, 5, 4], "texture": "#0"}
}
}
],
"groups": [
{
"name": "side1",
"origin": [0, 0, 0],
"children": [0, 1, 2, 3]
},
{
"name": "side2",
"origin": [0, 0, 0],
"children": [4, 5, 6, 7]
},
{
"name": "side3",
"origin": [0, 0, 0],
"children": [8, 9, 10, 11]
},
{
"name": "side4",
"origin": [0, 0, 0],
"children": [12, 13, 14, 15]
},
{
"name": "side5",
"origin": [0, 0, 0],
"children": [16, 17, 18, 19]
}, 20, 21, 22]
} }

View File

@@ -1,6 +1,334 @@
{ {
"parent": "block/air", "credit": "made by Motschen",
"textures": { "textures": {
"0": "rocks:block/starfish_red",
"particle": "rocks:block/starfish_red" "particle": "rocks:block/starfish_red"
} },
"elements": [
{
"from": [9.5, 0, 6.5],
"to": [10.5, 1, 10.5],
"rotation": {"angle": 0, "axis": "y", "origin": [10, 0, 6]},
"faces": {
"north": {"uv": [4, 4, 5, 5], "texture": "#0"},
"east": {"uv": [0, 4, 4, 5], "texture": "#0"},
"south": {"uv": [9, 4, 10, 5], "texture": "#0"},
"west": {"uv": [5, 4, 9, 5], "texture": "#0"},
"up": {"uv": [5, 4, 4, 0], "texture": "#0"},
"down": {"uv": [6, 0, 5, 4], "texture": "#0"}
}
},
{
"from": [9.75, 0.02, 6.5],
"to": [10.75, 1.02, 9.5],
"rotation": {"angle": 0, "axis": "y", "origin": [11, 0, 6]},
"faces": {
"north": {"uv": [4, 4, 5, 5], "texture": "#0"},
"east": {"uv": [1, 4, 4, 5], "texture": "#0"},
"south": {"uv": [8, 4, 9, 5], "texture": "#0"},
"west": {"uv": [5, 4, 8, 5], "texture": "#0"},
"up": {"uv": [5, 4, 4, 1], "texture": "#0"},
"down": {"uv": [6, 1, 5, 4], "texture": "#0"}
}
},
{
"from": [9, -0.01, 6.5],
"to": [11, 0.99, 8.5],
"rotation": {"angle": 0, "axis": "y", "origin": [12, 0, 6]},
"faces": {
"north": {"uv": [3, 4, 5, 5], "texture": "#0"},
"east": {"uv": [1, 4, 3, 5], "texture": "#0"},
"south": {"uv": [7, 4, 9, 5], "texture": "#0"},
"west": {"uv": [5, 4, 7, 5], "texture": "#0"},
"up": {"uv": [5, 4, 3, 2], "texture": "#0"},
"down": {"uv": [7, 2, 5, 4], "texture": "#0"}
}
},
{
"from": [9.25, 0.01, 6.5],
"to": [10.25, 1.01, 9.5],
"rotation": {"angle": 0, "axis": "y", "origin": [10, 0, 6]},
"faces": {
"north": {"uv": [4, 4, 5, 5], "texture": "#0"},
"east": {"uv": [1, 4, 4, 5], "texture": "#0"},
"south": {"uv": [8, 4, 9, 5], "texture": "#0"},
"west": {"uv": [5, 4, 8, 5], "texture": "#0"},
"up": {"uv": [5, 4, 4, 1], "texture": "#0"},
"down": {"uv": [6, 1, 5, 4], "texture": "#0"}
}
},
{
"from": [10.75, 0, 6],
"to": [11.75, 1, 10],
"rotation": {"angle": 72.5, "axis": "y", "origin": [11, 0, 6]},
"faces": {
"north": {"uv": [4, 4, 5, 5], "texture": "#0"},
"east": {"uv": [0, 4, 4, 5], "texture": "#0"},
"south": {"uv": [9, 4, 10, 5], "texture": "#0"},
"west": {"uv": [5, 4, 9, 5], "texture": "#0"},
"up": {"uv": [5, 4, 4, 0], "texture": "#0"},
"down": {"uv": [6, 0, 5, 4], "texture": "#0"}
}
},
{
"from": [9.5, 0.02, 5],
"to": [10.5, 1.02, 8],
"rotation": {"angle": 72.5, "axis": "y", "origin": [11, 0, 5]},
"faces": {
"north": {"uv": [4, 4, 5, 5], "texture": "#0"},
"east": {"uv": [1, 4, 4, 5], "texture": "#0"},
"south": {"uv": [8, 4, 9, 5], "texture": "#0"},
"west": {"uv": [5, 4, 8, 5], "texture": "#0"},
"up": {"uv": [5, 4, 4, 1], "texture": "#0"},
"down": {"uv": [6, 1, 5, 4], "texture": "#0"}
}
},
{
"from": [10, 0.01, 5],
"to": [11, 1.01, 8],
"rotation": {"angle": 72.5, "axis": "y", "origin": [11, 0, 5]},
"faces": {
"north": {"uv": [4, 4, 5, 5], "texture": "#0"},
"east": {"uv": [1, 4, 4, 5], "texture": "#0"},
"south": {"uv": [8, 4, 9, 5], "texture": "#0"},
"west": {"uv": [5, 4, 8, 5], "texture": "#0"},
"up": {"uv": [5, 4, 4, 1], "texture": "#0"},
"down": {"uv": [6, 1, 5, 4], "texture": "#0"}
}
},
{
"from": [6.4, -0.01, 5],
"to": [8.4, 0.99, 7],
"rotation": {"angle": 72.5, "axis": "y", "origin": [9.6, 0, 3]},
"faces": {
"north": {"uv": [3, 4, 5, 5], "texture": "#0"},
"east": {"uv": [1, 4, 3, 5], "texture": "#0"},
"south": {"uv": [7, 4, 9, 5], "texture": "#0"},
"west": {"uv": [5, 4, 7, 5], "texture": "#0"},
"up": {"uv": [5, 4, 3, 2], "texture": "#0"},
"down": {"uv": [7, 2, 5, 4], "texture": "#0"}
}
},
{
"from": [8.5, 0, 6],
"to": [9.5, 1, 10],
"rotation": {"angle": -72.5, "axis": "y", "origin": [9, 0, 6]},
"faces": {
"north": {"uv": [4, 4, 5, 5], "texture": "#0"},
"east": {"uv": [0, 4, 4, 5], "texture": "#0"},
"south": {"uv": [9, 4, 10, 5], "texture": "#0"},
"west": {"uv": [5, 4, 9, 5], "texture": "#0"},
"up": {"uv": [5, 4, 4, 0], "texture": "#0"},
"down": {"uv": [6, 0, 5, 4], "texture": "#0"}
}
},
{
"from": [7.75, 0.02, 6.5],
"to": [8.75, 1.02, 9.5],
"rotation": {"angle": -72.5, "axis": "y", "origin": [9, 0, 6.5]},
"faces": {
"north": {"uv": [4, 4, 5, 5], "texture": "#0"},
"east": {"uv": [1, 4, 4, 5], "texture": "#0"},
"south": {"uv": [8, 4, 9, 5], "texture": "#0"},
"west": {"uv": [5, 4, 8, 5], "texture": "#0"},
"up": {"uv": [5, 4, 4, 1], "texture": "#0"},
"down": {"uv": [6, 1, 5, 4], "texture": "#0"}
}
},
{
"from": [8.25, 0.01, 6.5],
"to": [9.25, 1.01, 9.5],
"rotation": {"angle": -72.5, "axis": "y", "origin": [9, 0, 6.5]},
"faces": {
"north": {"uv": [4, 4, 5, 5], "texture": "#0"},
"east": {"uv": [1, 4, 4, 5], "texture": "#0"},
"south": {"uv": [8, 4, 9, 5], "texture": "#0"},
"west": {"uv": [5, 4, 8, 5], "texture": "#0"},
"up": {"uv": [5, 4, 4, 1], "texture": "#0"},
"down": {"uv": [6, 1, 5, 4], "texture": "#0"}
}
},
{
"from": [9, -0.01, 9],
"to": [11, 0.99, 11],
"rotation": {"angle": -72.5, "axis": "y", "origin": [12, 0, 7]},
"faces": {
"north": {"uv": [3, 4, 5, 5], "texture": "#0"},
"east": {"uv": [1, 4, 3, 5], "texture": "#0"},
"south": {"uv": [7, 4, 9, 5], "texture": "#0"},
"west": {"uv": [5, 4, 7, 5], "texture": "#0"},
"up": {"uv": [5, 4, 3, 2], "texture": "#0"},
"down": {"uv": [7, 2, 5, 4], "texture": "#0"}
}
},
{
"from": [8.5, 0, 3.4],
"to": [9.5, 1, 7.4],
"rotation": {"angle": -145, "axis": "y", "origin": [9, 0, 4]},
"faces": {
"north": {"uv": [4, 4, 5, 5], "texture": "#0"},
"east": {"uv": [0, 4, 4, 5], "texture": "#0"},
"south": {"uv": [9, 4, 10, 5], "texture": "#0"},
"west": {"uv": [5, 4, 9, 5], "texture": "#0"},
"up": {"uv": [5, 4, 4, 0], "texture": "#0"},
"down": {"uv": [6, 0, 5, 4], "texture": "#0"}
}
},
{
"from": [6.25, 0.02, 4.7],
"to": [7.25, 1.02, 7.7],
"rotation": {"angle": -145, "axis": "y", "origin": [8, 0, 5]},
"faces": {
"north": {"uv": [4, 4, 5, 5], "texture": "#0"},
"east": {"uv": [1, 4, 4, 5], "texture": "#0"},
"south": {"uv": [8, 4, 9, 5], "texture": "#0"},
"west": {"uv": [5, 4, 8, 5], "texture": "#0"},
"up": {"uv": [5, 4, 4, 1], "texture": "#0"},
"down": {"uv": [6, 1, 5, 4], "texture": "#0"}
}
},
{
"from": [8.25, 0.01, 3.4],
"to": [9.25, 1.01, 6.4],
"rotation": {"angle": -145, "axis": "y", "origin": [9, 0, 4]},
"faces": {
"north": {"uv": [4, 4, 5, 5], "texture": "#0"},
"east": {"uv": [1, 4, 4, 5], "texture": "#0"},
"south": {"uv": [8, 4, 9, 5], "texture": "#0"},
"west": {"uv": [5, 4, 8, 5], "texture": "#0"},
"up": {"uv": [5, 4, 4, 1], "texture": "#0"},
"down": {"uv": [6, 1, 5, 4], "texture": "#0"}
}
},
{
"from": [5, -0.01, 6.5],
"to": [7, 0.99, 8.5],
"rotation": {"angle": -145, "axis": "y", "origin": [8, 0, 6]},
"faces": {
"north": {"uv": [3, 4, 5, 5], "texture": "#0"},
"east": {"uv": [1, 4, 3, 5], "texture": "#0"},
"south": {"uv": [7, 4, 9, 5], "texture": "#0"},
"west": {"uv": [5, 4, 7, 5], "texture": "#0"},
"up": {"uv": [5, 4, 3, 2], "texture": "#0"},
"down": {"uv": [7, 2, 5, 4], "texture": "#0"}
}
},
{
"from": [12.35, 0, 3.3],
"to": [13.35, 1, 7.3],
"rotation": {"angle": 145, "axis": "y", "origin": [12, 0, 4]},
"faces": {
"north": {"uv": [4, 4, 5, 5], "texture": "#0"},
"east": {"uv": [0, 4, 4, 5], "texture": "#0"},
"south": {"uv": [9, 4, 10, 5], "texture": "#0"},
"west": {"uv": [5, 4, 9, 5], "texture": "#0"},
"up": {"uv": [5, 4, 4, 0], "texture": "#0"},
"down": {"uv": [6, 0, 5, 4], "texture": "#0"}
}
},
{
"from": [8.5, 0.02, 4],
"to": [9.5, 1.02, 7],
"rotation": {"angle": 145, "axis": "y", "origin": [10, 0, 4]},
"faces": {
"north": {"uv": [4, 4, 5, 5], "texture": "#0"},
"east": {"uv": [1, 4, 4, 5], "texture": "#0"},
"south": {"uv": [8, 4, 9, 5], "texture": "#0"},
"west": {"uv": [5, 4, 8, 5], "texture": "#0"},
"up": {"uv": [5, 4, 4, 1], "texture": "#0"},
"down": {"uv": [6, 1, 5, 4], "texture": "#0"}
}
},
{
"from": [9, 0.01, 4],
"to": [10, 1.01, 7],
"rotation": {"angle": 145, "axis": "y", "origin": [10, 0, 4]},
"faces": {
"north": {"uv": [4, 4, 5, 5], "texture": "#0"},
"east": {"uv": [1, 4, 4, 5], "texture": "#0"},
"south": {"uv": [8, 4, 9, 5], "texture": "#0"},
"west": {"uv": [5, 4, 8, 5], "texture": "#0"},
"up": {"uv": [5, 4, 4, 1], "texture": "#0"},
"down": {"uv": [6, 1, 5, 4], "texture": "#0"}
}
},
{
"from": [7, -0.01, 6.5],
"to": [9, 0.99, 8.5],
"rotation": {"angle": 145, "axis": "y", "origin": [9, 0, 5]},
"faces": {
"north": {"uv": [3, 4, 5, 5], "texture": "#0"},
"east": {"uv": [1, 4, 3, 5], "texture": "#0"},
"south": {"uv": [7, 4, 9, 5], "texture": "#0"},
"west": {"uv": [5, 4, 7, 5], "texture": "#0"},
"up": {"uv": [5, 4, 3, 2], "texture": "#0"},
"down": {"uv": [7, 2, 5, 4], "texture": "#0"}
}
},
{
"from": [9, 0.005, 4.5],
"to": [11, 1.005, 6.5],
"rotation": {"angle": 0, "axis": "y", "origin": [10, 0, 5]},
"faces": {
"north": {"uv": [3, 4, 5, 5], "texture": "#0"},
"east": {"uv": [1, 4, 3, 5], "texture": "#0"},
"south": {"uv": [7, 4, 9, 5], "texture": "#0"},
"west": {"uv": [5, 4, 7, 5], "texture": "#0"},
"up": {"uv": [5, 4, 3, 2], "texture": "#0"},
"down": {"uv": [7, 2, 5, 4], "texture": "#0"}
}
},
{
"from": [8.8, 0, 4],
"to": [10.8, 1, 6],
"rotation": {"angle": 0, "axis": "y", "origin": [10, 0, 6]},
"faces": {
"north": {"uv": [3, 4, 5, 5], "texture": "#0"},
"east": {"uv": [1, 4, 3, 5], "texture": "#0"},
"south": {"uv": [7, 4, 9, 5], "texture": "#0"},
"west": {"uv": [5, 4, 7, 5], "texture": "#0"},
"up": {"uv": [5, 4, 3, 2], "texture": "#0"},
"down": {"uv": [7, 2, 5, 4], "texture": "#0"}
}
},
{
"from": [10.2, 0, 4.25],
"to": [11.2, 1, 6.25],
"rotation": {"angle": 0, "axis": "y", "origin": [10, 0, 6]},
"faces": {
"north": {"uv": [4, 4, 5, 5], "texture": "#0"},
"east": {"uv": [2, 4, 4, 5], "texture": "#0"},
"south": {"uv": [7, 4, 8, 5], "texture": "#0"},
"west": {"uv": [5, 4, 7, 5], "texture": "#0"},
"up": {"uv": [5, 4, 4, 2], "texture": "#0"},
"down": {"uv": [6, 2, 5, 4], "texture": "#0"}
}
}
],
"groups": [
{
"name": "side1",
"origin": [0, 0, 0],
"children": [0, 1, 2, 3]
},
{
"name": "side2",
"origin": [0, 0, 0],
"children": [4, 5, 6, 7]
},
{
"name": "side3",
"origin": [0, 0, 0],
"children": [8, 9, 10, 11]
},
{
"name": "side4",
"origin": [0, 0, 0],
"children": [12, 13, 14, 15]
},
{
"name": "side5",
"origin": [0, 0, 0],
"children": [16, 17, 18, 19]
}, 20, 21, 22]
} }

View File

@@ -0,0 +1,7 @@
{
"parent": "rocks:block/tiny_rock",
"textures": {
"0": "block/andesite",
"particle": "block/andesite"
}
}

View File

@@ -0,0 +1,7 @@
{
"parent": "rocks:block/tiny_rock",
"textures": {
"0": "block/diorite",
"particle": "block/diorite"
}
}

View File

@@ -0,0 +1,7 @@
{
"parent": "rocks:block/tiny_rock",
"textures": {
"0": "block/granite",
"particle": "block/granite"
}
}

View File

@@ -0,0 +1,7 @@
{
"parent": "rocks:block/tiny_rock",
"textures": {
"0": "block/gravel",
"particle": "block/gravel"
}
}

View File

@@ -0,0 +1,7 @@
{
"parent": "rocks:block/tiny_rock",
"textures": {
"0": "block/netherrack",
"particle": "block/netherrack"
}
}

View File

@@ -0,0 +1,7 @@
{
"parent": "rocks:block/tiny_rock",
"textures": {
"0": "block/soul_soil",
"particle": "block/soul_soil"
}
}

View File

@@ -0,0 +1,3 @@
{
"parent": "rocks:block/large_andesite_rock"
}

View File

@@ -0,0 +1,7 @@
{
"parent": "rocks:item/cobblestone_splitter",
"textures": {
"0": "block/andesite",
"particle": "block/andesite"
}
}

View File

@@ -0,0 +1,3 @@
{
"parent": "rocks:block/large_diorite_rock"
}

View File

@@ -0,0 +1,7 @@
{
"parent": "rocks:item/cobblestone_splitter",
"textures": {
"0": "block/diorite",
"particle": "block/diorite"
}
}

View File

@@ -0,0 +1,7 @@
{
"credit": "made by Motschen",
"parent": "rocks:block/geyser_off",
"textures": {
"2": "block/magma"
}
}

View File

@@ -0,0 +1,3 @@
{
"parent": "rocks:block/large_granite_rock"
}

View File

@@ -0,0 +1,7 @@
{
"parent": "rocks:item/cobblestone_splitter",
"textures": {
"0": "block/granite",
"particle": "block/granite"
}
}

View File

@@ -0,0 +1,3 @@
{
"parent": "rocks:block/large_gravel_rock"
}

View File

@@ -0,0 +1,7 @@
{
"credit": "made by Motschen",
"parent": "rocks:block/nether_geyser_off",
"textures": {
"2": "block/magma"
}
}

View File

@@ -0,0 +1,3 @@
{
"parent": "rocks:block/large_netherrack_rock"
}

View File

@@ -0,0 +1,7 @@
{
"parent": "rocks:item/cobblestone_splitter",
"textures": {
"0": "block/netherrack",
"particle": "block/netherrack"
}
}

View File

@@ -0,0 +1,3 @@
{
"parent": "rocks:block/large_soul_soil_rock"
}

Some files were not shown because too many files have changed in this diff Show More