Compare commits

..
Author SHA1 Message Date
whatsy 3973b6ee68 splash plate + framework for future plate implementations 2026-12-01 22:16:34 -05:00
112 changed files with 1083 additions and 298 deletions

No files matched your search

@@ -10,6 +10,7 @@ package com.cobblemon.mod.common
import com.cobblemon.mod.common.api.apricorn.Apricorn
import com.cobblemon.mod.common.api.pokemon.stats.Stats
import com.cobblemon.mod.common.api.types.ElementalTypes
import com.cobblemon.mod.common.block.*
import com.cobblemon.mod.common.block.LecternBlock
import com.cobblemon.mod.common.block.MintBlock.MintType
@@ -28,6 +29,7 @@ import com.cobblemon.mod.common.block.sign.CobblemonWallHangingSignBlock
import com.cobblemon.mod.common.block.sign.CobblemonWallSignBlock
import com.cobblemon.mod.common.block.tmmachine.TMMachineBlock
import com.cobblemon.mod.common.block.general.MintLitterBlock
import com.cobblemon.mod.common.block.typeplate.TypePlateBlock
import com.cobblemon.mod.common.mixin.invoker.BlocksInvoker
import com.cobblemon.mod.common.mixin.invoker.DoorBlockInvoker
import com.cobblemon.mod.common.mixin.invoker.FireBlockInvoker
@@ -473,6 +475,133 @@ object CobblemonBlocks : PlatformRegistry<Registry<Block>, ResourceKey<Registry<
@JvmField
val DUSK_STONE_BLOCK = this.create("dusk_stone_block", Block(BlockBehaviour.Properties.of().mapColor(MapColor.WARPED_HYPHAE).strength(1.0F).sound(CobblemonSounds.EVOLUTION_STONE_BLOCK_SOUNDS).requiresCorrectToolForDrops().instrument(NoteBlockInstrument.BIT)))
@JvmField
val BLANK_PLATE = this.create("blank_plate",
TypePlateBlock(
BlockBehaviour.Properties.of().strength(1.0F).sound(SoundType.METAL).requiresCorrectToolForDrops(),
ElementalTypes.NORMAL
)
)
@JvmField
val FLAME_PLATE = this.create("flame_plate",
TypePlateBlock(
BlockBehaviour.Properties.of().strength(1.0F).sound(SoundType.METAL).requiresCorrectToolForDrops(),
ElementalTypes.FIRE
)
)
@JvmField
val SPLASH_PLATE = this.create("splash_plate",
TypePlateBlock(
BlockBehaviour.Properties.of().strength(1.0F).sound(SoundType.METAL).requiresCorrectToolForDrops(),
ElementalTypes.WATER
)
)
@JvmField
val ZAP_PLATE = this.create("zap_plate",
TypePlateBlock(
BlockBehaviour.Properties.of().strength(1.0F).sound(SoundType.METAL).requiresCorrectToolForDrops(),
ElementalTypes.ELECTRIC
)
)
@JvmField
val MEADOW_PLATE = this.create("meadow_plate",
TypePlateBlock(
BlockBehaviour.Properties.of().strength(1.0F).sound(SoundType.METAL).requiresCorrectToolForDrops(),
ElementalTypes.GRASS
)
)
@JvmField
val ICICLE_PLATE = this.create("icicle_plate",
TypePlateBlock(
BlockBehaviour.Properties.of().strength(1.0F).sound(SoundType.METAL).requiresCorrectToolForDrops(),
ElementalTypes.ICE
)
)
@JvmField
val FIST_PLATE = this.create("fist_plate",
TypePlateBlock(
BlockBehaviour.Properties.of().strength(1.0F).sound(SoundType.METAL).requiresCorrectToolForDrops(),
ElementalTypes.FIGHTING
)
)
@JvmField
val TOXIC_PLATE = this.create("toxic_plate",
TypePlateBlock(
BlockBehaviour.Properties.of().strength(1.0F).sound(SoundType.METAL).requiresCorrectToolForDrops(),
ElementalTypes.POISON
)
)
@JvmField
val EARTH_PLATE = this.create("earth_plate",
TypePlateBlock(
BlockBehaviour.Properties.of().strength(1.0F).sound(SoundType.METAL).requiresCorrectToolForDrops(),
ElementalTypes.GROUND
)
)
@JvmField
val SKY_PLATE = this.create("sky_plate",
TypePlateBlock(
BlockBehaviour.Properties.of().strength(1.0F).sound(SoundType.METAL).requiresCorrectToolForDrops(),
ElementalTypes.FLYING
)
)
@JvmField
val MIND_PLATE = this.create("mind_plate",
TypePlateBlock(
BlockBehaviour.Properties.of().strength(1.0F).sound(SoundType.METAL).requiresCorrectToolForDrops(),
ElementalTypes.PSYCHIC
)
)
@JvmField
val INSECT_PLATE = this.create("insect_plate",
TypePlateBlock(
BlockBehaviour.Properties.of().strength(1.0F).sound(SoundType.METAL).requiresCorrectToolForDrops(),
ElementalTypes.BUG
)
)
@JvmField
val STONE_PLATE = this.create("stone_plate",
TypePlateBlock(
BlockBehaviour.Properties.of().strength(1.0F).sound(SoundType.METAL).requiresCorrectToolForDrops(),
ElementalTypes.ROCK
)
)
@JvmField
val SPOOKY_PLATE = this.create("spooky_plate",
TypePlateBlock(
BlockBehaviour.Properties.of().strength(1.0F).sound(SoundType.METAL).requiresCorrectToolForDrops(),
ElementalTypes.GHOST
)
)
@JvmField
val DRACO_PLATE = this.create("draco_plate",
TypePlateBlock(
BlockBehaviour.Properties.of().strength(1.0F).sound(SoundType.METAL).requiresCorrectToolForDrops(),
ElementalTypes.DRAGON
)
)
@JvmField
val DREAD_PLATE = this.create("dread_plate",
TypePlateBlock(
BlockBehaviour.Properties.of().strength(1.0F).sound(SoundType.METAL).requiresCorrectToolForDrops(),
ElementalTypes.DARK
)
)
@JvmField
val IRON_PLATE = this.create("iron_plate",
TypePlateBlock(
BlockBehaviour.Properties.of().strength(1.0F).sound(SoundType.METAL).requiresCorrectToolForDrops(),
ElementalTypes.STEEL
)
)
@JvmField
val PIXIE_PLATE = this.create("pixie_plate",
TypePlateBlock(
BlockBehaviour.Properties.of().strength(1.0F).sound(SoundType.METAL).requiresCorrectToolForDrops(),
ElementalTypes.FAIRY
)
)
@JvmField
val BLACK_APRICORN = apricornBlock("black_apricorn", Apricorn.BLACK)
@JvmField
@@ -1212,6 +1212,43 @@ object CobblemonItems : PlatformRegistry<Registry<Item>, ResourceKey<Registry<It
@JvmField
val BLACK_TUMBLESTONE_BLOCK = blockItem("black_tumblestone_block", CobblemonBlocks.BLACK_TUMBLESTONE_BLOCK)
@JvmField
val BLANK_PLATE = blockItem("blank_plate", CobblemonBlocks.BLANK_PLATE)
@JvmField
val FLAME_PLATE = blockItem("flame_plate", CobblemonBlocks.FLAME_PLATE)
@JvmField
val SPLASH_PLATE = blockItem("splash_plate", CobblemonBlocks.SPLASH_PLATE)
@JvmField
val ZAP_PLATE = blockItem("zap_plate", CobblemonBlocks.ZAP_PLATE)
@JvmField
val MEADOW_PLATE = blockItem("meadow_plate", CobblemonBlocks.MEADOW_PLATE)
@JvmField
val ICICLE_PLATE = blockItem("icicle_plate", CobblemonBlocks.ICICLE_PLATE)
@JvmField
val FIST_PLATE = blockItem("fist_plate", CobblemonBlocks.FIST_PLATE)
@JvmField
val TOXIC_PLATE = blockItem("toxic_plate", CobblemonBlocks.TOXIC_PLATE)
@JvmField
val EARTH_PLATE = blockItem("earth_plate", CobblemonBlocks.EARTH_PLATE)
@JvmField
val SKY_PLATE = blockItem("sky_plate", CobblemonBlocks.SKY_PLATE)
@JvmField
val MIND_PLATE = blockItem("mind_plate", CobblemonBlocks.MIND_PLATE)
@JvmField
val INSECT_PLATE = blockItem("insect_plate", CobblemonBlocks.INSECT_PLATE)
@JvmField
val STONE_PLATE = blockItem("stone_plate", CobblemonBlocks.STONE_PLATE)
@JvmField
val SPOOKY_PLATE = blockItem("spooky_plate", CobblemonBlocks.SPOOKY_PLATE)
@JvmField
val DRACO_PLATE = blockItem("draco_plate", CobblemonBlocks.DRACO_PLATE)
@JvmField
val DREAD_PLATE = blockItem("dread_plate", CobblemonBlocks.DREAD_PLATE)
@JvmField
val IRON_PLATE = blockItem("iron_plate", CobblemonBlocks.IRON_PLATE)
@JvmField
val PIXIE_PLATE = blockItem("pixie_plate", CobblemonBlocks.PIXIE_PLATE)
@JvmField
val TYPE_GEM_CORE = blockItem("deepslate_crystal_core", CobblemonBlocks.TYPE_GEM_CORE)
@@ -26,9 +26,7 @@ class BagCategory(
val icon: ResourceLocation,
val whiteListTag: TagKey<Item>,
val blackListTag: TagKey<Item>,
val maxCount: Int,
val defaultSort: ResourceLocation?,
val sortMethods: List<ResourceLocation>?
val maxCount: Int
): StringRepresentable {
@Transient
var identifier: ResourceLocation = identifier
@@ -44,13 +42,6 @@ class BagCategory(
return false
}
fun getAllSortMethods(): List<ResourceLocation> {
val returnList = mutableListOf<ResourceLocation>()
returnList.add(defaultSort ?: BagSortComparators.DEFAULT_SORT)
sortMethods?.let { returnList.addAll(it) }
return returnList
}
fun encode(buffer: RegistryFriendlyByteBuf) {
buffer.writeIdentifier(identifier)
buffer.writeInt(order)
@@ -58,10 +49,6 @@ class BagCategory(
buffer.writeIdentifier(whiteListTag.location)
buffer.writeIdentifier(blackListTag.location)
buffer.writeInt(maxCount)
buffer.writeIdentifier(defaultSort ?: BagSortComparators.DEFAULT_SORT)
val sortMethods = sortMethods.orEmpty()
buffer.writeInt(sortMethods.size)
buffer.writeCollection(sortMethods) { buf, method -> buf.writeIdentifier(method) }
}
companion object {
@@ -72,9 +59,7 @@ class BagCategory(
buffer.readIdentifier(),
TagKey.create(Registries.ITEM, buffer.readIdentifier()),
TagKey.create(Registries.ITEM, buffer.readIdentifier()),
buffer.readInt(),
buffer.readIdentifier(),
buffer.readList { it.readIdentifier() }
buffer.readInt()
)
}
}
@@ -1,16 +0,0 @@
package com.cobblemon.mod.common.api.bag
import net.minecraft.resources.ResourceLocation
import net.minecraft.world.item.ItemStack
/**
* Event to register code-based functions to define sorting order
* Function compares 2 itemStacks, returns 0 if they are equal, less than 0
*/
class BagSortComparatorRegistryEvent {
val comparators = mutableMapOf<ResourceLocation, Comparator<ItemStack>>()
fun registerFunction(id: ResourceLocation, comparator: Comparator<ItemStack>) {
comparators[id] = comparator
}
}
@@ -1,43 +0,0 @@
package com.cobblemon.mod.common.api.bag
import com.cobblemon.mod.common.api.events.CobblemonEvents
import com.cobblemon.mod.common.util.cobblemonResource
import net.minecraft.resources.ResourceLocation
import net.minecraft.world.item.CreativeModeTabs
import net.minecraft.world.item.Item
import net.minecraft.world.item.ItemStack
object BagSortComparators {
private val SORT_METHODS = mutableMapOf<ResourceLocation, Comparator<ItemStack>>()
val INPUT_ORDER = cobblemonResource("input_order")
val ALPHABETICAL = cobblemonResource("alphabetical")
val CREATIVE_MENU = cobblemonResource("creative_menu")
val DEFAULT_SORT = CREATIVE_MENU
fun registerComparator(type: ResourceLocation, comparator: Comparator<ItemStack>) {
SORT_METHODS[type] = comparator
}
fun getComparator(type: ResourceLocation): Comparator<ItemStack>? {
return SORT_METHODS[type]
}
private val creativeItemOrder: Map<Item, Int> by lazy {
buildMap {
CreativeModeTabs.searchTab().displayItems.forEachIndexed { index, stack ->
getOrPut(stack.item) { index }
}
}
}
fun setupComparators() {
registerComparator(ALPHABETICAL, compareBy { it.displayName.toString() })
registerComparator(CREATIVE_MENU, compareBy { creativeItemOrder[it.item] ?: Int.MAX_VALUE })
registerComparator(INPUT_ORDER, compareBy { null })
CobblemonEvents.BAG_SORTING_REGISTRATION.post(BagSortComparatorRegistryEvent()) { event ->
event.comparators.forEach { (type, comparator) -> registerComparator(type, comparator) }
}
}
}
@@ -8,7 +8,6 @@
package com.cobblemon.mod.common.api.events
import com.cobblemon.mod.common.api.bag.BagSortComparatorRegistryEvent
import com.cobblemon.mod.common.api.events.battles.BattleFaintedEvent
import com.cobblemon.mod.common.api.events.battles.BattleFledEvent
import com.cobblemon.mod.common.api.events.battles.BattleFleeAttemptEvent
@@ -394,8 +393,4 @@ object CobblemonEvents {
val HABITAT_SETTINGS_SAVED_PRE = CancelableObservable<SaveHabitatBlockSettingsEvent.Pre>()
@JvmField
val HABITAT_SETTINGS_SAVED_POST = EventObservable<SaveHabitatBlockSettingsEvent.Post>()
// Bag
@JvmField
val BAG_SORTING_REGISTRATION = EventObservable<BagSortComparatorRegistryEvent>()
}
@@ -0,0 +1,149 @@
package com.cobblemon.mod.common.block.typeplate
import com.cobblemon.mod.common.CobblemonBlocks
import com.cobblemon.mod.common.api.types.ElementalType
import com.cobblemon.mod.common.api.types.ElementalTypes
import com.mojang.serialization.MapCodec
import com.mojang.serialization.codecs.RecordCodecBuilder
import net.minecraft.core.BlockPos
import net.minecraft.core.Direction
import net.minecraft.server.level.ServerLevel
import net.minecraft.util.RandomSource
import net.minecraft.world.item.context.BlockPlaceContext
import net.minecraft.world.level.BlockGetter
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.SimpleWaterloggedBlock
import net.minecraft.world.level.block.state.BlockState
import net.minecraft.world.level.block.state.StateDefinition
import net.minecraft.world.level.block.state.properties.BlockStateProperties
import net.minecraft.world.level.block.state.properties.BooleanProperty
import net.minecraft.world.level.block.state.properties.IntegerProperty
import net.minecraft.world.level.material.FluidState
import net.minecraft.world.level.material.Fluids
import net.minecraft.world.phys.shapes.CollisionContext
import net.minecraft.world.phys.shapes.Shapes
import net.minecraft.world.phys.shapes.VoxelShape
/**
* Most logic should be diverted to a [TypePlateMechanic] class whenever possible.
*/
class TypePlateBlock(properties: Properties, val type: ElementalType) : DirectionalBlock(properties.noOcclusion()), SimpleWaterloggedBlock {
companion object {
val CODEC: MapCodec<TypePlateBlock> = RecordCodecBuilder.mapCodec { instance ->
instance.group(
propertiesCodec(),
ElementalType.BY_STRING_CODEC.fieldOf("type").forGetter(TypePlateBlock::type)
).apply(instance, ::TypePlateBlock)
}
val ACTIVATED = BooleanProperty.create("activated")
val ROTATION = IntegerProperty.create("rotation", 0, 3)
private val SHAPES = mapOf(
Direction.UP to Shapes.box(3.0 / 16.0, 0.0, 2.0 / 16.0, 13.0 / 16.0, 3.0 / 16.0, 14.0 / 16.0),
Direction.DOWN to Shapes.box(3.0 / 16.0, 13.0 / 16.0, 2.0 / 16.0, 13.0 / 16.0, 1.0, 14.0 / 16.0),
Direction.NORTH to Shapes.box(3.0 / 16.0, 2.0 / 16.0, 13.0 / 16.0, 13.0 / 16.0, 14.0 / 16.0, 1.0),
Direction.SOUTH to Shapes.box(3.0 / 16.0, 2.0 / 16.0, 0.0, 13.0 / 16.0, 14.0 / 16.0, 3.0 / 16.0),
Direction.EAST to Shapes.box(0.0, 2.0 / 16.0, 3.0 / 16.0, 3.0 / 16.0, 14.0 / 16.0, 13.0 / 16.0),
Direction.WEST to Shapes.box(13.0 / 16.0, 2.0 / 16.0, 3.0 / 16.0, 1.0, 14.0 / 16.0, 13.0 / 16.0)
)
private val typeToBlockMap: Map<Block, ElementalType> by lazy {
mapOf(
CobblemonBlocks.BLANK_PLATE to ElementalTypes.NORMAL,
CobblemonBlocks.FLAME_PLATE to ElementalTypes.FIRE,
CobblemonBlocks.SPLASH_PLATE to ElementalTypes.WATER,
CobblemonBlocks.ZAP_PLATE to ElementalTypes.ELECTRIC,
CobblemonBlocks.MEADOW_PLATE to ElementalTypes.GRASS,
CobblemonBlocks.ICICLE_PLATE to ElementalTypes.ICE,
CobblemonBlocks.FIST_PLATE to ElementalTypes.FIGHTING,
CobblemonBlocks.TOXIC_PLATE to ElementalTypes.POISON,
CobblemonBlocks.EARTH_PLATE to ElementalTypes.GROUND,
CobblemonBlocks.SKY_PLATE to ElementalTypes.FLYING,
CobblemonBlocks.MIND_PLATE to ElementalTypes.PSYCHIC,
CobblemonBlocks.INSECT_PLATE to ElementalTypes.BUG,
CobblemonBlocks.STONE_PLATE to ElementalTypes.ROCK,
CobblemonBlocks.SPOOKY_PLATE to ElementalTypes.GHOST,
CobblemonBlocks.DRACO_PLATE to ElementalTypes.DRAGON,
CobblemonBlocks.DREAD_PLATE to ElementalTypes.DARK,
CobblemonBlocks.IRON_PLATE to ElementalTypes.STEEL,
CobblemonBlocks.PIXIE_PLATE to ElementalTypes.FAIRY
)
}
private val typeToMechanicMap: Map<ElementalType, TypePlateMechanic> by lazy {
mapOf(
ElementalTypes.WATER to WaterPlateMechanic()
)
}
fun getPlateMechanic(type: ElementalType): TypePlateMechanic? {
return typeToMechanicMap[type]
}
fun getPlateType(block: Block): ElementalType? {
return typeToBlockMap[block]
}
fun getTypePlate(type: ElementalType): Block? {
return typeToBlockMap.entries.firstOrNull { it.value == type }?.key
}
}
init {
registerDefaultState(stateDefinition.any()
.setValue(FACING, Direction.UP)
.setValue(ROTATION, 0)
.setValue(ACTIVATED, false)
.setValue(BlockStateProperties.WATERLOGGED, false)
)
}
override fun getStateForPlacement(context: BlockPlaceContext): BlockState {
val rotation = when (context.horizontalDirection.opposite) {
Direction.EAST -> 1
Direction.SOUTH -> 2
Direction.WEST -> 3
else -> 0
}
return defaultBlockState()
.setValue(FACING, context.clickedFace)
.setValue(ROTATION, rotation)
.setValue(BlockStateProperties.WATERLOGGED, context.level.isWaterAt(context.clickedPos))
}
override fun onPlace(state: BlockState, level: Level, pos: BlockPos, oldState: BlockState, movedByPiston: Boolean) {
getPlateMechanic(type)?.onPlace(state, level, pos, oldState, movedByPiston, this)
super.onPlace(state, level, pos, oldState, movedByPiston)
}
override fun tick(state: BlockState, level: ServerLevel, pos: BlockPos, random: RandomSource) {
getPlateMechanic(type)?.tick(state, level, pos, random, this)
super.tick(state, level, pos, random)
}
override fun getShape(state: BlockState, level: BlockGetter, pos: BlockPos, context: CollisionContext): VoxelShape {
val facing = state.getValue(FACING)
if (facing.axis == Direction.Axis.Y && state.getValue(ROTATION) % 2 == 1) {
return if (facing == Direction.UP) {
Shapes.box(2.0 / 16.0, 0.0, 3.0 / 16.0, 14.0 / 16.0, 3.0 / 16.0, 13.0 / 16.0)
} else {
Shapes.box(2.0 / 16.0, 13.0 / 16.0, 3.0 / 16.0, 14.0 / 16.0, 1.0, 13.0 / 16.0)
}
}
return SHAPES.getValue(facing)
}
override fun createBlockStateDefinition(builder: StateDefinition.Builder<Block?, BlockState?>) {
builder.add(FACING, ROTATION, ACTIVATED, BlockStateProperties.WATERLOGGED)
}
override fun getFluidState(state: BlockState): FluidState {
return if (state.getValue(BlockStateProperties.WATERLOGGED)) Fluids.WATER.getSource(false) else super.getFluidState(state)
}
override fun codec(): MapCodec<out DirectionalBlock> = CODEC
}
@@ -0,0 +1,17 @@
package com.cobblemon.mod.common.block.typeplate
import net.minecraft.core.BlockPos
import net.minecraft.server.level.ServerLevel
import net.minecraft.util.RandomSource
import net.minecraft.world.level.Level
import net.minecraft.world.level.block.state.BlockState
/**
* Represents a mechanic tied to a specific type plate. Used to keep [TypePlateBlock] from turning into spaghetti.
* [onPlace] and [onScheduledTick] will automatically run if the corresponding type plate is placed.
* Add more methods as necessary.
*/
interface TypePlateMechanic {
fun onPlace(state: BlockState, level: Level, pos: BlockPos, oldState: BlockState, movedByPiston: Boolean, block: TypePlateBlock) {}
fun tick(state: BlockState, level: ServerLevel, pos: BlockPos, random: RandomSource, block: TypePlateBlock) {}
}
@@ -0,0 +1,68 @@
package com.cobblemon.mod.common.block.typeplate
import com.cobblemon.mod.common.CobblemonBlocks
import net.minecraft.core.BlockPos
import net.minecraft.server.level.ServerLevel
import net.minecraft.sounds.SoundEvents
import net.minecraft.sounds.SoundSource
import net.minecraft.util.RandomSource
import net.minecraft.world.level.Level
import net.minecraft.world.level.block.entity.ConduitBlockEntity
import net.minecraft.world.level.block.state.BlockState
/**
* Handles spawning Manaphy.
*/
class WaterPlateMechanic() : TypePlateMechanic {
private fun isInsideActiveConduit(level: Level, pos: BlockPos): BlockPos? {
for (x in -1..1) {
for (y in -1..1) {
for (z in -1..1) {
println("$x $y $z")
if (x * x + y * y + z * z > 256) continue
val blockEntity = level.getBlockEntity(pos.offset(x, y, z))
if (blockEntity is ConduitBlockEntity && blockEntity.isActive) {
return pos.offset(x, y, z)
}
}
}
}
return null
}
override fun onPlace(
state: BlockState,
level: Level,
pos: BlockPos,
oldState: BlockState,
movedByPiston: Boolean,
block: TypePlateBlock
) {
if (level.isClientSide) return
val activated = level.getBlockState(pos).getValue(TypePlateBlock.ACTIVATED)
val conduitScan = isInsideActiveConduit(level, pos)
if (conduitScan != null && !activated) {
level.setBlockAndUpdate(pos, state.setValue(TypePlateBlock.ACTIVATED, true))
level.playSound(null, pos, SoundEvents.ENCHANTMENT_TABLE_USE, SoundSource.BLOCKS)
// IF YOU'RE TWEAKING THE EFFECT, THE NUMBER HERE IS THE DELAY BETWEEN START AND END OF ACTION EFFECT
level.scheduleTick(pos, block, 100)
}
}
override fun tick(
state: BlockState,
level: ServerLevel,
pos: BlockPos,
random: RandomSource,
block: TypePlateBlock
) {
val conduitScan = isInsideActiveConduit(level, pos)
if (conduitScan != null) {
level.setBlockAndUpdate(conduitScan, CobblemonBlocks.FLAME_ORB.defaultBlockState())
level.setBlockAndUpdate(pos, state.setValue(TypePlateBlock.ACTIVATED, false))
level.playSound(null, pos, SoundEvents.BEACON_ACTIVATE, SoundSource.BLOCKS)
}
}
}
@@ -1,60 +0,0 @@
/*
* Copyright (C) 2023 Cobblemon Contributors
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
package com.cobblemon.mod.common.client.gui.bag
import com.cobblemon.mod.common.api.bag.BagCategories
import com.cobblemon.mod.common.api.gui.blitk
import com.cobblemon.mod.common.client.gui.CobblemonRenderable
import com.cobblemon.mod.common.util.cobblemonResource
import com.cobblemon.mod.common.util.lang
import net.minecraft.client.Minecraft
import net.minecraft.client.gui.GuiGraphics
import net.minecraft.client.gui.components.Button
import net.minecraft.client.sounds.SoundManager
import net.minecraft.network.chat.Component
class BagCycleSortButton(
x: Int,
y: Int,
val parent: CobblemonBagScreen,
val action: OnPress
): Button(x, y, WIDTH, HEIGHT, Component.empty(), action, DEFAULT_NARRATION), CobblemonRenderable {
companion object {
private const val WIDTH = 12
private const val HEIGHT = 10
private val LEFT_BUTTON = cobblemonResource("textures/gui/bag/button_left.png")
}
var enabled = false
override fun renderWidget(context: GuiGraphics, mouseX: Int, mouseY: Int, partialTick: Float) {
if (!enabled) return
blitk(
matrixStack = context.pose(),
texture = LEFT_BUTTON,
x = x / 0.5F, y = y / 0.5F,
width = WIDTH * 2, height = HEIGHT * 2,
textureHeight = 40,
vOffset = if (enabled) 20 else 0,
scale = 0.5f
)
if (isHovered) {
val currentCategory = BagCategories.getOrderedCategoriesList().getOrNull(parent.menu.currentlySelectedCategory)
val currentSort = currentCategory?.getAllSortMethods()[parent.menu.currentlySelectedSort]
currentSort?.let {
val lang = lang("bag.sort.${it.path}")
context.renderTooltip(Minecraft.getInstance().font, lang, mouseX, mouseY)
}
}
}
override fun playDownSound(handler: SoundManager) {}
}
@@ -1,58 +0,0 @@
/*
* Copyright (C) 2023 Cobblemon Contributors
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
package com.cobblemon.mod.common.client.gui.bag
import com.cobblemon.mod.common.api.gui.blitk
import com.cobblemon.mod.common.client.gui.CobblemonRenderable
import com.cobblemon.mod.common.util.cobblemonResource
import com.cobblemon.mod.common.util.lang
import net.minecraft.client.Minecraft
import net.minecraft.client.gui.GuiGraphics
import net.minecraft.client.gui.components.Button
import net.minecraft.client.sounds.SoundManager
import net.minecraft.network.chat.Component
class BagSortAscendingButton(
x: Int,
y: Int,
val parent: CobblemonBagScreen,
val action: OnPress
): Button(x, y, WIDTH, HEIGHT, Component.empty(), action, DEFAULT_NARRATION), CobblemonRenderable {
companion object {
private const val WIDTH = 12
private const val HEIGHT = 10
private val LEFT_BUTTON = cobblemonResource("textures/gui/bag/button_left.png")
}
var enabled = false
override fun renderWidget(context: GuiGraphics, mouseX: Int, mouseY: Int, partialTick: Float) {
if (!enabled) return
blitk(
matrixStack = context.pose(),
texture = LEFT_BUTTON,
x = x / 0.5F, y = y / 0.5F,
width = WIDTH * 2, height = HEIGHT * 2,
textureHeight = 40,
vOffset = if (enabled) 20 else 0,
scale = 0.5f
)
if (isHovered) {
if (parent.menu.ascending) {
context.renderTooltip(Minecraft.getInstance().font, lang("bag.sort.ascending"), mouseX, mouseY)
} else {
context.renderTooltip(Minecraft.getInstance().font, lang("bag.sort.descending"), mouseX, mouseY)
}
}
}
override fun playDownSound(handler: SoundManager) {}
}
@@ -74,8 +74,6 @@ class CobblemonBagScreen(
lateinit var allItemsCategoryWidget: BagCategoryButton
lateinit var leftCategoryPageButton: BagCategoryPageButton
lateinit var rightCategoryPageButton: BagCategoryPageButton
lateinit var cycleCategorySortButton: BagCycleSortButton
lateinit var ascendingButton: BagSortAscendingButton
var currentCategoryPage = 0
var lastCategory = menu.currentlySelectedCategory
var lastScroll = menu.scroll
@@ -96,7 +94,6 @@ class CobblemonBagScreen(
BagCategoryButton(leftPos + 76 + i * 33, topPos, this, i) {
if (menu.currentlySelectedCategory != i) {
menu.changeCategory(i)
updateSortButtonState(false)
playSound(CobblemonSounds.ITEM_BAG_CLICK)
}
}.also { addRenderableWidget(it) }
@@ -107,7 +104,6 @@ class CobblemonBagScreen(
allItemsCategoryWidget = BagCategoryButton(leftPos + 214, topPos, this, -1) {
if (menu.currentlySelectedCategory != -1) {
menu.changeCategory(-1)
updateSortButtonState(false)
playSound(CobblemonSounds.ITEM_BAG_CLICK)
}
}.also { addRenderableWidget(it) }
@@ -118,27 +114,12 @@ class CobblemonBagScreen(
playSound(CobblemonSounds.ITEM_BAG_CLICK)
}
}.also { addRenderableWidget(it) }
leftCategoryPageButton.enabled = false
rightCategoryPageButton = BagCategoryPageButton(leftPos + 229, topPos + 32, this, false) {
if (rightCategoryPageButton.enabled) {
cycleCategoryPage(true)
playSound(CobblemonSounds.ITEM_BAG_CLICK)
}
}.also { addRenderableWidget(it) }
cycleCategorySortButton = BagCycleSortButton(
leftPos + 200, topPos + 32, this
) {
updateSortButtonState(true)
}.also { addRenderableWidget(it) }
ascendingButton = BagSortAscendingButton(
leftPos + 180, topPos + 32, this
) {
if (ascendingButton.enabled) {
playSound(CobblemonSounds.ITEM_BAG_CLICK)
menu.ascending = !menu.ascending
menu.setupSlotsBasedOnContent()
}
}.also { addRenderableWidget(it) }
playSound(CobblemonSounds.ITEM_BAG_OPEN)
}
@@ -353,38 +334,12 @@ class CobblemonBagScreen(
BagCategoryButton(leftPos + 76 + i * 33, topPos, this, adjustedIndex) {
playSound(CobblemonSounds.ITEM_BAG_CLICK)
menu.changeCategory(adjustedIndex)
updateSortButtonState(false)
}.also { addRenderableWidget(it) }
)
} else break
}
leftCategoryPageButton.enabled = currentCategoryPage > 0
rightCategoryPageButton.enabled = currentCategoryPage < (orderedCategories.size - 1) / 4
updateSortButtonState(false)
}
/** Updates the state of [cycleCategorySortButton]. If cycle = true, will cycle to the next sort type. */
private fun updateSortButtonState(cycle: Boolean) {
val currentCategory = BagCategories.getOrderedCategoriesList().getOrNull(menu.currentlySelectedCategory)
if (menu.currentlySelectedCategory == -1) {
cycleCategorySortButton.enabled = false
ascendingButton.enabled = false
return
}
cycleCategorySortButton.enabled = currentCategory != null && currentCategory.getAllSortMethods().size > 1
ascendingButton.enabled = currentCategory != null && currentCategory.getAllSortMethods().size > 1
if (cycle && cycleCategorySortButton.enabled) {
val currentCategory = BagCategories.getOrderedCategoriesList().getOrNull(menu.currentlySelectedCategory) ?: return
playSound(CobblemonSounds.ITEM_BAG_CLICK)
if (menu.currentlySelectedSort == currentCategory.getAllSortMethods().size-1) {
menu.currentlySelectedSort = 0
} else { menu.currentlySelectedSort++ }
menu.setupSlotsBasedOnContent()
sendToServer(UpdateBagMenuDataPacket(menu.currentlySelectedCategory, menu.scroll, menu.currentlySelectedSort))
}
}
fun updateScrollValue(mouseY: Double) {
@@ -403,7 +358,7 @@ class CobblemonBagScreen(
if (slotId in CobblemonBagMenu.BAG_SLOTS && (lastCategory != menu.currentlySelectedCategory || lastScroll != menu.scroll)) {
lastCategory = menu.currentlySelectedCategory
lastScroll = menu.scroll
sendToServer(UpdateBagMenuDataPacket(menu.currentlySelectedCategory, menu.scroll, menu.currentlySelectedSort)) // Synchronize this data
sendToServer(UpdateBagMenuDataPacket(menu.currentlySelectedCategory, menu.scroll)) // Synchronize this data
}
super.slotClicked(slot, slotId, mouseButton, type)
}
@@ -25,7 +25,6 @@ object UpdateBagMenuDataHandler : ServerNetworkPacketHandler<UpdateBagMenuDataPa
val menu = player.containerMenu as? CobblemonBagMenu ?: return
menu.currentlySelectedCategory = packet.categoryId
menu.scroll = packet.scroll
menu.currentlySelectedSort = packet.sort
menu.setupSlotsBasedOnContent()
}
}
@@ -237,6 +237,12 @@ class CobblemonConfig {
@CobblemonConfigField(Category.Spawning, lang = "honey_slather_shiny_chance", SERVER)
var honeySlatherShinyChance = 4000
@CobblemonConfigField(Category.Spawning, lang = "manaphy_shiny_chance", SERVER)
var manaphyShinyChance = 200
@CobblemonConfigField(Category.Spawning, lang = "manaphy_alpha_chance", SERVER)
var manaphyAlphaChance = 50
@CobblemonConfigField(Category.Pokemon, lang = "shiny_notice_particles_distance", CLIENT)
var shinyNoticeParticlesDistance = 24F
@@ -12,7 +12,6 @@ import com.cobblemon.mod.common.*
import com.cobblemon.mod.common.Cobblemon.LOGGER
import com.cobblemon.mod.common.api.abilities.Abilities
import com.cobblemon.mod.common.api.bag.BagCategories
import com.cobblemon.mod.common.api.bag.BagSortComparators
import com.cobblemon.mod.common.api.berry.Berries
import com.cobblemon.mod.common.api.cooking.Seasonings
import com.cobblemon.mod.common.api.data.DataProvider
@@ -124,7 +123,6 @@ object CobblemonDataProvider : DataProvider {
this.register(TechnicalMachines, reloadable = false)
this.register(BagCategories, reloadable = false)
SpawnBait.Effects.setupEffects()
BagSortComparators.setupComparators()
PlatformEvents.SERVER_PLAYER_LOGOUT.subscribe {
synchronizedPlayerIds.remove(it.player.uuid)
@@ -14,8 +14,6 @@ import com.cobblemon.mod.common.CobblemonSounds
import com.cobblemon.mod.common.advancement.CobblemonCriteria
import com.cobblemon.mod.common.advancement.criterion.PokemonInteractContext
import com.cobblemon.mod.common.api.bag.BagCategories
import com.cobblemon.mod.common.api.bag.BagCategory
import com.cobblemon.mod.common.api.bag.BagSortComparators
import com.cobblemon.mod.common.api.item.PokemonSelectingItem
import com.cobblemon.mod.common.api.storage.party.PartyStore
import com.cobblemon.mod.common.api.tags.CobblemonItemTags
@@ -59,8 +57,6 @@ class CobblemonBagMenu: AbstractContainerMenu {
var scroll = 0
var maxScroll = 0
var categoryItemCounts = mutableListOf<Int>()
var currentlySelectedSort = 0
var ascending = true
constructor(containerId: Int, playerInventory: Inventory): super(CobblemonMenuType.COBBLEMON_BAG, containerId) {
this.playerInventory = playerInventory
@@ -82,23 +78,6 @@ class CobblemonBagMenu: AbstractContainerMenu {
calculateCategoriesItemCounts()
}
private fun sort(items: MutableList<ItemStack>, category: BagCategory?): List<ItemStack> {
if (category == null) return items
val sortMethod = category.getAllSortMethods().getOrNull(currentlySelectedSort)
?: category.defaultSort
?: BagSortComparators.DEFAULT_SORT
val comparator = BagSortComparators.getComparator(sortMethod)
?: BagSortComparators.getComparator(category.defaultSort ?: BagSortComparators.DEFAULT_SORT)
?: return items
return if (ascending) {
items.sortedWith(comparator)
} else {
items.sortedWith(comparator).asReversed()
}
}
private fun initializeSlots(playerInventory: Inventory) {
for ((index, _) in BAG_SLOTS.withIndex()) {
val i = index / 8
@@ -141,17 +120,9 @@ class CobblemonBagMenu: AbstractContainerMenu {
}
}
val items = bagContainer.items
val indexByStack = mutableMapOf<ItemStack, Int>()
items.forEachIndexed { i, stack -> indexByStack[stack] = i }
val orderedCategories = BagCategories.getOrderedCategoriesList()
val category = if (currentlySelectedCategory == -1) null else orderedCategories[currentlySelectedCategory]
val sortedItems = sort(items, category)
var slotId = BAG_SLOTS.first - 8 * scroll
sortedItems.forEach { itemStack ->
val index = indexByStack[itemStack] ?: return@forEach
if (category == null || category.itemIsValid(itemStack)) {
bagContainer.items.forEachIndexed { index, itemStack ->
if (currentlySelectedCategory == -1 || BagCategories.getOrderedCategoriesList()[currentlySelectedCategory].itemIsValid(itemStack)) {
val stackCount = ceil(itemStack.count.toFloat() / itemStack.maxStackSize).toInt()
for (i in 0..<stackCount) {
if (slotId in BAG_SLOTS) {
@@ -160,7 +131,7 @@ class CobblemonBagMenu: AbstractContainerMenu {
slot.slotOverflowValue = i
}
slotId += 1
if (slotId > BAG_SLOTS.last) return@forEach
if (slotId > BAG_SLOTS.last) return@forEachIndexed
}
}
}
@@ -187,7 +158,6 @@ class CobblemonBagMenu: AbstractContainerMenu {
fun changeCategory(categoryId: Int) {
currentlySelectedCategory = categoryId
currentlySelectedSort = 0
scroll = 0
setupSlotsBasedOnContent()
}
@@ -477,6 +477,25 @@ object CobblemonItemGroups {
entries.accept(CobblemonItems.TYPE_GEM_BLOCK_STEEL)
entries.accept(CobblemonItems.TYPE_GEM_BLOCK_FAIRY)
entries.accept(CobblemonItems.BLANK_PLATE)
entries.accept(CobblemonItems.FLAME_PLATE)
entries.accept(CobblemonItems.SPLASH_PLATE)
entries.accept(CobblemonItems.ZAP_PLATE)
entries.accept(CobblemonItems.MEADOW_PLATE)
entries.accept(CobblemonItems.ICICLE_PLATE)
entries.accept(CobblemonItems.FIST_PLATE)
entries.accept(CobblemonItems.TOXIC_PLATE)
entries.accept(CobblemonItems.EARTH_PLATE)
entries.accept(CobblemonItems.SKY_PLATE)
entries.accept(CobblemonItems.MIND_PLATE)
entries.accept(CobblemonItems.INSECT_PLATE)
entries.accept(CobblemonItems.STONE_PLATE)
entries.accept(CobblemonItems.SPOOKY_PLATE)
entries.accept(CobblemonItems.DRACO_PLATE)
entries.accept(CobblemonItems.DREAD_PLATE)
entries.accept(CobblemonItems.IRON_PLATE)
entries.accept(CobblemonItems.PIXIE_PLATE)
entries.accept(CobblemonItems.POLISHED_TUMBLESTONE)
entries.accept(CobblemonItems.POLISHED_TUMBLESTONE_STAIRS)
entries.accept(CobblemonItems.POLISHED_TUMBLESTONE_SLAB)
@@ -12,11 +12,11 @@ import com.cobblemon.mod.common.api.net.NetworkPacket
import com.cobblemon.mod.common.util.cobblemonResource
import net.minecraft.network.RegistryFriendlyByteBuf
class UpdateBagMenuDataPacket(val categoryId: Int, val scroll: Int, val sort: Int): NetworkPacket<UpdateBagMenuDataPacket> {
class UpdateBagMenuDataPacket(val categoryId: Int, val scroll: Int): NetworkPacket<UpdateBagMenuDataPacket> {
companion object {
val ID = cobblemonResource("update_bag_menu_data")
fun decode(buffer: RegistryFriendlyByteBuf): UpdateBagMenuDataPacket {
return UpdateBagMenuDataPacket(buffer.readInt(), buffer.readInt(), buffer.readInt())
return UpdateBagMenuDataPacket(buffer.readInt(), buffer.readInt())
}
}
@@ -24,6 +24,5 @@ class UpdateBagMenuDataPacket(val categoryId: Int, val scroll: Int, val sort: In
override fun encode(buffer: RegistryFriendlyByteBuf) {
buffer.writeInt(categoryId)
buffer.writeInt(scroll)
buffer.writeInt(sort)
}
}
@@ -0,0 +1,17 @@
{
"multipart": [
{ "when": { "facing": "down", "rotation": 0, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/blank_plate", "x": 180 } },
{ "when": { "facing": "down", "rotation": 1, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/blank_plate", "x": 180, "y": 90 } },
{ "when": { "facing": "down", "rotation": 2, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/blank_plate", "x": 180, "y": 180 } },
{ "when": { "facing": "down", "rotation": 3, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/blank_plate", "x": 180, "y": 270 } },
{ "when": { "facing": "east", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/blank_plate", "x": 90, "y": 90 } },
{ "when": { "facing": "north", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/blank_plate", "x": 90 } },
{ "when": { "facing": "south", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/blank_plate", "x": 90, "y": 180 } },
{ "when": { "facing": "west", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/blank_plate", "x": 90, "y": 270 } },
{ "when": { "facing": "up", "rotation": 0, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/blank_plate" } },
{ "when": { "facing": "up", "rotation": 1, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/blank_plate", "y": 90 } },
{ "when": { "facing": "up", "rotation": 2, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/blank_plate", "y": 180 } },
{ "when": { "facing": "up", "rotation": 3, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/blank_plate", "y": 270 } }
]
}
@@ -0,0 +1,17 @@
{
"multipart": [
{ "when": { "facing": "down", "rotation": 0, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/draco_plate", "x": 180 } },
{ "when": { "facing": "down", "rotation": 1, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/draco_plate", "x": 180, "y": 90 } },
{ "when": { "facing": "down", "rotation": 2, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/draco_plate", "x": 180, "y": 180 } },
{ "when": { "facing": "down", "rotation": 3, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/draco_plate", "x": 180, "y": 270 } },
{ "when": { "facing": "east", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/draco_plate", "x": 90, "y": 90 } },
{ "when": { "facing": "north", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/draco_plate", "x": 90 } },
{ "when": { "facing": "south", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/draco_plate", "x": 90, "y": 180 } },
{ "when": { "facing": "west", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/draco_plate", "x": 90, "y": 270 } },
{ "when": { "facing": "up", "rotation": 0, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/draco_plate" } },
{ "when": { "facing": "up", "rotation": 1, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/draco_plate", "y": 90 } },
{ "when": { "facing": "up", "rotation": 2, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/draco_plate", "y": 180 } },
{ "when": { "facing": "up", "rotation": 3, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/draco_plate", "y": 270 } }
]
}
@@ -0,0 +1,17 @@
{
"multipart": [
{ "when": { "facing": "down", "rotation": 0, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/dread_plate", "x": 180 } },
{ "when": { "facing": "down", "rotation": 1, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/dread_plate", "x": 180, "y": 90 } },
{ "when": { "facing": "down", "rotation": 2, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/dread_plate", "x": 180, "y": 180 } },
{ "when": { "facing": "down", "rotation": 3, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/dread_plate", "x": 180, "y": 270 } },
{ "when": { "facing": "east", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/dread_plate", "x": 90, "y": 90 } },
{ "when": { "facing": "north", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/dread_plate", "x": 90 } },
{ "when": { "facing": "south", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/dread_plate", "x": 90, "y": 180 } },
{ "when": { "facing": "west", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/dread_plate", "x": 90, "y": 270 } },
{ "when": { "facing": "up", "rotation": 0, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/dread_plate" } },
{ "when": { "facing": "up", "rotation": 1, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/dread_plate", "y": 90 } },
{ "when": { "facing": "up", "rotation": 2, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/dread_plate", "y": 180 } },
{ "when": { "facing": "up", "rotation": 3, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/dread_plate", "y": 270 } }
]
}
@@ -0,0 +1,17 @@
{
"multipart": [
{ "when": { "facing": "down", "rotation": 0, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/earth_plate", "x": 180 } },
{ "when": { "facing": "down", "rotation": 1, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/earth_plate", "x": 180, "y": 90 } },
{ "when": { "facing": "down", "rotation": 2, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/earth_plate", "x": 180, "y": 180 } },
{ "when": { "facing": "down", "rotation": 3, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/earth_plate", "x": 180, "y": 270 } },
{ "when": { "facing": "east", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/earth_plate", "x": 90, "y": 90 } },
{ "when": { "facing": "north", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/earth_plate", "x": 90 } },
{ "when": { "facing": "south", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/earth_plate", "x": 90, "y": 180 } },
{ "when": { "facing": "west", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/earth_plate", "x": 90, "y": 270 } },
{ "when": { "facing": "up", "rotation": 0, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/earth_plate" } },
{ "when": { "facing": "up", "rotation": 1, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/earth_plate", "y": 90 } },
{ "when": { "facing": "up", "rotation": 2, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/earth_plate", "y": 180 } },
{ "when": { "facing": "up", "rotation": 3, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/earth_plate", "y": 270 } }
]
}
@@ -0,0 +1,17 @@
{
"multipart": [
{ "when": { "facing": "down", "rotation": 0, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/fist_plate", "x": 180 } },
{ "when": { "facing": "down", "rotation": 1, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/fist_plate", "x": 180, "y": 90 } },
{ "when": { "facing": "down", "rotation": 2, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/fist_plate", "x": 180, "y": 180 } },
{ "when": { "facing": "down", "rotation": 3, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/fist_plate", "x": 180, "y": 270 } },
{ "when": { "facing": "east", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/fist_plate", "x": 90, "y": 90 } },
{ "when": { "facing": "north", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/fist_plate", "x": 90 } },
{ "when": { "facing": "south", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/fist_plate", "x": 90, "y": 180 } },
{ "when": { "facing": "west", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/fist_plate", "x": 90, "y": 270 } },
{ "when": { "facing": "up", "rotation": 0, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/fist_plate" } },
{ "when": { "facing": "up", "rotation": 1, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/fist_plate", "y": 90 } },
{ "when": { "facing": "up", "rotation": 2, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/fist_plate", "y": 180 } },
{ "when": { "facing": "up", "rotation": 3, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/fist_plate", "y": 270 } }
]
}
@@ -0,0 +1,17 @@
{
"multipart": [
{ "when": { "facing": "down", "rotation": 0, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/flame_plate", "x": 180 } },
{ "when": { "facing": "down", "rotation": 1, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/flame_plate", "x": 180, "y": 90 } },
{ "when": { "facing": "down", "rotation": 2, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/flame_plate", "x": 180, "y": 180 } },
{ "when": { "facing": "down", "rotation": 3, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/flame_plate", "x": 180, "y": 270 } },
{ "when": { "facing": "east", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/flame_plate", "x": 90, "y": 90 } },
{ "when": { "facing": "north", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/flame_plate", "x": 90 } },
{ "when": { "facing": "south", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/flame_plate", "x": 90, "y": 180 } },
{ "when": { "facing": "west", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/flame_plate", "x": 90, "y": 270 } },
{ "when": { "facing": "up", "rotation": 0, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/flame_plate" } },
{ "when": { "facing": "up", "rotation": 1, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/flame_plate", "y": 90 } },
{ "when": { "facing": "up", "rotation": 2, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/flame_plate", "y": 180 } },
{ "when": { "facing": "up", "rotation": 3, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/flame_plate", "y": 270 } }
]
}
@@ -0,0 +1,17 @@
{
"multipart": [
{ "when": { "facing": "down", "rotation": 0, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/icicle_plate", "x": 180 } },
{ "when": { "facing": "down", "rotation": 1, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/icicle_plate", "x": 180, "y": 90 } },
{ "when": { "facing": "down", "rotation": 2, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/icicle_plate", "x": 180, "y": 180 } },
{ "when": { "facing": "down", "rotation": 3, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/icicle_plate", "x": 180, "y": 270 } },
{ "when": { "facing": "east", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/icicle_plate", "x": 90, "y": 90 } },
{ "when": { "facing": "north", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/icicle_plate", "x": 90 } },
{ "when": { "facing": "south", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/icicle_plate", "x": 90, "y": 180 } },
{ "when": { "facing": "west", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/icicle_plate", "x": 90, "y": 270 } },
{ "when": { "facing": "up", "rotation": 0, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/icicle_plate" } },
{ "when": { "facing": "up", "rotation": 1, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/icicle_plate", "y": 90 } },
{ "when": { "facing": "up", "rotation": 2, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/icicle_plate", "y": 180 } },
{ "when": { "facing": "up", "rotation": 3, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/icicle_plate", "y": 270 } }
]
}
@@ -0,0 +1,17 @@
{
"multipart": [
{ "when": { "facing": "down", "rotation": 0, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/insect_plate", "x": 180 } },
{ "when": { "facing": "down", "rotation": 1, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/insect_plate", "x": 180, "y": 90 } },
{ "when": { "facing": "down", "rotation": 2, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/insect_plate", "x": 180, "y": 180 } },
{ "when": { "facing": "down", "rotation": 3, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/insect_plate", "x": 180, "y": 270 } },
{ "when": { "facing": "east", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/insect_plate", "x": 90, "y": 90 } },
{ "when": { "facing": "north", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/insect_plate", "x": 90 } },
{ "when": { "facing": "south", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/insect_plate", "x": 90, "y": 180 } },
{ "when": { "facing": "west", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/insect_plate", "x": 90, "y": 270 } },
{ "when": { "facing": "up", "rotation": 0, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/insect_plate" } },
{ "when": { "facing": "up", "rotation": 1, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/insect_plate", "y": 90 } },
{ "when": { "facing": "up", "rotation": 2, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/insect_plate", "y": 180 } },
{ "when": { "facing": "up", "rotation": 3, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/insect_plate", "y": 270 } }
]
}
@@ -0,0 +1,17 @@
{
"multipart": [
{ "when": { "facing": "down", "rotation": 0, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/iron_plate", "x": 180 } },
{ "when": { "facing": "down", "rotation": 1, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/iron_plate", "x": 180, "y": 90 } },
{ "when": { "facing": "down", "rotation": 2, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/iron_plate", "x": 180, "y": 180 } },
{ "when": { "facing": "down", "rotation": 3, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/iron_plate", "x": 180, "y": 270 } },
{ "when": { "facing": "east", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/iron_plate", "x": 90, "y": 90 } },
{ "when": { "facing": "north", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/iron_plate", "x": 90 } },
{ "when": { "facing": "south", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/iron_plate", "x": 90, "y": 180 } },
{ "when": { "facing": "west", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/iron_plate", "x": 90, "y": 270 } },
{ "when": { "facing": "up", "rotation": 0, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/iron_plate" } },
{ "when": { "facing": "up", "rotation": 1, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/iron_plate", "y": 90 } },
{ "when": { "facing": "up", "rotation": 2, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/iron_plate", "y": 180 } },
{ "when": { "facing": "up", "rotation": 3, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/iron_plate", "y": 270 } }
]
}
@@ -0,0 +1,17 @@
{
"multipart": [
{ "when": { "facing": "down", "rotation": 0, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/meadow_plate", "x": 180 } },
{ "when": { "facing": "down", "rotation": 1, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/meadow_plate", "x": 180, "y": 90 } },
{ "when": { "facing": "down", "rotation": 2, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/meadow_plate", "x": 180, "y": 180 } },
{ "when": { "facing": "down", "rotation": 3, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/meadow_plate", "x": 180, "y": 270 } },
{ "when": { "facing": "east", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/meadow_plate", "x": 90, "y": 90 } },
{ "when": { "facing": "north", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/meadow_plate", "x": 90 } },
{ "when": { "facing": "south", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/meadow_plate", "x": 90, "y": 180 } },
{ "when": { "facing": "west", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/meadow_plate", "x": 90, "y": 270 } },
{ "when": { "facing": "up", "rotation": 0, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/meadow_plate" } },
{ "when": { "facing": "up", "rotation": 1, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/meadow_plate", "y": 90 } },
{ "when": { "facing": "up", "rotation": 2, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/meadow_plate", "y": 180 } },
{ "when": { "facing": "up", "rotation": 3, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/meadow_plate", "y": 270 } }
]
}
@@ -0,0 +1,17 @@
{
"multipart": [
{ "when": { "facing": "down", "rotation": 0, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/mind_plate", "x": 180 } },
{ "when": { "facing": "down", "rotation": 1, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/mind_plate", "x": 180, "y": 90 } },
{ "when": { "facing": "down", "rotation": 2, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/mind_plate", "x": 180, "y": 180 } },
{ "when": { "facing": "down", "rotation": 3, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/mind_plate", "x": 180, "y": 270 } },
{ "when": { "facing": "east", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/mind_plate", "x": 90, "y": 90 } },
{ "when": { "facing": "north", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/mind_plate", "x": 90 } },
{ "when": { "facing": "south", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/mind_plate", "x": 90, "y": 180 } },
{ "when": { "facing": "west", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/mind_plate", "x": 90, "y": 270 } },
{ "when": { "facing": "up", "rotation": 0, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/mind_plate" } },
{ "when": { "facing": "up", "rotation": 1, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/mind_plate", "y": 90 } },
{ "when": { "facing": "up", "rotation": 2, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/mind_plate", "y": 180 } },
{ "when": { "facing": "up", "rotation": 3, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/mind_plate", "y": 270 } }
]
}
@@ -0,0 +1,17 @@
{
"multipart": [
{ "when": { "facing": "down", "rotation": 0, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/pixie_plate", "x": 180 } },
{ "when": { "facing": "down", "rotation": 1, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/pixie_plate", "x": 180, "y": 90 } },
{ "when": { "facing": "down", "rotation": 2, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/pixie_plate", "x": 180, "y": 180 } },
{ "when": { "facing": "down", "rotation": 3, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/pixie_plate", "x": 180, "y": 270 } },
{ "when": { "facing": "east", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/pixie_plate", "x": 90, "y": 90 } },
{ "when": { "facing": "north", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/pixie_plate", "x": 90 } },
{ "when": { "facing": "south", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/pixie_plate", "x": 90, "y": 180 } },
{ "when": { "facing": "west", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/pixie_plate", "x": 90, "y": 270 } },
{ "when": { "facing": "up", "rotation": 0, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/pixie_plate" } },
{ "when": { "facing": "up", "rotation": 1, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/pixie_plate", "y": 90 } },
{ "when": { "facing": "up", "rotation": 2, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/pixie_plate", "y": 180 } },
{ "when": { "facing": "up", "rotation": 3, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/pixie_plate", "y": 270 } }
]
}
@@ -0,0 +1,17 @@
{
"multipart": [
{ "when": { "facing": "down", "rotation": 0, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/sky_plate", "x": 180 } },
{ "when": { "facing": "down", "rotation": 1, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/sky_plate", "x": 180, "y": 90 } },
{ "when": { "facing": "down", "rotation": 2, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/sky_plate", "x": 180, "y": 180 } },
{ "when": { "facing": "down", "rotation": 3, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/sky_plate", "x": 180, "y": 270 } },
{ "when": { "facing": "east", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/sky_plate", "x": 90, "y": 90 } },
{ "when": { "facing": "north", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/sky_plate", "x": 90 } },
{ "when": { "facing": "south", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/sky_plate", "x": 90, "y": 180 } },
{ "when": { "facing": "west", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/sky_plate", "x": 90, "y": 270 } },
{ "when": { "facing": "up", "rotation": 0, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/sky_plate" } },
{ "when": { "facing": "up", "rotation": 1, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/sky_plate", "y": 90 } },
{ "when": { "facing": "up", "rotation": 2, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/sky_plate", "y": 180 } },
{ "when": { "facing": "up", "rotation": 3, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/sky_plate", "y": 270 } }
]
}
@@ -0,0 +1,16 @@
{
"multipart": [
{ "when": { "facing": "down", "rotation": 0, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/splash_plate", "x": 180 } },
{ "when": { "facing": "down", "rotation": 1, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/splash_plate", "x": 180, "y": 90 } },
{ "when": { "facing": "down", "rotation": 2, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/splash_plate", "x": 180, "y": 180 } },
{ "when": { "facing": "down", "rotation": 3, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/splash_plate", "x": 180, "y": 270 } },
{ "when": { "facing": "east", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/splash_plate", "x": 90, "y": 90 } },
{ "when": { "facing": "north", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/splash_plate", "x": 90 } },
{ "when": { "facing": "south", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/splash_plate", "x": 90, "y": 180 } },
{ "when": { "facing": "west", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/splash_plate", "x": 90, "y": 270 } },
{ "when": { "facing": "up", "rotation": 0, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/splash_plate" } },
{ "when": { "facing": "up", "rotation": 1, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/splash_plate", "y": 90 } },
{ "when": { "facing": "up", "rotation": 2, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/splash_plate", "y": 180 } },
{ "when": { "facing": "up", "rotation": 3, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/splash_plate", "y": 270 } }
]
}
@@ -0,0 +1,17 @@
{
"multipart": [
{ "when": { "facing": "down", "rotation": 0, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/spooky_plate", "x": 180 } },
{ "when": { "facing": "down", "rotation": 1, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/spooky_plate", "x": 180, "y": 90 } },
{ "when": { "facing": "down", "rotation": 2, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/spooky_plate", "x": 180, "y": 180 } },
{ "when": { "facing": "down", "rotation": 3, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/spooky_plate", "x": 180, "y": 270 } },
{ "when": { "facing": "east", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/spooky_plate", "x": 90, "y": 90 } },
{ "when": { "facing": "north", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/spooky_plate", "x": 90 } },
{ "when": { "facing": "south", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/spooky_plate", "x": 90, "y": 180 } },
{ "when": { "facing": "west", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/spooky_plate", "x": 90, "y": 270 } },
{ "when": { "facing": "up", "rotation": 0, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/spooky_plate" } },
{ "when": { "facing": "up", "rotation": 1, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/spooky_plate", "y": 90 } },
{ "when": { "facing": "up", "rotation": 2, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/spooky_plate", "y": 180 } },
{ "when": { "facing": "up", "rotation": 3, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/spooky_plate", "y": 270 } }
]
}
@@ -0,0 +1,17 @@
{
"multipart": [
{ "when": { "facing": "down", "rotation": 0, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/stone_plate", "x": 180 } },
{ "when": { "facing": "down", "rotation": 1, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/stone_plate", "x": 180, "y": 90 } },
{ "when": { "facing": "down", "rotation": 2, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/stone_plate", "x": 180, "y": 180 } },
{ "when": { "facing": "down", "rotation": 3, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/stone_plate", "x": 180, "y": 270 } },
{ "when": { "facing": "east", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/stone_plate", "x": 90, "y": 90 } },
{ "when": { "facing": "north", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/stone_plate", "x": 90 } },
{ "when": { "facing": "south", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/stone_plate", "x": 90, "y": 180 } },
{ "when": { "facing": "west", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/stone_plate", "x": 90, "y": 270 } },
{ "when": { "facing": "up", "rotation": 0, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/stone_plate" } },
{ "when": { "facing": "up", "rotation": 1, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/stone_plate", "y": 90 } },
{ "when": { "facing": "up", "rotation": 2, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/stone_plate", "y": 180 } },
{ "when": { "facing": "up", "rotation": 3, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/stone_plate", "y": 270 } }
]
}
@@ -0,0 +1,17 @@
{
"multipart": [
{ "when": { "facing": "down", "rotation": 0, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/toxic_plate", "x": 180 } },
{ "when": { "facing": "down", "rotation": 1, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/toxic_plate", "x": 180, "y": 90 } },
{ "when": { "facing": "down", "rotation": 2, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/toxic_plate", "x": 180, "y": 180 } },
{ "when": { "facing": "down", "rotation": 3, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/toxic_plate", "x": 180, "y": 270 } },
{ "when": { "facing": "east", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/toxic_plate", "x": 90, "y": 90 } },
{ "when": { "facing": "north", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/toxic_plate", "x": 90 } },
{ "when": { "facing": "south", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/toxic_plate", "x": 90, "y": 180 } },
{ "when": { "facing": "west", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/toxic_plate", "x": 90, "y": 270 } },
{ "when": { "facing": "up", "rotation": 0, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/toxic_plate" } },
{ "when": { "facing": "up", "rotation": 1, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/toxic_plate", "y": 90 } },
{ "when": { "facing": "up", "rotation": 2, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/toxic_plate", "y": 180 } },
{ "when": { "facing": "up", "rotation": 3, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/toxic_plate", "y": 270 } }
]
}
@@ -0,0 +1,17 @@
{
"multipart": [
{ "when": { "facing": "down", "rotation": 0, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/zap_plate", "x": 180 } },
{ "when": { "facing": "down", "rotation": 1, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/zap_plate", "x": 180, "y": 90 } },
{ "when": { "facing": "down", "rotation": 2, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/zap_plate", "x": 180, "y": 180 } },
{ "when": { "facing": "down", "rotation": 3, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/zap_plate", "x": 180, "y": 270 } },
{ "when": { "facing": "east", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/zap_plate", "x": 90, "y": 90 } },
{ "when": { "facing": "north", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/zap_plate", "x": 90 } },
{ "when": { "facing": "south", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/zap_plate", "x": 90, "y": 180 } },
{ "when": { "facing": "west", "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/zap_plate", "x": 90, "y": 270 } },
{ "when": { "facing": "up", "rotation": 0, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/zap_plate" } },
{ "when": { "facing": "up", "rotation": 1, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/zap_plate", "y": 90 } },
{ "when": { "facing": "up", "rotation": 2, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/zap_plate", "y": 180 } },
{ "when": { "facing": "up", "rotation": 3, "waterlogged": "true|false"}, "apply": { "model": "cobblemon:block/zap_plate", "y": 270 } }
]
}
@@ -1028,6 +1028,24 @@
"block.cobblemon.shiny_stone_block": "Shiny Stone Block",
"block.cobblemon.dawn_stone_block": "Dawn Stone Block",
"block.cobblemon.dusk_stone_block": "Dusk Stone Block",
"block.cobblemon.blank_plate": "Blank Plate",
"block.cobblemon.flame_plate": "Flame Plate",
"block.cobblemon.splash_plate": "Splash Plate",
"block.cobblemon.zap_plate": "Zap Plate",
"block.cobblemon.meadow_plate": "Meadow Plate",
"block.cobblemon.icicle_plate": "Icicle Plate",
"block.cobblemon.fist_plate": "Fist Plate",
"block.cobblemon.toxic_plate": "Toxic Plate",
"block.cobblemon.earth_plate": "Earth Plate",
"block.cobblemon.sky_plate": "Sky Plate",
"block.cobblemon.mind_plate": "Mind Plate",
"block.cobblemon.insect_plate": "Insect Plate",
"block.cobblemon.stone_plate": "Stone Plate",
"block.cobblemon.spooky_plate": "Spooky Plate",
"block.cobblemon.draco_plate": "Draco Plate",
"block.cobblemon.dread_plate": "Dread Plate",
"block.cobblemon.iron_plate": "Iron Plate",
"block.cobblemon.pixie_plate": "Pixie Plate",
"cobblemon.fishing.no_bite": "Not even a nibble.",
"cobblemon.fishing_bait_effect_header": "Bait Info:",
"cobblemon.fishing_bait_effects.nature.tooltip": "%1$s%% - Attract %2$s Nature",
@@ -1208,11 +1226,6 @@
"cobblemon.bag_category.tms": "Technical Machines",
"cobblemon.bag_category.currency": "Currency",
"cobblemon.bag_categories.all_items": "Bag",
"cobblemon.bag.sort.alphabetical": "Alphabetical",
"cobblemon.bag.sort.input_order": "Input Order",
"cobblemon.bag.sort.creative_menu": "Creative Order",
"cobblemon.bag.sort.ascending": "Ascending",
"cobblemon.bag.sort.descending": "Descending",
"cobblemon.ui.pokenav.title": "PokéNav",
"cobblemon.ui.pokenav.narrator.backbutton": "PokéNav button pressed",
@@ -0,0 +1,4 @@
{
"parent": "cobblemon:block/type_plate",
"textures": { "texture": "cobblemon:block/type_plates/blank_plate" }
}
@@ -0,0 +1,4 @@
{
"parent": "cobblemon:block/type_plate",
"textures": { "texture": "cobblemon:block/type_plates/draco_plate" }
}
@@ -0,0 +1,4 @@
{
"parent": "cobblemon:block/type_plate",
"textures": { "texture": "cobblemon:block/type_plates/dread_plate" }
}
@@ -0,0 +1,4 @@
{
"parent": "cobblemon:block/type_plate",
"textures": { "texture": "cobblemon:block/type_plates/earth_plate" }
}
@@ -0,0 +1,4 @@
{
"parent": "cobblemon:block/type_plate",
"textures": { "texture": "cobblemon:block/type_plates/fist_plate" }
}
@@ -0,0 +1,4 @@
{
"parent": "cobblemon:block/type_plate",
"textures": { "texture": "cobblemon:block/type_plates/flame_plate" }
}
@@ -0,0 +1,4 @@
{
"parent": "cobblemon:block/type_plate",
"textures": { "texture": "cobblemon:block/type_plates/icicle_plate" }
}
@@ -0,0 +1,4 @@
{
"parent": "cobblemon:block/type_plate",
"textures": { "texture": "cobblemon:block/type_plates/insect_plate" }
}
@@ -0,0 +1,4 @@
{
"parent": "cobblemon:block/type_plate",
"textures": { "texture": "cobblemon:block/type_plates/iron_plate" }
}
@@ -0,0 +1,4 @@
{
"parent": "cobblemon:block/type_plate",
"textures": { "texture": "cobblemon:block/type_plates/meadow_plate" }
}
@@ -0,0 +1,4 @@
{
"parent": "cobblemon:block/type_plate",
"textures": { "texture": "cobblemon:block/type_plates/mind_plate" }
}
@@ -0,0 +1,4 @@
{
"parent": "cobblemon:block/type_plate",
"textures": { "texture": "cobblemon:block/type_plates/pixie_plate" }
}
@@ -0,0 +1,4 @@
{
"parent": "cobblemon:block/type_plate",
"textures": { "texture": "cobblemon:block/type_plates/sky_plate" }
}
@@ -0,0 +1,6 @@
{
"parent": "cobblemon:block/type_plate",
"textures": {
"texture": "cobblemon:block/type_plates/splash_plate"
}
}
@@ -0,0 +1,4 @@
{
"parent": "cobblemon:block/type_plate",
"textures": { "texture": "cobblemon:block/type_plates/spooky_plate" }
}
@@ -0,0 +1,4 @@
{
"parent": "cobblemon:block/type_plate",
"textures": { "texture": "cobblemon:block/type_plates/stone_plate" }
}
@@ -0,0 +1,4 @@
{
"parent": "cobblemon:block/type_plate",
"textures": { "texture": "cobblemon:block/type_plates/toxic_plate" }
}
@@ -0,0 +1,24 @@
{
"format_version": "26.3",
"credit": "Made with Blockbench",
"texture_size": [64, 64],
"textures": {
"texture": "cobblemon:block/type_plates/blank_plate",
"particle": "#texture"
},
"elements": [
{
"from": [3, 0, 2],
"to": [13, 3, 14],
"rotation": {"angle": 0, "axis": "y", "origin": [4, 0, 3]},
"faces": {
"north": {"uv": [3, 3, 5.5, 3.75], "texture": "#texture"},
"east": {"uv": [0, 3, 3, 3.75], "texture": "#texture"},
"south": {"uv": [8.5, 3, 11, 3.75], "texture": "#texture"},
"west": {"uv": [5.5, 3, 8.5, 3.75], "texture": "#texture"},
"up": {"uv": [5.5, 3, 3, 0], "texture": "#texture"},
"down": {"uv": [8, 0, 5.5, 3], "texture": "#texture"}
}
}
]
}
@@ -0,0 +1,4 @@
{
"parent": "cobblemon:block/type_plate",
"textures": { "texture": "cobblemon:block/type_plates/zap_plate" }
}
@@ -0,0 +1 @@
{ "parent": "cobblemon:block/blank_plate" }
@@ -0,0 +1 @@
{ "parent": "cobblemon:block/draco_plate" }
@@ -0,0 +1 @@
{ "parent": "cobblemon:block/dread_plate" }
@@ -0,0 +1 @@
{ "parent": "cobblemon:block/earth_plate" }
@@ -0,0 +1 @@
{ "parent": "cobblemon:block/fist_plate" }
@@ -0,0 +1 @@
{ "parent": "cobblemon:block/flame_plate" }
@@ -0,0 +1 @@
{ "parent": "cobblemon:block/icicle_plate" }
@@ -0,0 +1 @@
{ "parent": "cobblemon:block/insect_plate" }
@@ -0,0 +1 @@
{ "parent": "cobblemon:block/iron_plate" }
@@ -0,0 +1 @@
{ "parent": "cobblemon:block/meadow_plate" }
@@ -0,0 +1 @@
{ "parent": "cobblemon:block/mind_plate" }
@@ -0,0 +1 @@
{ "parent": "cobblemon:block/pixie_plate" }
@@ -0,0 +1 @@
{ "parent": "cobblemon:block/sky_plate" }
@@ -0,0 +1,3 @@
{
"parent": "cobblemon:block/splash_plate"
}
@@ -0,0 +1 @@
{ "parent": "cobblemon:block/spooky_plate" }
@@ -0,0 +1 @@
{ "parent": "cobblemon:block/stone_plate" }
@@ -0,0 +1 @@
{ "parent": "cobblemon:block/toxic_plate" }
@@ -0,0 +1 @@
{ "parent": "cobblemon:block/zap_plate" }
Binary file not shown.

After

Width:  |  Height:  |  Size: 789 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 574 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 574 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 574 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 574 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 574 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 574 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 574 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 574 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 574 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 574 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 574 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 574 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 574 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 574 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 574 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 574 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 574 B

@@ -3,9 +3,5 @@
"icon": "cobblemon:textures/item/held_items/exp_share.png",
"whiteListTag": "cobblemon:bag/whitelist_held_evo",
"blackListTag": "cobblemon:bag/blacklist_held_evo",
"maxCount": 128,
"sortMethods": [
"cobblemon:input_order",
"cobblemon:creative_menu"
]
"maxCount": 128
}
@@ -3,8 +3,5 @@
"icon": "cobblemon:textures/item/blank_disc.png",
"whiteListTag": "cobblemon:bag/whitelist_tms",
"blackListTag": "cobblemon:bag/blacklist_tms",
"maxCount": 64,
"sortMethods": [
"cobblemon:input_order"
]
"maxCount": 64
}
@@ -0,0 +1,11 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1.0,
"bonus_rolls": 0.0,
"entries": [{ "type": "minecraft:item", "name": "cobblemon:blank_plate" }],
"conditions": [{ "condition": "minecraft:survives_explosion" }]
}
]
}
@@ -0,0 +1,11 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1.0,
"bonus_rolls": 0.0,
"entries": [{ "type": "minecraft:item", "name": "cobblemon:draco_plate" }],
"conditions": [{ "condition": "minecraft:survives_explosion" }]
}
]
}
@@ -0,0 +1,11 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1.0,
"bonus_rolls": 0.0,
"entries": [{ "type": "minecraft:item", "name": "cobblemon:dread_plate" }],
"conditions": [{ "condition": "minecraft:survives_explosion" }]
}
]
}
@@ -0,0 +1,11 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1.0,
"bonus_rolls": 0.0,
"entries": [{ "type": "minecraft:item", "name": "cobblemon:earth_plate" }],
"conditions": [{ "condition": "minecraft:survives_explosion" }]
}
]
}
@@ -0,0 +1,11 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1.0,
"bonus_rolls": 0.0,
"entries": [{ "type": "minecraft:item", "name": "cobblemon:fist_plate" }],
"conditions": [{ "condition": "minecraft:survives_explosion" }]
}
]
}
@@ -0,0 +1,11 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1.0,
"bonus_rolls": 0.0,
"entries": [{ "type": "minecraft:item", "name": "cobblemon:flame_plate" }],
"conditions": [{ "condition": "minecraft:survives_explosion" }]
}
]
}
Loaded 100 of 112 files, more files were not shown because too many files have changed in this diff. Show more