diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/block/SaccharineLeafBlock.kt b/common/src/main/kotlin/com/cobblemon/mod/common/block/SaccharineLeafBlock.kt index 8b7272bb31..df22a616d6 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/block/SaccharineLeafBlock.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/block/SaccharineLeafBlock.kt @@ -37,7 +37,6 @@ import net.minecraft.world.level.pathfinder.PathComputationType import net.minecraft.world.phys.BlockHitResult import net.minecraft.world.phys.shapes.VoxelShape -@Suppress("DEPRECATION", "OVERRIDE_DEPRECATION") class SaccharineLeafBlock(settings: Properties) : LeavesBlock(settings) { companion object { val AGE: IntegerProperty = BlockStateProperties.AGE_2 @@ -68,35 +67,25 @@ class SaccharineLeafBlock(settings: Properties) : LeavesBlock(settings) { stack.shrink(1) val dispenserEntity = source.blockEntity - if (dispenserEntity != null) { - val outputItem = if (item == Items.HONEY_BOTTLE) Items.GLASS_BOTTLE else Items.HONEY_BOTTLE - val outputStack = ItemStack(outputItem) - var added = false + val outputItem = if (item == Items.HONEY_BOTTLE) Items.GLASS_BOTTLE else Items.HONEY_BOTTLE + val outputStack = ItemStack(outputItem) + var added = false - for (i in 0 until dispenserEntity.containerSize) { - val slotStack = dispenserEntity.getItem(i) + for (i in 0 until dispenserEntity.containerSize) { + val slotStack = dispenserEntity.getItem(i) - if (slotStack.isEmpty) { - dispenserEntity.setItem(i, outputStack.copy()) - added = true - break - } else if (slotStack.`is`(outputItem) && slotStack.count < slotStack.maxStackSize) { - slotStack.grow(1) - added = true - break - } - } - - if (!added) { - Containers.dropItemStack( - level, - source.pos.x.toDouble(), - source.pos.y.toDouble(), - source.pos.z.toDouble(), - outputStack - ) + if (slotStack.isEmpty) { + dispenserEntity.setItem(i, outputStack.copy()) + added = true + break + } else if (slotStack.`is`(outputItem) && slotStack.count < slotStack.maxStackSize) { + slotStack.grow(1) + added = true + break } } + + if (!added) Containers.dropItemStack(level, source.pos.x.toDouble(), source.pos.y.toDouble(), source.pos.z.toDouble(), outputStack) } } stack diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/block/SaccharineLogBlock.kt b/common/src/main/kotlin/com/cobblemon/mod/common/block/SaccharineLogBlock.kt index 3099078f6e..1ab38d56d5 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/block/SaccharineLogBlock.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/block/SaccharineLogBlock.kt @@ -9,6 +9,8 @@ package com.cobblemon.mod.common.block import com.cobblemon.mod.common.CobblemonBlocks +import com.cobblemon.mod.common.block.SaccharineLogSlatheredBlock.Companion.HONEY_TYPE +import com.cobblemon.mod.common.block.SaccharineLogSlatheredBlock.Companion.HONEY_TYPE_MAX import net.minecraft.core.BlockPos import net.minecraft.core.Direction import net.minecraft.core.dispenser.BlockSource @@ -23,18 +25,19 @@ import net.minecraft.world.entity.player.Player import net.minecraft.world.item.ItemStack import net.minecraft.world.item.Items import net.minecraft.world.level.Level -import net.minecraft.world.level.block.DirectionalBlock +import net.minecraft.world.level.block.HorizontalDirectionalBlock import net.minecraft.world.level.block.RotatedPillarBlock import net.minecraft.world.level.block.state.BlockState import net.minecraft.world.level.gameevent.GameEvent import net.minecraft.world.phys.BlockHitResult +import kotlin.random.Random class SaccharineLogBlock(properties: Properties) : RotatedPillarBlock(properties) { companion object { fun createBehavior(): DispenseItemBehavior { return DispenseItemBehavior { source, stack -> val level = source.level - val facing = source.state.getValue(DirectionalBlock.FACING) + val facing = source.state.getValue(HorizontalDirectionalBlock.FACING) val pos = source.pos.relative(facing) val blockState = level.getBlockState(pos) @@ -54,35 +57,33 @@ class SaccharineLogBlock(properties: Properties) : RotatedPillarBlock(properties stack.shrink(1) val dispenserEntity = source.blockEntity - if (dispenserEntity != null) { - val glassBottle = ItemStack(Items.GLASS_BOTTLE) - var added = false + val glassBottle = ItemStack(Items.GLASS_BOTTLE) + var added = false - for (i in 0 until dispenserEntity.containerSize) { - val slotStack = dispenserEntity.getItem(i) + for (i in 0 until dispenserEntity.containerSize) { + val slotStack = dispenserEntity.getItem(i) - if (slotStack.isEmpty) { - dispenserEntity.setItem(i, glassBottle.copy()) - added = true - break - } else if (slotStack.`is`(Items.GLASS_BOTTLE) && slotStack.count < slotStack.maxStackSize) { - slotStack.grow(1) - added = true - break - } + if (slotStack.isEmpty) { + dispenserEntity.setItem(i, glassBottle.copy()) + added = true + break + } else if (slotStack.`is`(Items.GLASS_BOTTLE) && slotStack.count < slotStack.maxStackSize) { + slotStack.grow(1) + added = true + break } + } - if (!added) { - Containers.dropItemStack(level, source.pos.x.toDouble(), source.pos.y.toDouble(), source.pos.z.toDouble(), glassBottle) - } + if (!added) { + Containers.dropItemStack(level, source.pos.x.toDouble(), source.pos.y.toDouble(), source.pos.z.toDouble(), glassBottle) } } - fun changeLogType(level: Level, pos: BlockPos, newState: BlockState, player: Player, itemStack: ItemStack) { + fun changeLogType(level: Level, pos: BlockPos, newState: BlockState, player: Player? = null, itemStack: ItemStack? = null) { level.setBlock(pos, newState, 3) level.gameEvent(null, GameEvent.BLOCK_CHANGE, pos) - if (!player.isCreative) { + if (player != null && !player.isCreative && itemStack != null) { itemStack.shrink(1) // Give glass bottle @@ -96,12 +97,21 @@ class SaccharineLogBlock(properties: Properties) : RotatedPillarBlock(properties val axis = state.getValue(AXIS) val itemStack = player.getItemInHand(hand) if (!level.isClientSide && itemStack.`is`(Items.HONEY_BOTTLE) && axis == Direction.Axis.Y) { - // Replace the block with the honey variant - val facing = listOf(Direction.NORTH, Direction.SOUTH, Direction.EAST, Direction.WEST).random() - val newState = CobblemonBlocks.SACCHARINE_LOG_SLATHERED.defaultBlockState().setValue(DirectionalBlock.FACING, facing).setValue(AXIS, Direction.Axis.Y) - changeLogType(level, pos, newState, player, itemStack) - level.playSound(null, pos, SoundEvents.HONEY_BLOCK_PLACE, SoundSource.BLOCKS) - return ItemInteractionResult.SUCCESS + val facing = hitResult.direction + if (facing != Direction.UP && facing != Direction.DOWN) { + val fluidState = level.getFluidState(pos.relative(facing)) + // Replace block with honey log if interacted face is not touching fluid + if (fluidState.amount <= 3) { + val randomType = Random.nextInt(0, HONEY_TYPE_MAX + 1) + val newState = CobblemonBlocks.SACCHARINE_LOG_SLATHERED.defaultBlockState() + .setValue(HorizontalDirectionalBlock.FACING, facing) + .setValue(AXIS, Direction.Axis.Y) + .setValue(HONEY_TYPE, randomType) + changeLogType(level, pos, newState, player, itemStack) + level.playSound(null, pos, SoundEvents.HONEY_BLOCK_PLACE, SoundSource.BLOCKS) + return ItemInteractionResult.SUCCESS + } + } } return super.useItemOn(stack, state, level, pos, player, hand, hitResult) } diff --git a/common/src/main/kotlin/com/cobblemon/mod/common/block/SaccharineLogSlatheredBlock.kt b/common/src/main/kotlin/com/cobblemon/mod/common/block/SaccharineLogSlatheredBlock.kt index 2d6f5fba3c..a58d658e93 100644 --- a/common/src/main/kotlin/com/cobblemon/mod/common/block/SaccharineLogSlatheredBlock.kt +++ b/common/src/main/kotlin/com/cobblemon/mod/common/block/SaccharineLogSlatheredBlock.kt @@ -13,6 +13,7 @@ import com.mojang.serialization.MapCodec import net.minecraft.core.BlockPos import net.minecraft.core.Direction import net.minecraft.core.dispenser.DispenseItemBehavior +import net.minecraft.core.particles.ParticleOptions import net.minecraft.core.particles.ParticleTypes import net.minecraft.sounds.SoundEvents import net.minecraft.sounds.SoundSource @@ -25,17 +26,21 @@ import net.minecraft.world.item.alchemy.PotionContents import net.minecraft.world.item.alchemy.Potions import net.minecraft.world.item.context.BlockPlaceContext import net.minecraft.world.level.Level -import net.minecraft.world.level.block.Block -import net.minecraft.world.level.block.DirectionalBlock -import net.minecraft.world.level.block.DispenserBlock -import net.minecraft.world.level.block.RotatedPillarBlock +import net.minecraft.world.level.block.* import net.minecraft.world.level.block.state.BlockState import net.minecraft.world.level.block.state.StateDefinition +import net.minecraft.world.level.block.state.properties.IntegerProperty +import net.minecraft.world.level.material.Fluids import net.minecraft.world.phys.BlockHitResult +import kotlin.random.Random -class SaccharineLogSlatheredBlock(properties: Properties) : DirectionalBlock(properties) { + +class SaccharineLogSlatheredBlock(properties: Properties) : HorizontalDirectionalBlock(properties) { companion object { + const val HONEY_TYPE_MAX = 5 + val CODEC: MapCodec = simpleCodec(::SaccharineLogSlatheredBlock) + val HONEY_TYPE: IntegerProperty = IntegerProperty.create("honey_type", 0, HONEY_TYPE_MAX) fun createBehavior(): DispenseItemBehavior { return DispenseItemBehavior { source, stack -> @@ -60,6 +65,7 @@ class SaccharineLogSlatheredBlock(properties: Properties) : DirectionalBlock(pro stateDefinition.any() .setValue(FACING, Direction.NORTH) .setValue(RotatedPillarBlock.AXIS, Direction.Axis.Y) + .setValue(HONEY_TYPE, 0) ) } @@ -68,7 +74,9 @@ class SaccharineLogSlatheredBlock(properties: Properties) : DirectionalBlock(pro override fun useItemOn(stack: ItemStack, state: BlockState, level: Level, pos: BlockPos, player: Player, hand: InteractionHand, hitResult: BlockHitResult): ItemInteractionResult { val itemStack = player.getItemInHand(hand) val waterBottle = PotionContents.createItemStack(Items.POTION, Potions.WATER).item - if (itemStack.`is`(waterBottle)) { + val blockFace = hitResult.direction + + if (itemStack.`is`(waterBottle) && state.getValue(FACING) == blockFace) { if (!level.isClientSide) { // Replace the honey with the block variant val newState = CobblemonBlocks.SACCHARINE_LOG.defaultBlockState() @@ -76,38 +84,60 @@ class SaccharineLogSlatheredBlock(properties: Properties) : DirectionalBlock(pro level.playSound(null, pos, SoundEvents.GENERIC_SWIM, SoundSource.BLOCKS) SaccharineLogBlock.changeLogType(level, pos, newState, player, itemStack) } - spawnSplashParticles(level, pos) + + spawnParticlesAtBlockFace(ParticleTypes.SPLASH, level, pos, blockFace, 40) return ItemInteractionResult.SUCCESS } return super.useItemOn(stack, state, level, pos, player, hand, hitResult) } override fun getStateForPlacement(context: BlockPlaceContext): BlockState? { - val direction = context.player?.direction ?: Direction.NORTH + val direction = (context.player?.direction ?: Direction.NORTH).opposite if (direction != Direction.UP && direction != Direction.DOWN) { - return defaultBlockState().setValue(FACING, direction) + val randomType = Random.nextInt(0, HONEY_TYPE_MAX + 1) + return defaultBlockState().setValue(FACING, direction).setValue(HONEY_TYPE, randomType) } return super.getStateForPlacement(context) } + override fun neighborChanged(state: BlockState, level: Level, pos: BlockPos, neighborBlock: Block, neighborPos: BlockPos, movedByPiston: Boolean) { + val facingDirection = state.getValue(FACING) + val targetPos = pos.relative(facingDirection) + + if (neighborPos == targetPos) { + val fluidState = level.getFluidState(neighborPos) + // Revert log to non-honey block if touching fluid + if (fluidState.amount > 3) { + val newState = CobblemonBlocks.SACCHARINE_LOG.defaultBlockState() + .setValue(RotatedPillarBlock.AXIS, state.getValue(RotatedPillarBlock.AXIS)) + level.playSound(null, pos, SoundEvents.GENERIC_SWIM, SoundSource.BLOCKS) + SaccharineLogBlock.changeLogType(level, pos, newState) + } + } + + super.neighborChanged(state, level, pos, neighborBlock, neighborPos, movedByPiston) + } + override fun createBlockStateDefinition(builder: StateDefinition.Builder) { builder.add(FACING) builder.add(RotatedPillarBlock.AXIS) + builder.add(HONEY_TYPE) } - fun spawnSplashParticles(level: Level, pos: BlockPos) { - for (i in 0 until 50) { - val offsetX: Double = (level.random.nextDouble() * 1.4) - 0.7 - val offsetY: Double = (level.random.nextDouble() * 1.4) - 0.7 - val offsetZ: Double = (level.random.nextDouble() * 1.4) - 0.7 + fun spawnParticlesAtBlockFace(particle: ParticleOptions, level: Level, pos: BlockPos, direction: Direction, amount: Int) { + val random = level.random + repeat(amount) { + val (posX, posY, posZ) = when (direction) { + Direction.UP -> Triple(pos.x + random.nextDouble(), pos.y + 1.0, pos.z + random.nextDouble()) + Direction.DOWN -> Triple(pos.x + random.nextDouble(), pos.y + 0.0, pos.z + random.nextDouble()) + Direction.NORTH -> Triple(pos.x + random.nextDouble(), pos.y + random.nextDouble(), pos.z + 0.0) + Direction.SOUTH -> Triple(pos.x + random.nextDouble(), pos.y + random.nextDouble(), pos.z + 1.0) + Direction.EAST -> Triple(pos.x + 1.0, pos.y + random.nextDouble(), pos.z + random.nextDouble()) + Direction.WEST -> Triple(pos.x + 0.0, pos.y + random.nextDouble(), pos.z + random.nextDouble()) + else -> null + } ?: return@repeat - level.addParticle( - ParticleTypes.SPLASH, - pos.x + 0.5 + offsetX, - pos.y + 0.5 + offsetY, - pos.z + 0.5 + offsetZ, - 0.0, 0.0, 0.0 - ) + level.addParticle(particle, posX, posY, posZ, 0.0, 0.0, 0.0) } } } diff --git a/common/src/main/resources/assets/cobblemon/bedrock/pokemon/resolvers/0532_timburr/0_timburr_base.json b/common/src/main/resources/assets/cobblemon/bedrock/pokemon/resolvers/0532_timburr/0_timburr_base.json index c3605658f9..d2e74d00ec 100644 --- a/common/src/main/resources/assets/cobblemon/bedrock/pokemon/resolvers/0532_timburr/0_timburr_base.json +++ b/common/src/main/resources/assets/cobblemon/bedrock/pokemon/resolvers/0532_timburr/0_timburr_base.json @@ -92,6 +92,14 @@ "texture": "cobblemon:textures/pokemon/0532_timburr/timburr_warped.png" } ] + }, + { + "aspects": ["tree-saccharine"], + "layers": [ + { + "texture": "cobblemon:textures/pokemon/0532_timburr/timburr_saccharine.png" + } + ] } ] } diff --git a/common/src/main/resources/assets/cobblemon/bedrock/pokemon/resolvers/0775_komala/0_komala_base.json b/common/src/main/resources/assets/cobblemon/bedrock/pokemon/resolvers/0775_komala/0_komala_base.json index 306bcccbdb..5093b7afef 100644 --- a/common/src/main/resources/assets/cobblemon/bedrock/pokemon/resolvers/0775_komala/0_komala_base.json +++ b/common/src/main/resources/assets/cobblemon/bedrock/pokemon/resolvers/0775_komala/0_komala_base.json @@ -9,41 +9,105 @@ "texture": "cobblemon:textures/pokemon/0775_komala/komala.png", "layers": [] }, + { + "aspects": ["shiny"], + "texture": "cobblemon:textures/pokemon/0775_komala/komala_shiny.png" + }, { "aspects": ["tree-oak"], - "texture": "cobblemon:textures/pokemon/0775_komala/komala_oak.png" + "layers": [ + { + "texture": "cobblemon:textures/pokemon/0775_komala/komala_oak.png" + } + ] }, { "aspects": ["tree-spruce"], - "texture": "cobblemon:textures/pokemon/0775_komala/komala_spruce.png" + "layers": [ + { + "texture": "cobblemon:textures/pokemon/0775_komala/komala_spruce.png" + } + ] }, { "aspects": ["tree-acacia"], - "texture": "cobblemon:textures/pokemon/0775_komala/komala_acacia.png" + "layers": [ + { + "texture": "cobblemon:textures/pokemon/0775_komala/komala_acacia.png" + } + ] }, { "aspects": ["tree-birch"], - "texture": "cobblemon:textures/pokemon/0775_komala/komala_birch.png" + "layers": [ + { + "texture": "cobblemon:textures/pokemon/0775_komala/komala_birch.png" + } + ] }, { "aspects": ["tree-darkoak"], - "texture": "cobblemon:textures/pokemon/0775_komala/komala_dark_oak.png" + "layers": [ + { + "texture": "cobblemon:textures/pokemon/0775_komala/komala_dark_oak.png" + } + ] }, { "aspects": ["tree-jungle"], - "texture": "cobblemon:textures/pokemon/0775_komala/komala_jungle.png" + "layers": [ + { + "texture": "cobblemon:textures/pokemon/0775_komala/komala_jungle.png" + } + ] }, { "aspects": ["tree-mangrove"], - "texture": "cobblemon:textures/pokemon/0775_komala/komala_mangrove.png" + "layers": [ + { + "texture": "cobblemon:textures/pokemon/0775_komala/komala_mangrove.png" + } + ] }, { "aspects": ["tree-cherry"], - "texture": "cobblemon:textures/pokemon/0775_komala/komala_cherry.png" + "layers": [ + { + "texture": "cobblemon:textures/pokemon/0775_komala/komala_cherry.png" + } + ] }, { - "aspects": ["shiny"], - "texture": "cobblemon:textures/pokemon/0775_komala/komala_shiny.png" + "aspects": ["tree-crimson"], + "layers": [ + { + "texture": "cobblemon:textures/pokemon/0775_komala/komala_crimson.png" + } + ] + }, + { + "aspects": ["tree-warped"], + "layers": [ + { + "texture": "cobblemon:textures/pokemon/0775_komala/komala_warped.png" + } + ] + }, + { + "aspects": ["tree-apricorn"], + "layers": [ + { + "texture": "cobblemon:textures/pokemon/0775_komala/komala_apricorn.png" + } + ] + }, + { + "aspects": ["tree-saccharine"], + "layers": [ + { + "texture": "cobblemon:textures/pokemon/0775_komala/komala_saccharine.png" + } + ] } ] } diff --git a/common/src/main/resources/assets/cobblemon/blockstates/saccharine_log_slathered.json b/common/src/main/resources/assets/cobblemon/blockstates/saccharine_log_slathered.json index b4662b87e7..3a7586d1b4 100644 --- a/common/src/main/resources/assets/cobblemon/blockstates/saccharine_log_slathered.json +++ b/common/src/main/resources/assets/cobblemon/blockstates/saccharine_log_slathered.json @@ -1,24 +1,99 @@ { "variants": { "facing=down": { - "model": "cobblemon:block/saccharine_log_slathered" - }, - "facing=east": { - "model": "cobblemon:block/saccharine_log_slathered", - "y": 90 - }, - "facing=north": { - "model": "cobblemon:block/saccharine_log_slathered" - }, - "facing=south": { - "model": "cobblemon:block/saccharine_log_slathered", - "y": 180 + "model": "cobblemon:block/saccharine_log_slathered_0" }, "facing=up": { - "model": "cobblemon:block/saccharine_log_slathered" + "model": "cobblemon:block/saccharine_log_slathered_0" }, - "facing=west": { - "model": "cobblemon:block/saccharine_log_slathered", + "facing=east,honey_type=0": { + "model": "cobblemon:block/saccharine_log_slathered_0", + "y": 90 + }, + "facing=north,honey_type=0": { + "model": "cobblemon:block/saccharine_log_slathered_0" + }, + "facing=south,honey_type=0": { + "model": "cobblemon:block/saccharine_log_slathered_0", + "y": 180 + }, + "facing=west,honey_type=0": { + "model": "cobblemon:block/saccharine_log_slathered_0", + "y": 270 + }, + "facing=east,honey_type=1": { + "model": "cobblemon:block/saccharine_log_slathered_1", + "y": 90 + }, + "facing=north,honey_type=1": { + "model": "cobblemon:block/saccharine_log_slathered_1" + }, + "facing=south,honey_type=1": { + "model": "cobblemon:block/saccharine_log_slathered_1", + "y": 180 + }, + "facing=west,honey_type=1": { + "model": "cobblemon:block/saccharine_log_slathered_1", + "y": 270 + }, + "facing=east,honey_type=2": { + "model": "cobblemon:block/saccharine_log_slathered_2", + "y": 90 + }, + "facing=north,honey_type=2": { + "model": "cobblemon:block/saccharine_log_slathered_2" + }, + "facing=south,honey_type=2": { + "model": "cobblemon:block/saccharine_log_slathered_2", + "y": 180 + }, + "facing=west,honey_type=2": { + "model": "cobblemon:block/saccharine_log_slathered_2", + "y": 270 + }, + "facing=east,honey_type=3": { + "model": "cobblemon:block/saccharine_log_slathered_3", + "y": 90 + }, + "facing=north,honey_type=3": { + "model": "cobblemon:block/saccharine_log_slathered_3" + }, + "facing=south,honey_type=3": { + "model": "cobblemon:block/saccharine_log_slathered_3", + "y": 180 + }, + "facing=west,honey_type=3": { + "model": "cobblemon:block/saccharine_log_slathered_3", + "y": 270 + }, + "facing=east,honey_type=4": { + "model": "cobblemon:block/saccharine_log_slathered_4", + "y": 90 + }, + "facing=north,honey_type=4": { + "model": "cobblemon:block/saccharine_log_slathered_4" + }, + "facing=south,honey_type=4": { + "model": "cobblemon:block/saccharine_log_slathered_4", + "y": 180 + }, + "facing=west,honey_type=4": { + "model": "cobblemon:block/saccharine_log_slathered_4", + "y": 270 + }, + "facing=east,honey_type=5": { + "model": "cobblemon:block/saccharine_log_slathered_5", + "y": 90 + }, + "facing=north,honey_type=5": { + "model": "cobblemon:block/saccharine_log_slathered_5" + }, + "facing=south,honey_type=5": { + "model": "cobblemon:block/saccharine_log_slathered_5", + "y": 180 + }, + "facing=west,honey_type=5": { + "model": "cobblemon:block/saccharine_log_slathered_5", "y": 270 } } diff --git a/common/src/main/resources/assets/cobblemon/models/block/saccharine_log_slathered.json b/common/src/main/resources/assets/cobblemon/models/block/saccharine_log_slathered.json deleted file mode 100644 index cb70f67e63..0000000000 --- a/common/src/main/resources/assets/cobblemon/models/block/saccharine_log_slathered.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "parent": "minecraft:block/cube", - "display": { - "firstperson_righthand": { - "rotation": [ 0, 135, 0 ], - "translation": [ 0, 0, 0 ], - "scale": [ 0.40, 0.40, 0.40 ] - } - }, - "textures": { - "particle": "cobblemon:block/saccharine_log", - "down": "cobblemon:block/saccharine_log_top", - "up": "cobblemon:block/saccharine_log_top", - "north": "cobblemon:block/saccharine_log_slathered_0", - "east": "cobblemon:block/saccharine_log_slathered_2", - "south": "cobblemon:block/saccharine_log_slathered_1", - "west": "cobblemon:block/saccharine_log_slathered_3" - } -} diff --git a/common/src/main/resources/assets/cobblemon/models/block/saccharine_log_slathered_0.json b/common/src/main/resources/assets/cobblemon/models/block/saccharine_log_slathered_0.json new file mode 100644 index 0000000000..90da70c459 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/models/block/saccharine_log_slathered_0.json @@ -0,0 +1,8 @@ +{ + "parent": "minecraft:block/orientable", + "textures": { + "front": "cobblemon:block/saccharine_log_slathered_0", + "side": "cobblemon:block/saccharine_log", + "top": "cobblemon:block/saccharine_log_top" + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/models/block/saccharine_log_slathered_1.json b/common/src/main/resources/assets/cobblemon/models/block/saccharine_log_slathered_1.json new file mode 100644 index 0000000000..cd41556c31 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/models/block/saccharine_log_slathered_1.json @@ -0,0 +1,8 @@ +{ + "parent": "minecraft:block/orientable", + "textures": { + "front": "cobblemon:block/saccharine_log_slathered_1", + "side": "cobblemon:block/saccharine_log", + "top": "cobblemon:block/saccharine_log_top" + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/models/block/saccharine_log_slathered_2.json b/common/src/main/resources/assets/cobblemon/models/block/saccharine_log_slathered_2.json new file mode 100644 index 0000000000..97ee6f9b5d --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/models/block/saccharine_log_slathered_2.json @@ -0,0 +1,8 @@ +{ + "parent": "minecraft:block/orientable", + "textures": { + "front": "cobblemon:block/saccharine_log_slathered_2", + "side": "cobblemon:block/saccharine_log", + "top": "cobblemon:block/saccharine_log_top" + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/models/block/saccharine_log_slathered_3.json b/common/src/main/resources/assets/cobblemon/models/block/saccharine_log_slathered_3.json new file mode 100644 index 0000000000..c9d6c5cf04 --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/models/block/saccharine_log_slathered_3.json @@ -0,0 +1,8 @@ +{ + "parent": "minecraft:block/orientable", + "textures": { + "front": "cobblemon:block/saccharine_log_slathered_3", + "side": "cobblemon:block/saccharine_log", + "top": "cobblemon:block/saccharine_log_top" + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/models/block/saccharine_log_slathered_4.json b/common/src/main/resources/assets/cobblemon/models/block/saccharine_log_slathered_4.json new file mode 100644 index 0000000000..34d87d071b --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/models/block/saccharine_log_slathered_4.json @@ -0,0 +1,8 @@ +{ + "parent": "minecraft:block/orientable", + "textures": { + "front": "cobblemon:block/saccharine_log_slathered_4", + "side": "cobblemon:block/saccharine_log", + "top": "cobblemon:block/saccharine_log_top" + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/models/block/saccharine_log_slathered_5.json b/common/src/main/resources/assets/cobblemon/models/block/saccharine_log_slathered_5.json new file mode 100644 index 0000000000..28010dc21f --- /dev/null +++ b/common/src/main/resources/assets/cobblemon/models/block/saccharine_log_slathered_5.json @@ -0,0 +1,8 @@ +{ + "parent": "minecraft:block/orientable", + "textures": { + "front": "cobblemon:block/saccharine_log_slathered_5", + "side": "cobblemon:block/saccharine_log", + "top": "cobblemon:block/saccharine_log_top" + } +} \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/models/item/saccharine_log_slathered.json b/common/src/main/resources/assets/cobblemon/models/item/saccharine_log_slathered.json index f51ebf3c2f..673f47ef0e 100644 --- a/common/src/main/resources/assets/cobblemon/models/item/saccharine_log_slathered.json +++ b/common/src/main/resources/assets/cobblemon/models/item/saccharine_log_slathered.json @@ -1,3 +1,3 @@ { - "parent": "cobblemon:block/saccharine_log_slathered" + "parent": "cobblemon:block/saccharine_log_slathered_0" } \ No newline at end of file diff --git a/common/src/main/resources/assets/cobblemon/textures/block/saccharine_log_slathered_4.png b/common/src/main/resources/assets/cobblemon/textures/block/saccharine_log_slathered_4.png new file mode 100644 index 0000000000..c1810b9fa6 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/block/saccharine_log_slathered_4.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/block/saccharine_log_slathered_5.png b/common/src/main/resources/assets/cobblemon/textures/block/saccharine_log_slathered_5.png new file mode 100644 index 0000000000..a504b14631 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/block/saccharine_log_slathered_5.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/pokemon/0532_timburr/timburr_saccharine.png b/common/src/main/resources/assets/cobblemon/textures/pokemon/0532_timburr/timburr_saccharine.png new file mode 100644 index 0000000000..eb0957b3c2 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/pokemon/0532_timburr/timburr_saccharine.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/pokemon/0775_komala/komala_acacia.png b/common/src/main/resources/assets/cobblemon/textures/pokemon/0775_komala/komala_acacia.png index b4212473d4..3b19fcb39a 100644 Binary files a/common/src/main/resources/assets/cobblemon/textures/pokemon/0775_komala/komala_acacia.png and b/common/src/main/resources/assets/cobblemon/textures/pokemon/0775_komala/komala_acacia.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/pokemon/0775_komala/komala_apricorn.png b/common/src/main/resources/assets/cobblemon/textures/pokemon/0775_komala/komala_apricorn.png new file mode 100644 index 0000000000..e578dee665 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/pokemon/0775_komala/komala_apricorn.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/pokemon/0775_komala/komala_birch.png b/common/src/main/resources/assets/cobblemon/textures/pokemon/0775_komala/komala_birch.png index 43bd0c7190..31c8dc0928 100644 Binary files a/common/src/main/resources/assets/cobblemon/textures/pokemon/0775_komala/komala_birch.png and b/common/src/main/resources/assets/cobblemon/textures/pokemon/0775_komala/komala_birch.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/pokemon/0775_komala/komala_cherry.png b/common/src/main/resources/assets/cobblemon/textures/pokemon/0775_komala/komala_cherry.png index 6aabc0b188..163178e168 100644 Binary files a/common/src/main/resources/assets/cobblemon/textures/pokemon/0775_komala/komala_cherry.png and b/common/src/main/resources/assets/cobblemon/textures/pokemon/0775_komala/komala_cherry.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/pokemon/0775_komala/komala_crimson.png b/common/src/main/resources/assets/cobblemon/textures/pokemon/0775_komala/komala_crimson.png new file mode 100644 index 0000000000..8ead78af45 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/pokemon/0775_komala/komala_crimson.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/pokemon/0775_komala/komala_dark_oak.png b/common/src/main/resources/assets/cobblemon/textures/pokemon/0775_komala/komala_dark_oak.png index 15fd95a36f..0880763039 100644 Binary files a/common/src/main/resources/assets/cobblemon/textures/pokemon/0775_komala/komala_dark_oak.png and b/common/src/main/resources/assets/cobblemon/textures/pokemon/0775_komala/komala_dark_oak.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/pokemon/0775_komala/komala_jungle.png b/common/src/main/resources/assets/cobblemon/textures/pokemon/0775_komala/komala_jungle.png index e651fce71d..021dd0531a 100644 Binary files a/common/src/main/resources/assets/cobblemon/textures/pokemon/0775_komala/komala_jungle.png and b/common/src/main/resources/assets/cobblemon/textures/pokemon/0775_komala/komala_jungle.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/pokemon/0775_komala/komala_mangrove.png b/common/src/main/resources/assets/cobblemon/textures/pokemon/0775_komala/komala_mangrove.png index ae06de4bef..5cd52bd69e 100644 Binary files a/common/src/main/resources/assets/cobblemon/textures/pokemon/0775_komala/komala_mangrove.png and b/common/src/main/resources/assets/cobblemon/textures/pokemon/0775_komala/komala_mangrove.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/pokemon/0775_komala/komala_oak.png b/common/src/main/resources/assets/cobblemon/textures/pokemon/0775_komala/komala_oak.png index a2ddd07a72..b5ab6643d2 100644 Binary files a/common/src/main/resources/assets/cobblemon/textures/pokemon/0775_komala/komala_oak.png and b/common/src/main/resources/assets/cobblemon/textures/pokemon/0775_komala/komala_oak.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/pokemon/0775_komala/komala_saccharine.png b/common/src/main/resources/assets/cobblemon/textures/pokemon/0775_komala/komala_saccharine.png new file mode 100644 index 0000000000..4e17f24a12 Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/pokemon/0775_komala/komala_saccharine.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/pokemon/0775_komala/komala_spruce.png b/common/src/main/resources/assets/cobblemon/textures/pokemon/0775_komala/komala_spruce.png index d6456d1149..8632fbc30a 100644 Binary files a/common/src/main/resources/assets/cobblemon/textures/pokemon/0775_komala/komala_spruce.png and b/common/src/main/resources/assets/cobblemon/textures/pokemon/0775_komala/komala_spruce.png differ diff --git a/common/src/main/resources/assets/cobblemon/textures/pokemon/0775_komala/komala_warped.png b/common/src/main/resources/assets/cobblemon/textures/pokemon/0775_komala/komala_warped.png new file mode 100644 index 0000000000..d1ea60922f Binary files /dev/null and b/common/src/main/resources/assets/cobblemon/textures/pokemon/0775_komala/komala_warped.png differ diff --git a/common/src/main/resources/data/cobblemon/cosmetic_items/logs.json b/common/src/main/resources/data/cobblemon/cosmetic_items/logs.json index 9c19c8198c..965b2a22b7 100644 --- a/common/src/main/resources/data/cobblemon/cosmetic_items/logs.json +++ b/common/src/main/resources/data/cobblemon/cosmetic_items/logs.json @@ -1,6 +1,14 @@ { "pokemon": ["timburr", "komala"], "cosmeticItems": [ + { + "consumedItem": "#cobblemon:apricorn_logs", + "aspects": ["tree-apricorn"] + }, + { + "consumedItem": "#cobblemon:saccharine_logs", + "aspects": ["tree-saccharine"] + }, { "consumedItem": "#minecraft:oak_logs", "aspects": ["tree-oak"] diff --git a/common/src/main/resources/data/cobblemon/dex_entries/pokemon/alola/komala.json b/common/src/main/resources/data/cobblemon/dex_entries/pokemon/alola/komala.json index 316470ec78..0e70266ed5 100644 --- a/common/src/main/resources/data/cobblemon/dex_entries/pokemon/alola/komala.json +++ b/common/src/main/resources/data/cobblemon/dex_entries/pokemon/alola/komala.json @@ -24,7 +24,11 @@ "tree-jungle", "tree-spruce", "tree-mangrove", - "tree-cherry" + "tree-cherry", + "tree-warped", + "tree-crimson", + "tree-apricorn", + "tree-saccharine" ] } ] diff --git a/common/src/main/resources/data/cobblemon/dex_entries/pokemon/unova/timburr.json b/common/src/main/resources/data/cobblemon/dex_entries/pokemon/unova/timburr.json index de5cb5003c..5ca9a2e3a7 100644 --- a/common/src/main/resources/data/cobblemon/dex_entries/pokemon/unova/timburr.json +++ b/common/src/main/resources/data/cobblemon/dex_entries/pokemon/unova/timburr.json @@ -26,7 +26,8 @@ "tree-mangrove", "tree-cherry", "tree-warped", - "tree-crimson" + "tree-crimson", + "tree-saccharine" ] } ] diff --git a/common/src/main/resources/data/cobblemon/loot_table/blocks/saccharine_honey_log.json b/common/src/main/resources/data/cobblemon/loot_table/blocks/saccharine_log_slathered.json similarity index 100% rename from common/src/main/resources/data/cobblemon/loot_table/blocks/saccharine_honey_log.json rename to common/src/main/resources/data/cobblemon/loot_table/blocks/saccharine_log_slathered.json