mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-04-18 17:14:03 +02:00
Added changeling hive structures, carapace, and chitin
This commit is contained in:
parent
9f2017b724
commit
2f6ef0d9cf
72 changed files with 964 additions and 1 deletions
src/main
java/com/minelittlepony/unicopia
resources
assets/unicopia
blockstates
chiselled_chitin.jsonchiselled_chitin_hull.jsonchiselled_chitin_slab.jsonchiselled_chitin_stairs.jsonchitin.jsonsurface_chitin.json
lang
models
block
chiselled_chitin.jsonchiselled_chitin_hull.jsonchiselled_chitin_slab.jsonchiselled_chitin_slab_top.jsonchiselled_chitin_stairs.jsonchiselled_chitin_stairs_inner.jsonchiselled_chitin_stairs_outer.jsonchitin.jsonsurface_chitin.jsonsurface_chitin_snowy.json
item
textures
data
minecraft/tags/blocks/mineable
unicopia
loot_tables/blocks
chiselled_chitin.jsonchiselled_chitin_hull.jsonchiselled_chitin_slab.jsonchiselled_chitin_stairs.jsonchitin.jsonsurface_chitin.json
recipes
chiselled_chitin.jsonchiselled_chitin_hull.jsonchiselled_chitin_slab.jsonchiselled_chitin_stairs.jsonchitin.json
structures
abandoned_changeling_hive.nbtabandoned_changeling_hive_chamber1.nbtabandoned_changeling_hive_chamber2.nbtabandoned_changeling_hive_chamber3.nbtabandoned_changeling_hive_descent1.nbtabandoned_changeling_hive_offshoot1.nbtabandoned_changeling_hive_offshoot_elbow.nbtabandoned_changeling_hive_offshoot_elbow2.nbtabandoned_changeling_hive_offshoot_transition.nbtabandoned_changeling_hive_shaft1.nbtabandoned_changeling_hive_shaft2.nbtabandoned_changeling_hive_shaft_bottom.nbtabandoned_changeling_hive_tunnel_termination1.nbt
tags/items/groups
worldgen
structure
structure_set
template_pool/changeling_hive
|
@ -0,0 +1,68 @@
|
|||
package com.minelittlepony.unicopia.block;
|
||||
|
||||
import java.util.function.Supplier;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.BlockState;
|
||||
import net.minecraft.block.Blocks;
|
||||
import net.minecraft.block.SnowBlock;
|
||||
import net.minecraft.block.SpreadableBlock;
|
||||
import net.minecraft.registry.tag.FluidTags;
|
||||
import net.minecraft.server.world.ServerWorld;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.util.math.Direction;
|
||||
import net.minecraft.util.math.random.Random;
|
||||
import net.minecraft.world.WorldView;
|
||||
import net.minecraft.world.chunk.light.ChunkLightProvider;
|
||||
|
||||
public class GrowableBlock extends SpreadableBlock {
|
||||
|
||||
private final Supplier<Block> dead;
|
||||
|
||||
protected GrowableBlock(Settings settings, Supplier<Block> converted) {
|
||||
super(settings);
|
||||
this.dead = converted;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void randomTick(BlockState state, ServerWorld world, BlockPos pos, Random random) {
|
||||
if (!canSurvive(state, world, pos)) {
|
||||
world.setBlockState(pos, dead.get().getDefaultState());
|
||||
return;
|
||||
}
|
||||
|
||||
if (world.getLightLevel(pos.up()) >= 9) {
|
||||
BlockState blockState = getDefaultState();
|
||||
for (int i = 0; i < 4; i++) {
|
||||
BlockPos blockPos = pos.add(
|
||||
random.nextInt(3) - 1,
|
||||
random.nextInt(5) - 3,
|
||||
random.nextInt(3) - 1
|
||||
);
|
||||
|
||||
if (canSpread(blockState, world, blockPos)) {
|
||||
world.setBlockState(blockPos, blockState.with(SNOWY, world.getBlockState(blockPos.up()).isOf(Blocks.SNOW)));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private boolean canSpread(BlockState state, WorldView world, BlockPos pos) {
|
||||
return world.getBlockState(pos).isOf(dead.get())
|
||||
&& !world.getFluidState(pos.up()).isIn(FluidTags.WATER)
|
||||
&& canSurvive(state, world, pos);
|
||||
}
|
||||
|
||||
private boolean canSurvive(BlockState state, WorldView world, BlockPos pos) {
|
||||
BlockPos above = pos.up();
|
||||
BlockState stateAbove = world.getBlockState(above);
|
||||
if (stateAbove.isOf(Blocks.SNOW) && stateAbove.get(SnowBlock.LAYERS) == 1) {
|
||||
return true;
|
||||
}
|
||||
if (stateAbove.getFluidState().getLevel() == 8) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return ChunkLightProvider.getRealisticOpacity(world, state, pos, stateAbove, above, Direction.UP, stateAbove.getOpacity(world, above)) < world.getMaxLightLevel();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,35 @@
|
|||
package com.minelittlepony.unicopia.block;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.BlockState;
|
||||
import net.minecraft.block.FacingBlock;
|
||||
import net.minecraft.item.ItemPlacementContext;
|
||||
import net.minecraft.state.StateManager;
|
||||
import net.minecraft.util.BlockMirror;
|
||||
import net.minecraft.util.BlockRotation;
|
||||
|
||||
public class OrientedBlock extends FacingBlock {
|
||||
protected OrientedBlock(Settings settings) {
|
||||
super(settings);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void appendProperties(StateManager.Builder<Block, BlockState> builder) {
|
||||
builder.add(FACING);
|
||||
}
|
||||
|
||||
@Override
|
||||
public BlockState rotate(BlockState state, BlockRotation rotation) {
|
||||
return state.with(FACING, rotation.rotate(state.get(FACING)));
|
||||
}
|
||||
|
||||
@Override
|
||||
public BlockState mirror(BlockState state, BlockMirror mirror) {
|
||||
return state.rotate(mirror.getRotation(state.get(FACING)));
|
||||
}
|
||||
|
||||
@Override
|
||||
public BlockState getPlacementState(ItemPlacementContext ctx) {
|
||||
return getDefaultState().with(FACING, ctx.getPlayerLookDirection().getOpposite());
|
||||
}
|
||||
}
|
|
@ -113,6 +113,13 @@ public interface UBlocks {
|
|||
() -> UItems.APPLE_PIE_HOOF
|
||||
));
|
||||
|
||||
Block CHITIN = register("chitin", new SnowyBlock(Settings.create().mapColor(MapColor.PALE_PURPLE).hardness(5).requiresTool().ticksRandomly()), ItemGroups.NATURAL);
|
||||
Block SURFACE_CHITIN = register("surface_chitin", new GrowableBlock(Settings.copy(CHITIN), () -> CHITIN), ItemGroups.NATURAL);
|
||||
Block CHISELLED_CHITIN = register("chiselled_chitin", new Block(Settings.create().mapColor(MapColor.PALE_PURPLE).hardness(5).requiresTool()), ItemGroups.BUILDING_BLOCKS);
|
||||
Block CHISELLED_CHITIN_SLAB = register("chiselled_chitin_slab", new SlabBlock(Settings.copy(CHISELLED_CHITIN)), ItemGroups.BUILDING_BLOCKS);
|
||||
Block CHISELLED_CHITIN_STAIRS = register("chiselled_chitin_stairs", new StairsBlock(CHISELLED_CHITIN.getDefaultState(), Settings.copy(CHISELLED_CHITIN)), ItemGroups.BUILDING_BLOCKS);
|
||||
Block CHISELLED_CHITIN_HULL = register("chiselled_chitin_hull", new OrientedBlock(Settings.copy(CHISELLED_CHITIN)), ItemGroups.BUILDING_BLOCKS);
|
||||
|
||||
SegmentedCropBlock OATS = register("oats", SegmentedCropBlock.create(11, 5, AbstractBlock.Settings.copy(Blocks.WHEAT), () -> UItems.OAT_SEEDS, null, null));
|
||||
SegmentedCropBlock OATS_STEM = register("oats_stem", OATS.createNext(5));
|
||||
SegmentedCropBlock OATS_CROWN = register("oats_crown", OATS_STEM.createNext(5));
|
||||
|
|
|
@ -160,12 +160,16 @@ public interface UItems {
|
|||
GlassesItem SUNGLASSES = register("sunglasses", new GlassesItem(new FabricItemSettings().maxCount(1)), ItemGroups.COMBAT);
|
||||
GlassesItem BROKEN_SUNGLASSES = register("broken_sunglasses", new GlassesItem(new FabricItemSettings().maxCount(1)), ItemGroups.COMBAT);
|
||||
|
||||
|
||||
Item CARAPACE = register("carapace", new Item(new Item.Settings()), ItemGroups.INGREDIENTS);
|
||||
|
||||
Item ALICORN_BADGE = register(Race.ALICORN);
|
||||
Item PEGASUS_BADGE = register(Race.PEGASUS);
|
||||
Item UNICORN_BADGE = register(Race.UNICORN);
|
||||
Item EARTH_BADGE = register(Race.EARTH);
|
||||
Item BAT_BADGE = register(Race.BAT);
|
||||
Item CHANGELING_BADGE = register(Race.CHANGELING);
|
||||
Item KIRIN_BADGE = register(Race.KIRIN);
|
||||
|
||||
private static <T extends Item> T register(String name, T item, RegistryKey<ItemGroup> group) {
|
||||
return ItemGroupRegistry.register(Unicopia.id(name), item, group);
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"variants": {
|
||||
"": { "model": "unicopia:block/chiselled_chitin" }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"variants": {
|
||||
"facing=up": { "model": "unicopia:block/chiselled_chitin_hull" },
|
||||
"facing=down": { "model": "unicopia:block/chiselled_chitin_hull", "x": 180 },
|
||||
"facing=north": { "model": "unicopia:block/chiselled_chitin_hull", "x": 90 },
|
||||
"facing=south": { "model": "unicopia:block/chiselled_chitin_hull", "x": -90 },
|
||||
"facing=east": { "model": "unicopia:block/chiselled_chitin_hull", "x": 90, "y": 90 },
|
||||
"facing=west": { "model": "unicopia:block/chiselled_chitin_hull", "x": 90, "y": -90 }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"variants": {
|
||||
"type=double": { "model": "unicopia:block/chiselled_chitin" },
|
||||
"type=bottom": { "model": "unicopia:block/chiselled_chitin_slab" },
|
||||
"type=top": { "model": "unicopia:block/chiselled_chitin_slab_top" }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,209 @@
|
|||
{
|
||||
"variants": {
|
||||
"facing=east,half=bottom,shape=inner_left": {
|
||||
"model": "unicopia:block/chiselled_chitin_stairs_inner",
|
||||
"uvlock": true,
|
||||
"y": 270
|
||||
},
|
||||
"facing=east,half=bottom,shape=inner_right": {
|
||||
"model": "unicopia:block/chiselled_chitin_stairs_inner"
|
||||
},
|
||||
"facing=east,half=bottom,shape=outer_left": {
|
||||
"model": "unicopia:block/chiselled_chitin_stairs_outer",
|
||||
"uvlock": true,
|
||||
"y": 270
|
||||
},
|
||||
"facing=east,half=bottom,shape=outer_right": {
|
||||
"model": "unicopia:block/chiselled_chitin_stairs_outer"
|
||||
},
|
||||
"facing=east,half=bottom,shape=straight": {
|
||||
"model": "unicopia:block/chiselled_chitin_stairs"
|
||||
},
|
||||
"facing=east,half=top,shape=inner_left": {
|
||||
"model": "unicopia:block/chiselled_chitin_stairs_inner",
|
||||
"uvlock": true,
|
||||
"x": 180
|
||||
},
|
||||
"facing=east,half=top,shape=inner_right": {
|
||||
"model": "unicopia:block/chiselled_chitin_stairs_inner",
|
||||
"uvlock": true,
|
||||
"x": 180,
|
||||
"y": 90
|
||||
},
|
||||
"facing=east,half=top,shape=outer_left": {
|
||||
"model": "unicopia:block/chiselled_chitin_stairs_outer",
|
||||
"uvlock": true,
|
||||
"x": 180
|
||||
},
|
||||
"facing=east,half=top,shape=outer_right": {
|
||||
"model": "unicopia:block/chiselled_chitin_stairs_outer",
|
||||
"uvlock": true,
|
||||
"x": 180,
|
||||
"y": 90
|
||||
},
|
||||
"facing=east,half=top,shape=straight": {
|
||||
"model": "unicopia:block/chiselled_chitin_stairs",
|
||||
"uvlock": true,
|
||||
"x": 180
|
||||
},
|
||||
"facing=north,half=bottom,shape=inner_left": {
|
||||
"model": "unicopia:block/chiselled_chitin_stairs_inner",
|
||||
"uvlock": true,
|
||||
"y": 180
|
||||
},
|
||||
"facing=north,half=bottom,shape=inner_right": {
|
||||
"model": "unicopia:block/chiselled_chitin_stairs_inner",
|
||||
"uvlock": true,
|
||||
"y": 270
|
||||
},
|
||||
"facing=north,half=bottom,shape=outer_left": {
|
||||
"model": "unicopia:block/chiselled_chitin_stairs_outer",
|
||||
"uvlock": true,
|
||||
"y": 180
|
||||
},
|
||||
"facing=north,half=bottom,shape=outer_right": {
|
||||
"model": "unicopia:block/chiselled_chitin_stairs_outer",
|
||||
"uvlock": true,
|
||||
"y": 270
|
||||
},
|
||||
"facing=north,half=bottom,shape=straight": {
|
||||
"model": "unicopia:block/chiselled_chitin_stairs",
|
||||
"uvlock": true,
|
||||
"y": 270
|
||||
},
|
||||
"facing=north,half=top,shape=inner_left": {
|
||||
"model": "unicopia:block/chiselled_chitin_stairs_inner",
|
||||
"uvlock": true,
|
||||
"x": 180,
|
||||
"y": 270
|
||||
},
|
||||
"facing=north,half=top,shape=inner_right": {
|
||||
"model": "unicopia:block/chiselled_chitin_stairs_inner",
|
||||
"uvlock": true,
|
||||
"x": 180
|
||||
},
|
||||
"facing=north,half=top,shape=outer_left": {
|
||||
"model": "unicopia:block/chiselled_chitin_stairs_outer",
|
||||
"uvlock": true,
|
||||
"x": 180,
|
||||
"y": 270
|
||||
},
|
||||
"facing=north,half=top,shape=outer_right": {
|
||||
"model": "unicopia:block/chiselled_chitin_stairs_outer",
|
||||
"uvlock": true,
|
||||
"x": 180
|
||||
},
|
||||
"facing=north,half=top,shape=straight": {
|
||||
"model": "unicopia:block/chiselled_chitin_stairs",
|
||||
"uvlock": true,
|
||||
"x": 180,
|
||||
"y": 270
|
||||
},
|
||||
"facing=south,half=bottom,shape=inner_left": {
|
||||
"model": "unicopia:block/chiselled_chitin_stairs_inner"
|
||||
},
|
||||
"facing=south,half=bottom,shape=inner_right": {
|
||||
"model": "unicopia:block/chiselled_chitin_stairs_inner",
|
||||
"uvlock": true,
|
||||
"y": 90
|
||||
},
|
||||
"facing=south,half=bottom,shape=outer_left": {
|
||||
"model": "unicopia:block/chiselled_chitin_stairs_outer"
|
||||
},
|
||||
"facing=south,half=bottom,shape=outer_right": {
|
||||
"model": "unicopia:block/chiselled_chitin_stairs_outer",
|
||||
"uvlock": true,
|
||||
"y": 90
|
||||
},
|
||||
"facing=south,half=bottom,shape=straight": {
|
||||
"model": "unicopia:block/chiselled_chitin_stairs",
|
||||
"uvlock": true,
|
||||
"y": 90
|
||||
},
|
||||
"facing=south,half=top,shape=inner_left": {
|
||||
"model": "unicopia:block/chiselled_chitin_stairs_inner",
|
||||
"uvlock": true,
|
||||
"x": 180,
|
||||
"y": 90
|
||||
},
|
||||
"facing=south,half=top,shape=inner_right": {
|
||||
"model": "unicopia:block/chiselled_chitin_stairs_inner",
|
||||
"uvlock": true,
|
||||
"x": 180,
|
||||
"y": 180
|
||||
},
|
||||
"facing=south,half=top,shape=outer_left": {
|
||||
"model": "unicopia:block/chiselled_chitin_stairs_outer",
|
||||
"uvlock": true,
|
||||
"x": 180,
|
||||
"y": 90
|
||||
},
|
||||
"facing=south,half=top,shape=outer_right": {
|
||||
"model": "unicopia:block/chiselled_chitin_stairs_outer",
|
||||
"uvlock": true,
|
||||
"x": 180,
|
||||
"y": 180
|
||||
},
|
||||
"facing=south,half=top,shape=straight": {
|
||||
"model": "unicopia:block/chiselled_chitin_stairs",
|
||||
"uvlock": true,
|
||||
"x": 180,
|
||||
"y": 90
|
||||
},
|
||||
"facing=west,half=bottom,shape=inner_left": {
|
||||
"model": "unicopia:block/chiselled_chitin_stairs_inner",
|
||||
"uvlock": true,
|
||||
"y": 90
|
||||
},
|
||||
"facing=west,half=bottom,shape=inner_right": {
|
||||
"model": "unicopia:block/chiselled_chitin_stairs_inner",
|
||||
"uvlock": true,
|
||||
"y": 180
|
||||
},
|
||||
"facing=west,half=bottom,shape=outer_left": {
|
||||
"model": "unicopia:block/chiselled_chitin_stairs_outer",
|
||||
"uvlock": true,
|
||||
"y": 90
|
||||
},
|
||||
"facing=west,half=bottom,shape=outer_right": {
|
||||
"model": "unicopia:block/chiselled_chitin_stairs_outer",
|
||||
"uvlock": true,
|
||||
"y": 180
|
||||
},
|
||||
"facing=west,half=bottom,shape=straight": {
|
||||
"model": "unicopia:block/chiselled_chitin_stairs",
|
||||
"uvlock": true,
|
||||
"y": 180
|
||||
},
|
||||
"facing=west,half=top,shape=inner_left": {
|
||||
"model": "unicopia:block/chiselled_chitin_stairs_inner",
|
||||
"uvlock": true,
|
||||
"x": 180,
|
||||
"y": 180
|
||||
},
|
||||
"facing=west,half=top,shape=inner_right": {
|
||||
"model": "unicopia:block/chiselled_chitin_stairs_inner",
|
||||
"uvlock": true,
|
||||
"x": 180,
|
||||
"y": 270
|
||||
},
|
||||
"facing=west,half=top,shape=outer_left": {
|
||||
"model": "unicopia:block/chiselled_chitin_stairs_outer",
|
||||
"uvlock": true,
|
||||
"x": 180,
|
||||
"y": 180
|
||||
},
|
||||
"facing=west,half=top,shape=outer_right": {
|
||||
"model": "unicopia:block/chiselled_chitin_stairs_outer",
|
||||
"uvlock": true,
|
||||
"x": 180,
|
||||
"y": 270
|
||||
},
|
||||
"facing=west,half=top,shape=straight": {
|
||||
"model": "unicopia:block/chiselled_chitin_stairs",
|
||||
"uvlock": true,
|
||||
"x": 180,
|
||||
"y": 180
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"variants": {
|
||||
"": { "model": "unicopia:block/chitin" }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"variants": {
|
||||
"snowy=false": { "model": "unicopia:block/surface_chitin" },
|
||||
"snowy=true": { "model": "unicopia:block/surface_chitin_snowy" }
|
||||
}
|
||||
}
|
|
@ -99,6 +99,8 @@
|
|||
"item.unicopia.pineapple_crown": "Pineapple Crown",
|
||||
"item.unicopia.sunglasses": "Sunglasses",
|
||||
"item.unicopia.broken_sunglasses": "Broken Sunglasses",
|
||||
|
||||
"item.unicopia.carapace": "Carapace",
|
||||
|
||||
"item.unicopia.pebbles": "Pebbles",
|
||||
"item.unicopia.rock": "Rock",
|
||||
|
@ -203,6 +205,13 @@
|
|||
"block.unicopia.sour_apple_leaves": "Sour Apple Leaves",
|
||||
"block.unicopia.sour_apple_sapling": "Sour Apple Sapling",
|
||||
"block.unicopia.sour_apple_sprout": "Sour Apple Sprout",
|
||||
|
||||
"block.unicopia.surface_chitin": "Surface Chitin",
|
||||
"block.unicopia.chitin": "Chitin",
|
||||
"block.unicopia.chiselled_chitin": "Chiselled Chitin",
|
||||
"block.unicopia.chiselled_chitin_hull": "Chiselled Chitin Hull",
|
||||
"block.unicopia.chiselled_chitin_slab": "Chiselled Chitin Slab",
|
||||
"block.unicopia.chiselled_chitin_stairs": "Chiselled Chitin Stairs",
|
||||
|
||||
"block.unicopia.oats": "Oats",
|
||||
"block.unicopia.oats_stem": "Oats",
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent": "minecraft:block/cube_all",
|
||||
"textures": {
|
||||
"all": "unicopia:block/chiselled_chitin"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"parent": "minecraft:block/cube_bottom_top",
|
||||
"textures": {
|
||||
"bottom": "unicopia:block/chitin",
|
||||
"top": "unicopia:block/chiselled_chitin",
|
||||
"side": "unicopia:block/chiselled_chitin_half"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"parent": "minecraft:block/slab",
|
||||
"textures": {
|
||||
"bottom": "unicopia:block/chiselled_chitin",
|
||||
"side": "unicopia:block/chiselled_chitin",
|
||||
"top": "unicopia:block/chiselled_chitin"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"parent": "minecraft:block/slab_top",
|
||||
"textures": {
|
||||
"bottom": "unicopia:block/chiselled_chitin",
|
||||
"side": "unicopia:block/chiselled_chitin",
|
||||
"top": "unicopia:block/chiselled_chitin"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"parent": "minecraft:block/stairs",
|
||||
"textures": {
|
||||
"bottom": "unicopia:block/chiselled_chitin",
|
||||
"side": "unicopia:block/chiselled_chitin",
|
||||
"top": "unicopia:block/chiselled_chitin"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"parent": "minecraft:block/inner_stairs",
|
||||
"textures": {
|
||||
"bottom": "unicopia:block/chiselled_chitin",
|
||||
"side": "unicopia:block/chiselled_chitin",
|
||||
"top": "unicopia:block/chiselled_chitin"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"parent": "minecraft:block/outer_stairs",
|
||||
"textures": {
|
||||
"bottom": "unicopia:block/chiselled_chitin",
|
||||
"side": "unicopia:block/chiselled_chitin",
|
||||
"top": "unicopia:block/chiselled_chitin"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"parent": "minecraft:block/cube_bottom_top",
|
||||
"textures": {
|
||||
"bottom": "unicopia:block/chitin_bottom",
|
||||
"top": "unicopia:block/chitin",
|
||||
"side": "unicopia:block/chitin"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"parent": "minecraft:block/cube_bottom_top",
|
||||
"textures": {
|
||||
"bottom": "unicopia:block/chitin_bottom",
|
||||
"top": "unicopia:block/chitin_top",
|
||||
"side": "unicopia:block/chitin_side"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"parent": "minecraft:block/cube_bottom_top",
|
||||
"textures": {
|
||||
"bottom": "unicopia:block/chitin",
|
||||
"top": "unicopia:block/chitin_top",
|
||||
"side": "unicopia:block/chitin_side_snow_covered"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent": "item/generated",
|
||||
"textures": {
|
||||
"layer0": "unicopia:item/carapace"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"parent": "unicopia:block/chiselled_chitin"
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"parent": "unicopia:block/chiselled_chitin_hull"
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"parent": "unicopia:block/chiselled_chitin_slab"
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"parent": "unicopia:block/chiselled_chitin_stairs"
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"parent": "unicopia:block/chitin"
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"parent": "unicopia:block/surface_chitin"
|
||||
}
|
Binary file not shown.
After ![]() (image error) Size: 3.3 KiB |
Binary file not shown.
After ![]() (image error) Size: 3.3 KiB |
BIN
src/main/resources/assets/unicopia/textures/block/chitin.png
Normal file
BIN
src/main/resources/assets/unicopia/textures/block/chitin.png
Normal file
Binary file not shown.
After ![]() (image error) Size: 3.3 KiB |
Binary file not shown.
After ![]() (image error) Size: 4.7 KiB |
Binary file not shown.
After ![]() (image error) Size: 6.9 KiB |
Binary file not shown.
After ![]() (image error) Size: 6.9 KiB |
Binary file not shown.
After ![]() (image error) Size: 3.3 KiB |
BIN
src/main/resources/assets/unicopia/textures/block/chitin_top.png
Normal file
BIN
src/main/resources/assets/unicopia/textures/block/chitin_top.png
Normal file
Binary file not shown.
After ![]() (image error) Size: 6.9 KiB |
Binary file not shown.
After ![]() (image error) Size: 3.4 KiB |
BIN
src/main/resources/assets/unicopia/textures/item/carapace.png
Normal file
BIN
src/main/resources/assets/unicopia/textures/item/carapace.png
Normal file
Binary file not shown.
After ![]() (image error) Size: 3.1 KiB |
|
@ -3,6 +3,10 @@
|
|||
"values": [
|
||||
"unicopia:rocks",
|
||||
"unicopia:frosted_obsidian",
|
||||
"unicopia:weather_vane"
|
||||
"unicopia:weather_vane",
|
||||
"unicopia:chiselled_chitin",
|
||||
"unicopia:chiselled_chitin_slab",
|
||||
"unicopia:chiselled_chitin_stairs",
|
||||
"unicopia:chiselled_chitin_hull"
|
||||
]
|
||||
}
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"replace": false,
|
||||
"values": [
|
||||
"unicopia:chitin",
|
||||
"unicopia:surface_chitin"
|
||||
]
|
||||
}
|
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
"type": "minecraft:block",
|
||||
"pools": [
|
||||
{
|
||||
"rolls": 1.0,
|
||||
"bonus_rolls": 0.0,
|
||||
"entries": [
|
||||
{
|
||||
"type": "minecraft:item",
|
||||
"name": "unicopia:chiselled_chitin"
|
||||
}
|
||||
],
|
||||
"conditions": [
|
||||
{
|
||||
"condition": "minecraft:survives_explosion"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1,49 @@
|
|||
{
|
||||
"type": "minecraft:block",
|
||||
"pools": [
|
||||
{
|
||||
"rolls": 1.0,
|
||||
"bonus_rolls": 0.0,
|
||||
"entries": [
|
||||
{
|
||||
"type": "minecraft:item",
|
||||
"name": "unicopia:chitin",
|
||||
"functions": [
|
||||
{
|
||||
"add": false,
|
||||
"count": 2,
|
||||
"function": "minecraft:set_count"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"conditions": [
|
||||
{
|
||||
"condition": "minecraft:survives_explosion"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"rolls": 1.0,
|
||||
"bonus_rolls": 0.0,
|
||||
"entries": [
|
||||
{
|
||||
"type": "minecraft:item",
|
||||
"name": "unicopia:chiselled_chitin",
|
||||
"functions": [
|
||||
{
|
||||
"add": false,
|
||||
"count": 2,
|
||||
"function": "minecraft:set_count"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"conditions": [
|
||||
{
|
||||
"condition": "minecraft:survives_explosion"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1,36 @@
|
|||
{
|
||||
"type": "minecraft:block",
|
||||
"pools": [
|
||||
{
|
||||
"rolls": 1.0,
|
||||
"bonus_rolls": 0.0,
|
||||
"entries": [
|
||||
{
|
||||
"type": "minecraft:item",
|
||||
"name": "unicopia:chiselled_chitin_slab",
|
||||
"functions": [
|
||||
{
|
||||
"add": false,
|
||||
"count": 2,
|
||||
"function": "minecraft:set_count",
|
||||
"conditions": [
|
||||
{
|
||||
"block": "unicopia:chiselled_chitin_slab",
|
||||
"condition": "minecraft:block_state_property",
|
||||
"properties": {
|
||||
"type": "double"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"conditions": [
|
||||
{
|
||||
"condition": "minecraft:survives_explosion"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
"type": "minecraft:block",
|
||||
"pools": [
|
||||
{
|
||||
"rolls": 1.0,
|
||||
"bonus_rolls": 0.0,
|
||||
"entries": [
|
||||
{
|
||||
"type": "minecraft:item",
|
||||
"name": "unicopia:chiselled_chitin_stairs"
|
||||
}
|
||||
],
|
||||
"conditions": [
|
||||
{
|
||||
"condition": "minecraft:survives_explosion"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
"type": "minecraft:block",
|
||||
"pools": [
|
||||
{
|
||||
"rolls": 1.0,
|
||||
"bonus_rolls": 0.0,
|
||||
"entries": [
|
||||
{
|
||||
"type": "minecraft:item",
|
||||
"name": "unicopia:carapace",
|
||||
"functions": [
|
||||
{
|
||||
"add": false,
|
||||
"count": 9,
|
||||
"function": "minecraft:set_count"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"conditions": [
|
||||
{
|
||||
"condition": "minecraft:survives_explosion"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
"type": "minecraft:block",
|
||||
"pools": [
|
||||
{
|
||||
"rolls": 1.0,
|
||||
"bonus_rolls": 0.0,
|
||||
"entries": [
|
||||
{
|
||||
"type": "minecraft:item",
|
||||
"name": "unicopia:carapace",
|
||||
"functions": [
|
||||
{
|
||||
"add": false,
|
||||
"count": 9,
|
||||
"function": "minecraft:set_count"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"conditions": [
|
||||
{
|
||||
"condition": "minecraft:survives_explosion"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"type": "minecraft:crafting_shaped",
|
||||
"pattern": [
|
||||
"##",
|
||||
"##"
|
||||
],
|
||||
"key": {
|
||||
"#": [
|
||||
{ "item": "unicopia:chitin" }
|
||||
]
|
||||
},
|
||||
"result": { "item": "unicopia:chiselled_chitin", "count": 4 }
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
"type": "minecraft:crafting_shaped",
|
||||
"pattern": [
|
||||
"##",
|
||||
"%%"
|
||||
],
|
||||
"key": {
|
||||
"#": [
|
||||
{ "item": "unicopia:chiselled_chitin" }
|
||||
],
|
||||
"%": [
|
||||
{ "item": "unicopia:chitin" }
|
||||
]
|
||||
},
|
||||
"result": { "item": "unicopia:chiselled_chitin_hull", "count": 4 }
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"type": "minecraft:crafting_shaped",
|
||||
"pattern": [
|
||||
"###"
|
||||
],
|
||||
"key": {
|
||||
"#": [
|
||||
{ "item": "unicopia:chiselled_chitin" }
|
||||
]
|
||||
},
|
||||
"result": { "item": "unicopia:chiselled_chitin_slab", "count": 6 }
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"type": "minecraft:crafting_shaped",
|
||||
"pattern": [
|
||||
"# ",
|
||||
"## ",
|
||||
"###"
|
||||
],
|
||||
"key": {
|
||||
"#": [
|
||||
{ "item": "unicopia:chiselled_chitin" }
|
||||
]
|
||||
},
|
||||
"result": { "item": "unicopia:chiselled_chitin_stairs", "count": 4 }
|
||||
}
|
14
src/main/resources/data/unicopia/recipes/chitin.json
Normal file
14
src/main/resources/data/unicopia/recipes/chitin.json
Normal file
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"type": "minecraft:crafting_shaped",
|
||||
"pattern": [
|
||||
"###",
|
||||
"###",
|
||||
"###"
|
||||
],
|
||||
"key": {
|
||||
"#": [
|
||||
{ "item": "unicopia:carapace" }
|
||||
]
|
||||
},
|
||||
"result": { "item": "unicopia:chitin", "count": 1 }
|
||||
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,6 +1,13 @@
|
|||
{
|
||||
"replace": false,
|
||||
"values": [
|
||||
"unicopia:carapace",
|
||||
"unicopia:surface_chitin",
|
||||
"unicopia:chitin",
|
||||
"unicopia:chiselled_chitin",
|
||||
"unicopia:chiselled_chitin_slab",
|
||||
"unicopia:chiselled_chitin_stairs",
|
||||
"unicopia:chiselled_chitin_hull",
|
||||
"#unicopia:food_types/cooked_meat",
|
||||
"#unicopia:food_types/raw_meat",
|
||||
"#unicopia:food_types/raw_insect",
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
"type": "minecraft:jigsaw",
|
||||
"biomes": "#minecraft:is_forest",
|
||||
"max_distance_from_center": 112,
|
||||
"project_start_to_heightmap": "WORLD_SURFACE_WG",
|
||||
"size": 7,
|
||||
"spawn_overrides": {},
|
||||
"start_height": {
|
||||
"absolute": -6
|
||||
},
|
||||
"start_pool": "unicopia:changeling_hive/start",
|
||||
"step": "underground_decoration",
|
||||
"terrain_adaptation": "beard_box",
|
||||
"use_expansion_hack": false
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"placement": {
|
||||
"type": "minecraft:random_spread",
|
||||
"salt": 54138171,
|
||||
"separation": 62,
|
||||
"spacing": 84
|
||||
},
|
||||
"structures": [
|
||||
{
|
||||
"structure": "unicopia:abandoned_changeling_hive",
|
||||
"weight": 1
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1,38 @@
|
|||
{
|
||||
"elements": [
|
||||
{
|
||||
"element": {
|
||||
"element_type": "minecraft:single_pool_element",
|
||||
"location": "unicopia:abandoned_changeling_hive_chamber1",
|
||||
"processors": {
|
||||
"processors": []
|
||||
},
|
||||
"projection": "rigid"
|
||||
},
|
||||
"weight": 1
|
||||
},
|
||||
{
|
||||
"element": {
|
||||
"element_type": "minecraft:single_pool_element",
|
||||
"location": "unicopia:abandoned_changeling_hive_chamber2",
|
||||
"processors": {
|
||||
"processors": []
|
||||
},
|
||||
"projection": "rigid"
|
||||
},
|
||||
"weight": 1
|
||||
},
|
||||
{
|
||||
"element": {
|
||||
"element_type": "minecraft:single_pool_element",
|
||||
"location": "unicopia:abandoned_changeling_hive_chamber3",
|
||||
"processors": {
|
||||
"processors": []
|
||||
},
|
||||
"projection": "rigid"
|
||||
},
|
||||
"weight": 1
|
||||
}
|
||||
],
|
||||
"fallback": "minecraft:empty"
|
||||
}
|
|
@ -0,0 +1,38 @@
|
|||
{
|
||||
"elements": [
|
||||
{
|
||||
"element": {
|
||||
"element_type": "minecraft:single_pool_element",
|
||||
"location": "unicopia:abandoned_changeling_hive_shaft1",
|
||||
"processors": {
|
||||
"processors": []
|
||||
},
|
||||
"projection": "rigid"
|
||||
},
|
||||
"weight": 1
|
||||
},
|
||||
{
|
||||
"element": {
|
||||
"element_type": "minecraft:single_pool_element",
|
||||
"location": "unicopia:abandoned_changeling_hive_shaft2",
|
||||
"processors": {
|
||||
"processors": []
|
||||
},
|
||||
"projection": "rigid"
|
||||
},
|
||||
"weight": 1
|
||||
},
|
||||
{
|
||||
"element": {
|
||||
"element_type": "minecraft:single_pool_element",
|
||||
"location": "unicopia:abandoned_changeling_hive_shaft_bottom",
|
||||
"processors": {
|
||||
"processors": []
|
||||
},
|
||||
"projection": "rigid"
|
||||
},
|
||||
"weight": 9
|
||||
}
|
||||
],
|
||||
"fallback": "minecraft:empty"
|
||||
}
|
|
@ -0,0 +1,71 @@
|
|||
{
|
||||
"elements": [
|
||||
{
|
||||
"element": {
|
||||
"element_type": "minecraft:single_pool_element",
|
||||
"location": "unicopia:abandoned_changeling_hive_offshoot1",
|
||||
"processors": {
|
||||
"processors": []
|
||||
},
|
||||
"projection": "rigid"
|
||||
},
|
||||
"weight": 9
|
||||
},
|
||||
{
|
||||
"element": {
|
||||
"element_type": "minecraft:single_pool_element",
|
||||
"location": "unicopia:abandoned_changeling_hive_offshoot_elbow",
|
||||
"processors": {
|
||||
"processors": []
|
||||
},
|
||||
"projection": "rigid"
|
||||
},
|
||||
"weight": 2
|
||||
},
|
||||
{
|
||||
"element": {
|
||||
"element_type": "minecraft:single_pool_element",
|
||||
"location": "unicopia:abandoned_changeling_hive_offshoot_elbow2",
|
||||
"processors": {
|
||||
"processors": []
|
||||
},
|
||||
"projection": "rigid"
|
||||
},
|
||||
"weight": 2
|
||||
},
|
||||
{
|
||||
"element": {
|
||||
"element_type": "minecraft:single_pool_element",
|
||||
"location": "unicopia:abandoned_changeling_hive_chamber1",
|
||||
"processors": {
|
||||
"processors": []
|
||||
},
|
||||
"projection": "rigid"
|
||||
},
|
||||
"weight": 1
|
||||
},
|
||||
{
|
||||
"element": {
|
||||
"element_type": "minecraft:single_pool_element",
|
||||
"location": "unicopia:abandoned_changeling_hive_chamber2",
|
||||
"processors": {
|
||||
"processors": []
|
||||
},
|
||||
"projection": "rigid"
|
||||
},
|
||||
"weight": 1
|
||||
},
|
||||
{
|
||||
"element": {
|
||||
"element_type": "minecraft:single_pool_element",
|
||||
"location": "unicopia:abandoned_changeling_hive_chamber3",
|
||||
"processors": {
|
||||
"processors": []
|
||||
},
|
||||
"projection": "rigid"
|
||||
},
|
||||
"weight": 1
|
||||
}
|
||||
],
|
||||
"fallback": "minecraft:empty"
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
"elements": [
|
||||
{
|
||||
"element": {
|
||||
"element_type": "minecraft:single_pool_element",
|
||||
"location": "unicopia:abandoned_changeling_hive",
|
||||
"processors": {
|
||||
"processors": []
|
||||
},
|
||||
"projection": "rigid"
|
||||
},
|
||||
"weight": 1
|
||||
}
|
||||
],
|
||||
"fallback": "minecraft:empty"
|
||||
}
|
|
@ -0,0 +1,38 @@
|
|||
{
|
||||
"elements": [
|
||||
{
|
||||
"element": {
|
||||
"element_type": "minecraft:single_pool_element",
|
||||
"location": "unicopia:abandoned_changeling_hive_tunnel_termination1",
|
||||
"processors": {
|
||||
"processors": []
|
||||
},
|
||||
"projection": "rigid"
|
||||
},
|
||||
"weight": 1
|
||||
},
|
||||
{
|
||||
"element": {
|
||||
"element_type": "minecraft:single_pool_element",
|
||||
"location": "unicopia:abandoned_changeling_offshoot_transition",
|
||||
"processors": {
|
||||
"processors": []
|
||||
},
|
||||
"projection": "rigid"
|
||||
},
|
||||
"weight": 2
|
||||
},
|
||||
{
|
||||
"element": {
|
||||
"element_type": "minecraft:single_pool_element",
|
||||
"location": "unicopia:abandoned_changeling_hive_descent1",
|
||||
"processors": {
|
||||
"processors": []
|
||||
},
|
||||
"projection": "rigid"
|
||||
},
|
||||
"weight": 1
|
||||
}
|
||||
],
|
||||
"fallback": "minecraft:empty"
|
||||
}
|
Loading…
Add table
Reference in a new issue