你可以在整合包中使用此模组!
你可以将此模组包含在公开或私有的 Minecraft 整合包中,前提是模组文件未被修改,且从其官方 Modrinth 或 CurseForge 页面下载。
SnAssets 资源库 - 粒子效果
SnAssets 粒子效果库是通用库的一个分支,仅包含我个人项目中常用的粒子效果。
借助此库,其他模组开发者可以通过将此项目设为依赖项并通过 JSON 引用资源来使用这些粒子效果。
你可以找到以下粒子效果的纹理:
烟雾、火花、弹道轨迹、子弹壳、弹孔、爆炸、火焰、泥土及其他碎片、玻璃碎片、气泡、树叶、木屑等等!
读者须知:
SnAssets Particles 是一个跨加载器的 Minecraft 资源库,供其他模组使用。它包含粒子精灵图(sprites)。
snassets_particles
使用方法:
- 将 SnAssets 作为你模组的依赖项。
- 在你自己的粒子效果 JSON 中引用粒子纹理,例如:
snassets_particles:bang0
如果纹理位于子文件夹内,请保留子文件夹路径,例如:
snassets_particles:bulletholes/bullethole_basic
此库仅提供纹理文件。你的模组仍需要在需要时定义/注册实际的粒子效果类型。
请勿从此库中复制资源。
将 SnAssets Particles 设为依赖项并通过 JSON 或代码引用资源是被允许的。
严禁从此库中提取实际的 PNG 资源文件,并将其粘贴、打包或重新分发到你自己的模组中。
详细使用说明:
SnAssets Particles - 如何引用来自其他模组的资源
====================================================
模组 ID / 命名空间:
snassets_particles
SnAssets Particles 是一个资源库。你的模组应依赖于它,然后通过命名空间引用其资源。
不要将实际的 PNG 文件复制到你的模组中。
引用粒子纹理
--------------------------------
粒子纹理位于以下目录中:
assets/snassets_particles/textures/particle/
当你从自己的粒子效果 JSON 中引用粒子纹理时,请使用:
snassets_particles:
SnAssets 文件示例:
assets/snassets_particles/textures/particle/bang0.png
在你的模组的粒子效果 JSON 中以如下方式引用它:
assets/examplemod/particles/example_bang.json
{
"textures": [
"snassets_particles:bang0"
]
}
多帧示例:
{
"textures": [
"snassets_particles:bang0",
"snassets_particles:bang1",
"snassets_particles:bang2",
"snassets_particles:bang3"
]
}
如果纹理位于子文件夹中,请保留子文件夹路径。
SnAssets 文件示例:
assets/snassets_particles/textures/particle/bulletholes/bullethole_basic.png
引用方式:
snassets_particles:bulletholes/bullethole_basic
重要提示:
SnAssets Particles 仅提供纹理文件。
如果你的加载器/版本要求注册或定义粒子效果类型,你的模组仍需自行完成该步骤。
2. 依赖项配置代码
----------------------
Fabric fabric.mod.json:
{
"depends": {
"snassets_particles": "*"
}
}
Forge / NeoForge mods.toml:
[[dependencies.examplemod]]
modId="snassets_particles"
mandatory=true
versionRange="[1.0.0,)"
ordering="NONE"
side="BOTH"
将 "examplemod" 替换为你自己的模组 ID。
3. 使用规则
-------------
允许的操作:
-> 将 SnAssets Particles 设为依赖项,并通过 JSON 或代码引用其纹理。
禁止的操作:
从 SnAssets Particles 中提取 PNG 或其他资源文件,并将其粘贴、打包或重新分发到你自己的模组中。
You're allowed to use this mod in your modpacks!
You may include this mod in public or private Minecraft modpacks, provided the mod file is unmodified and downloaded from its official Modrinth or CurseForge page
SnAssets Asset Library - Particles
The SnAssets Particle Library is branch of the general library which adds JUST the particles I regularly use in my own projects.
With this library, these particles may be used by any other modder by making this project a dependency and referencing assets via JSON!
You can find particle textures for:
smoke, sparks, tracers, bullet casings, bullet holes, explosions, fire, flames, dirt and other debris, glass shards, bubbles, leaves, splinters and more!
Reader:
SnAssets Particles is a cross-loader Minecraft asset library for other mods to use. It contains particle sprites.
snassets_particles
How to use:
- Add SnAssets as a dependency for your mod.
- Reference particle textures from your own particle JSON, for example:
snassets_particles:bang0
If the texture is inside a subfolder, keep the subfolder path, for example:
snassets_particles:bulletholes/bullethole_basic
This library only provides the texture files. Your own mod still needs to define/register the actual particle type where required.
Do not copy assets out of this library.
It is fine to make SnAssets Particles a dependency and reference assets via JSON or code.
It is prohibited to take the actual PNG asset files from this library and paste, bundle, or redistribute them inside your own mod.
Detailed how to use:
SnAssets Particles - How to reference assets from another mod
====================================================
Mod id / namespace:
snassets_particles
SnAssets Particles is an asset library. Your mod should depend on it, then reference its assets by namespace.
Do not copy the actual PNG files into your own mod.
Referencing particle textures
--------------------------------
Particle textures are located within:
assets/snassets_particles/textures/particle/
When referencing a particle texture from your own particle JSON, use:
snassets_particles:
Example SnAssets file:
assets/snassets_particles/textures/particle/bang0.png
Reference it from your mod's particle JSON like this:
assets/examplemod/particles/example_bang.json
{
"textures": [
"snassets_particles:bang0"
]
}
Example with multiple frames:
{
"textures": [
"snassets_particles:bang0",
"snassets_particles:bang1",
"snassets_particles:bang2",
"snassets_particles:bang3"
]
}
If the texture is in a subfolder, keep the subfolder path.
Example SnAssets file:
assets/snassets_particles/textures/particle/bulletholes/bullethole_basic.png
Reference:
snassets_particles:bulletholes/bullethole_basic
Important:
SnAssets Particles only provides the texture files.
Your own mod still needs to register or define the particle type if your loader/version requires that.
2. Dependency code
----------------------
Fabric fabric.mod.json:
{
"depends": {
"snassets_particles": "*"
}
}
Forge / NeoForge mods.toml:
[[dependencies.examplemod]]
modId="snassets_particles"
mandatory=true
versionRange="[1.0.0,)"
ordering="NONE"
side="BOTH"
Replace "examplemod" with your own mod id.
3. Usage rule
-------------
Allowed:
-> Make SnAssets Particles a dependency and reference its textures through JSON or code.
Not allowed:
Taking PNG or other asset files out of SnAssets Particles and pasting, bundling, or redistributing them inside your own mod.
评论 0
登录后参与评分
还没有评论,来抢沙发吧