跳到正文

Boe’s Earth

作者:Miki-Liki

Blockstates extension for shaders and resourcepacks

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

Boe’s Earth

Description

Boe’s Earth is a mod that adds additional blockstated to couple of vanilla blocks.
Those blockstates may be later used by shaders or resourcepacks to improve visual fidelity.

Added blockstates

  • is_on_leaves: Added to Snow, Vines and Carpets Example usage (Bliss shader):
  • Snow on top of waving leaves will wave alongside the leaves
  • Vines supported by/based on waving leaves will wave with them
  • snow_on_top: Added to leaves Example usage:
  • Leaves with snow on top will have different texture

FAQ

Q: Snow/Vines/Carpets are not waving
A: First make sure that your shader supports Boe’s Earth, e.g. Bliss.
     Then, make sure their respective blockstates are enabled in the config.
     At last, naturally generated blocks always have the custom blockstates disabled, they will however update with time.
     If you want to speed up the updating process, increase the randomTickSpeed gamerule, and decrease it back after to its default 3/5
.
     You can also force an update by placing/destroying the blocks

Q: There is a lot of lag caused by this mod
A: You can disable some of the update logic in the config.
     On neighbor update updates are the heavies one and can be tuned with max chain updates.
     Random tick updates are the lighter and are connected to in-game randomTickSpeed gamerule

Q: Forge version?
A: The mod should work with Sinytra Connector, though that is not a guarantee in the future

Documentation

The mods adds just another blockstates to existing blocks.
The usage of those blockstates stays the same as for vanilla blockstates and any other blockstates added by different mods.

Outside of that, the mod also adds an Iris shader define named BOES_EARTH_BLOCKSTATES.
It can be used to add Boe’s Earth blockstates support to your shader without breaking compatibility with vanilla blockstates.
That does not mean Boe’s Earth blockstates are incompatible with Optifine or other shader loaders, but there will be no way to knowing shader-side if the mod is present or not!

Example usage – shader

Iris (vanilla compatible):

#ifdef BOES_EARTH_BLOCKSTATES
block.56=minecraft:birch_leaves minecraft:acacia_leaves snow:is_on_leaves=true vine:is_on_leaves=true blue_carpet:is_on_leaves=true moss_carpet:is_on_leaves=true
#else
block.56=minecraft:birch_leaves minecraft:acacia_leaves
#endif
#ifdef BOES_EARTH_BLOCKSTATES
#define boes_on_leaves = snow:is_on_leaves=true vine:is_on_leaves=true blue_carpet:is_on_leaves=true moss_carpet:is_on_leaves=true
#endif

block.56=minecraft:birch_leaves minecraft:acacia_leaves boes_on_leaves

Other shader loaders (not vanilla compatible):

block.56=minecraft:birch_leaves minecraft:acacia_leaves snow:is_on_leaves=true vine:is_on_leaves=true blue_carpet:is_on_leaves=true moss_carpet:is_on_leaves=true

Example usage – resourcepack

{
  "variants": {
    "layers=1,is_on_leaves=false": {
      "model": "minecraft:block/snow_height2"
    },
    "layers=2,is_on_leaves=false": {
      "model": "minecraft:block/snow_height4"
    },
    "layers=1,is_on_leaves=true": {
      "model": "minecraft:block/snow_on_leaves_height2"
    },
    "layers=2,is_on_leaves=true": {
      "model": "minecraft:block/snow_on_leaves_height4"
    }
  }
}

Or

{
  "multipart": [
    {
      "when": { "AND": [
        {"layers": "1" },
        {"is_on_leaves": false }
      ]},
      "apply": { "model": "minecraft:block/snow_height2" }
    },
    {
      "when": { "AND": [
        {"layers": "2" },
        {"is_on_leaves": false }
      ]},
      "apply": { "model": "minecraft:block/snow_height4" }
    },
    {
      "when": { "AND": [
        {"layers": "1" },
        {"is_on_leaves": true }
      ]},
      "apply": { "model": "minecraft:block/snow_on_leaves_height2" }
    },
    {
      "when": { "AND": [
        {"layers": "2" },
        {"is_on_leaves": true }
      ]},
      "apply": { "model": "minecraft:block/snow_on_leaves_height4" }
    }
  ]
}

常见问题

Boe’s Earth 支持哪些 Minecraft 版本?

Boe’s Earth 支持 Minecraft Java 版 1.20.1–1.21.1,共 7 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

Boe’s Earth 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。

评论

登录后评论和评分

Miki-Liki 的其他作品

查看全部 →