Saturn's Components 图标

Saturn's Components

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 0.1.b2
本资源为搬运资源,原资源地址: https://modrinth.com/mod/saturns-components
资源信息

Minecraft 版本: 24w10a

平台: fabric

标签: game-mechanics utility

资源介绍

Saturn's Components

Adds some extra functionality to item components to allow for users to have more flexibility with their custom items.

The end goal for the mod is to allow for any item within the vanilla game to be recreated within any other item using only item components.

23w12a

Mod became kinda redundant ATM because Mojang already added what this does. Maybe I'll add more componentns soon

Max Count

minecraft:max_count

Sets the maximum stack size an item can have, accepting a non-negative integer value.

Max Damage

minecraft:max_damage

Sets the total durability of an item, which affects non-tool items too! Accepts a non-negative integer value.

Rarity

minecraft:rarity

Sets the rarity of an item, determining the base color of it's display name. Accepts a valid string entry from the following list: ["common", "uncommon", "rare", "epic"]

Fireproof

minecraft:fireproof

Sets whether the item will be destroyed when coming into contact with a fire source. Accepts a boolean value.

Food Properties

minecraft:food_properties

This component completely removes any hard coding to how food items are introduced, meaning any item can now be edible with a quick command! This component is a large one and requires at minimum a hunger value to be specified. An example component can be seen as followed:

{
  "food_properties": {
    // A non-negative integer. Decides how much hunger to restore when consumed.
    "hunger": 0,
    // A positive float. Decides how much saturation to restore when consumed.
    "saturation_modifier": 1.0,
    // A positive integer. Decides how long it takes to consume the item.
    "time_to_eat": 32,
    // Decides the behavior of the food.
    "food_behavior": {
      // Whether wolves interact with the item.
      "is_meat": false,
      // Whether the item can be eaten regardless of a player's hunger value.
      "always_edible": false,
      // Whether the item is eaten in half the time.
      "is_snack": false,
      // Whether the item shows particles while being consumed.
      "is_drink": false,
      // Whether the item clears all the player's status effects after being consumed.
      "clear_effects": false
    },
    // The resulting item a food object should give the player after being consumed.
    "result_item": {
      "id": "minecraft:air",
      "count": 1
    },
    // A list of status effect objects that are applied to the player once they have consumed the item.
    "status_effects": [
      {
        "id": "minecraft:swiftness",
        "duration": 160,
        "amplifier": 0,
        "ambient": false,
        "show_particles": true,
        "chance": 1.0
      }
    ]
  }
}
下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
SealLib

价格:0 墨喵币
下载量:0

查看详情
Basswood County

价格:0 墨喵币
下载量:0

查看详情
Tubriks & Bills

价格:0 墨喵币
下载量:0

查看详情
Create: Bedtime

价格:0 墨喵币
下载量:0

查看详情