fix block drop, prevent smearing honey in water, +log cosmetics
No files matched your search
@@ -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
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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<SaccharineLogSlatheredBlock> = 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<Block, BlockState>) {
|
||||
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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"parent": "cobblemon:block/saccharine_log_slathered"
|
||||
"parent": "cobblemon:block/saccharine_log_slathered_0"
|
||||
}
|
||||
|
After Width: | Height: | Size: 703 B |
|
After Width: | Height: | Size: 687 B |
|
After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 887 B |
|
After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 944 B |
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 864 B |
|
After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 851 B |
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 914 B |
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 838 B |
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 872 B |
|
After Width: | Height: | Size: 938 B |
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 847 B |
|
After Width: | Height: | Size: 1.0 KiB |
@@ -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"]
|
||||
|
||||
@@ -24,7 +24,11 @@
|
||||
"tree-jungle",
|
||||
"tree-spruce",
|
||||
"tree-mangrove",
|
||||
"tree-cherry"
|
||||
"tree-cherry",
|
||||
"tree-warped",
|
||||
"tree-crimson",
|
||||
"tree-apricorn",
|
||||
"tree-saccharine"
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
@@ -26,7 +26,8 @@
|
||||
"tree-mangrove",
|
||||
"tree-cherry",
|
||||
"tree-warped",
|
||||
"tree-crimson"
|
||||
"tree-crimson",
|
||||
"tree-saccharine"
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||