跳到正文

Lootable Blocks

作者:TheRedBrain

An add-on for the Lootables mod that adds several blocks that supply lootables.

收藏

介绍

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

Lootable Blocks

An add-on for the Lootables mod that adds several blocks that supply lootables.

Lootable Vault Block

This blocks works similar to the vanilla Vault Block, but instead of spawning the loot in item form above the block, the loot is supplied via Lootables.

The block configuration is data-driven.

Example:

Note that the lootable and loot table identifiers used in these examples are placeholders.

{
  "lootable_identifier": "lootableblocks:test", // the identifier of the lootable_table
  "rolls": 3, // amount of rosls
  "choices": 1, // amount of choices
  "with_choice": true, // whether the lootable is presented as a choice
  "activation_range": 4.0, // must be >= 'deactivation_range'
  "deactivation_range": 4.5,
  "key_item": {
      "id": "minecraft:trial_key",
      "count": 1
  },
  "display_loot_table_identifier": "lootableblocks:chests/test" // the identifier of the display loot_table, refers to a vanilla loot table
}

Example /give command:

/give @s lootableblocks:lootable_vault_block[block_state={ominous:"false"},block_entity_data={id:"lootableblocks:lootable_vault_block",config_identifier:"lootableblocks:test"}]

Interactive Loot Block

This block is a block intended for map-makers and server admins, and it’s available in the operator items creative tab.

Interacting with it opens a config screen (when player is in creative mode and has permission level >= 2), where several config options can be set.

When interacted with in survival or adventure mode the block provides a lootable, according to its settings.

常见问题

Lootable Blocks 支持哪些 Minecraft 版本?

Lootable Blocks 支持 Minecraft Java 版 1.21.1,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

Lootable Blocks 怎么安装?

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

评论

登录后评论和评分

TheRedBrain 的其他作品

查看全部 →