mirror of
https://gitlab.com/cable-mc/cobblemon.git
synced 2026-11-23 16:48:53 -05:00
Merge remote-tracking branch 'origin/implement_pokemon' into implement_pokemon
This commit is contained in:
commit
fddfbfb4ed
14 files changed
+39
-18
No files matched your search
+2
-1
@@ -9,6 +9,7 @@
|
||||
package com.cobblemon.mod.common.client.render.models.blockbench.pokemon.gen2
|
||||
|
||||
import com.cobblemon.mod.common.client.render.models.blockbench.animation.BipedWalkAnimation
|
||||
import com.cobblemon.mod.common.client.render.models.blockbench.pokemon.CryProvider
|
||||
import com.cobblemon.mod.common.client.render.models.blockbench.frame.BipedFrame
|
||||
import com.cobblemon.mod.common.client.render.models.blockbench.frame.HeadedFrame
|
||||
import com.cobblemon.mod.common.client.render.models.blockbench.pokemon.PokemonPosableModel
|
||||
@@ -34,7 +35,7 @@ class SmeargleModel(root: ModelPart) : PokemonPosableModel(root), HeadedFrame, B
|
||||
lateinit var standing: Pose
|
||||
lateinit var walk: Pose
|
||||
|
||||
//override val cryAnimation = CryProvider { _, _ -> bedrockStateful("smeargle", "cry") }
|
||||
override val cryAnimation = CryProvider { bedrockStateful("smeargle", "cry") }
|
||||
|
||||
override fun registerPoses() {
|
||||
val blink = quirk { bedrockStateful("smeargle", "blink") }
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
|
||||
package com.cobblemon.mod.common.item
|
||||
|
||||
import com.cobblemon.mod.common.api.pokeball.PokeBalls
|
||||
import com.cobblemon.mod.common.entity.pokeball.EmptyPokeBallEntity
|
||||
import com.cobblemon.mod.common.pokeball.PokeBall
|
||||
import com.cobblemon.mod.common.util.isServerSide
|
||||
@@ -21,8 +22,13 @@ import net.minecraft.world.level.Level
|
||||
import kotlin.math.cos
|
||||
|
||||
class PokeBallItem(
|
||||
val pokeBall : PokeBall
|
||||
) : CobblemonItem(Properties()) {
|
||||
val pokeBall: PokeBall
|
||||
) : CobblemonItem(Properties().apply {
|
||||
if (pokeBall.name == PokeBalls.MASTER_BALL.name) {
|
||||
// Master balls are a netherite product and should be fire immune
|
||||
fireResistant()
|
||||
}
|
||||
}) {
|
||||
|
||||
override fun use(world: Level, player: Player, usedHand: InteractionHand): InteractionResultHolder<ItemStack> {
|
||||
val itemStack = player.getItemInHand(usedHand)
|
||||
@@ -49,12 +55,4 @@ class PokeBallItem(
|
||||
}
|
||||
world.addFreshEntity(pokeBallEntity)
|
||||
}
|
||||
|
||||
/*
|
||||
override fun isFireproof(): Boolean {
|
||||
return pokeBall.name == PokeBalls.MASTER_BALL.name || super.isFireproof()
|
||||
}
|
||||
|
||||
*/
|
||||
|
||||
}
|
||||
+1
-1
@@ -720,7 +720,7 @@
|
||||
},
|
||||
"sound_effects": {
|
||||
"0.0": {
|
||||
"effect": "165"
|
||||
"effect": "pokemon.ledyba.cry"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -767,7 +767,7 @@
|
||||
},
|
||||
"sound_effects": {
|
||||
"0.0": {
|
||||
"effect": "166"
|
||||
"effect": "pokemon.ledian.cry"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -312,7 +312,7 @@
|
||||
},
|
||||
"sound_effects": {
|
||||
"0.0833": {
|
||||
"effect": "191"
|
||||
"effect": "pokemon.sunkern.cry"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -874,7 +874,7 @@
|
||||
},
|
||||
"sound_effects": {
|
||||
"0.125": {
|
||||
"effect": "192"
|
||||
"effect": "pokemon.sunflora.cry"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+8
@@ -144,6 +144,14 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"animation.smeargle.cry": {
|
||||
"animation_length": 1.2,
|
||||
"sound_effects": {
|
||||
"0.04": {
|
||||
"effect": "pokemon.smeargle.cry"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+4
-1
@@ -28,7 +28,10 @@
|
||||
"q.bedrock('joltik', 'ground_idle')",
|
||||
"q.quadruped_walk(1, 1, 'leg_front_left', 'leg_front_right', 'leg_back_left', 'leg_back_right')"
|
||||
],
|
||||
"quirks": ["q.bedrock_quirk('joltik', 'blink')"]
|
||||
"quirks": [
|
||||
"q.bedrock_quirk('joltik', 'blink1')",
|
||||
"q.bedrock_quirk('joltik', 'blink2')"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in new issue
Block a user