简介
本模组旨在支持 Cobblemon 渲染系统中的方块小数/按面(per-face)及其他模型粒子内容,且无需破坏、修改或增加数据包格式,并附带完整的 API。
API 接口 [示例]
import xiaocaoawa.minecraft.mod.morecobble.api.*;
import net.minecraft.resources.ResourceLocation;
ResourceLocation pikachu = ResourceLocation.parse("cobblemon:pikachu");
// 所有皮卡丘:全身模型彩虹光晕
ShimmerAPI.setSpeciesEffects(pikachu, ShimmerEffect.of(ShimmerBand.rainbow()));
// 特定宝可梦:尾部叠加两个方向不同的闪光条纹
ShimmerEffect tail = ShimmerEffect.builder()
.scope(ShimmerScope.bone("tail"))
.addBand(ShimmerBand.builder().direction(0,1,0).speed(0.5f).colors(0xFFFF0000,0xFF0000FF).build())
.addBand(ShimmerBand.builder().direction(1,0,0).speed(-0.3f).colors(0xFF00FF00,0xFFFFFF00).build())
.scope(ShimmerScope.bone("tail"))
.addBand(ShimmerBand.builder().direction(0,1,0).speed(0.5f).colors(0xFFFF0000,0xFF0000FF).build())
.addBand(ShimmerBand.builder().direction(1,0,0).speed(-0.3f).colors(0xFF00FF00,0xFFFFFF00).build())
.build();
ShimmerAPI.setPokemonEffects(pokemonUuid, tail);
// Glare:全身模型珠光箔饰效果
SheenAPI.setSpeciesEffects(pikachu, SheenEffect.of(SheenBand.sheen()));
// 粒子:头部迸发的火花
ParticleAPI.setSpeciesEffects(pikachu,
ParticleEffectSpec.of(ParticleScope.bone("head"),
ParticleEmitter.of(ResourceLocation.parse("cobblemon:sparkles"), 2f)));
模型性能
支持方块小数/按面及其他基岩版模型。无需前置模组。为 Cobblemon 渲染添加了渲染支持,未对数据包格式或内容进行任何修改/添加。模型可直接引用,并支持动作。[可以使用 YSM 的源文件模型,但不支持 YSM 的加密格式]

粒子效果
你可以让任意宝可梦使用 Cobblemon 的粒子效果。粒子系统并未改变数据包格式,因此你仍可以在原始的数据包格式中自定义和添加它们。

多彩/珠光效果
你可以调整整个模型或模型的不同部分、方块或方块组的多彩/珠光效果的方向、条纹颜色、多种不同颜色以及速度。
多彩 [纹理上的变色效果。条纹锁定在纹理像素上,并随模型移动。条纹坐标空间为纹理 UV 空间。]

Introduction
This mod is designed to support block decimals/per-face and other model particle contents in Cobblemon's rendering system without breaking/modifying/adding to the data pack format, and it comes with a complete API.
API Interface [Example]
import xiaocaoawa.minecraft.mod.morecobble.api.*;
import net.minecraft.resources.ResourceLocation;
ResourceLocation pikachu = ResourceLocation.parse("cobblemon:pikachu");
// All Pikachu: Full model rainbow glow
ShimmerAPI.setSpeciesEffects(pikachu, ShimmerEffect.of(ShimmerBand.rainbow()));
// A certain Pokémon: tail stacked with two shiny stripes in different directions
ShimmerEffect tail = ShimmerEffect.builder()
.scope(ShimmerScope.bone("tail"))
.addBand(ShimmerBand.builder().direction(0,1,0).speed(0.5f).colors(0xFFFF0000,0xFF0000FF).build())
.addBand(ShimmerBand.builder().direction(1,0,0).speed(-0.3f).colors(0xFF00FF00,0xFFFFFF00).build())
.scope(ShimmerScope.bone("tail"))
.addBand(ShimmerBand.builder().direction(0,1,0).speed(0.5f).colors(0xFFFF0000,0xFF0000FF).build())
.addBand(ShimmerBand.builder().direction(1,0,0).speed(-0.3f).colors(0xFF00FF00,0xFFFFFF00).build())
.build();
ShimmerAPI.setPokemonEffects(pokemonUuid, tail);
// Glare: Shiny Foil Finish on the Whole Model
SheenAPI.setSpeciesEffects(pikachu, SheenEffect.of(SheenBand.sheen()));
// Particle: Sparks flying from the head
ParticleAPI.setSpeciesEffects(pikachu,
ParticleEffectSpec.of(ParticleScope.bone("head"),
ParticleEmitter.of(ResourceLocation.parse("cobblemon:sparkles"), 2f)));
Model performance
Supports block decimals/per-face and other Bedrock Edition models. No prerequisite mods. Added rendering for Cobblemon rendering, no modifications/additions to datapack format or content. Models can be directly referenced, and actions are supported. [You can use YSM's source file models, but YSM's encrypted format is not supported]

Particle effects
You can let any Pokémon use Cobblemon's particles. The particle system hasn't changed the data pack format, so you can still customize and add them in the original data pack format.

Colorful/Glare Effects
You can adjust the direction, stripe colors, multiple different colors, and speed of the colorful/glare effects for the whole model or for different parts, blocks, or block groups of the model.
Colorful [The effect of changing colors on the texture. The stripes are locked to the texture pixels and move with the model. The stripe coordinate space is the texture UV space.]

评论 0
登录后参与评分
还没有评论,来抢沙发吧