Мова

Saturn's Components

Saturn's Components

Modrinth

A small fabric mod which implements item components to allow for more flexibility when creating custom items with Datapacks.

245 завантажень 1 підписників оновлено 27mo ago
остання v0.1.b2 Modrinth
Fabric 24w10a – 24w10a Game-mechanicsUtility

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
      }
    ]
  }
}

Версії

Beta
0.1.b2
fabric · 24w10a · 27mo ago
# Full Item Settings support! You now have the full functionality as if you declared your own item from within your own mod! - Adds…
92
Alpha
0.1.a1
fabric · 24w10a · 27mo ago
## New Stuff !! - Adds `minecraft:rarity` component, which decides the default color of the text of an item, takes in a String value of rarity. - Adds…
77
Beta
0.1.b1
fabric · 24w10a · 27mo ago
**The first version of the mod!** - Introduces `max_count`, `max_damage` and `food_properties` components. - Introduces all working functionality for these…
76

Коментарі 0

Поки немає коментарів. Будь першим, хто поділиться думкою.

Завантажити Saturn's Components

Файли надаються напряму з першоджерела. Modgrid не зберігає та не змінює їх.