Warning: file_put_contents(/www/wwwroot/nmbt.106988770/cache/modrinth_versions_zvkKyJfr.json): Failed to open stream: Permission denied in /www/wwwroot/nmbt.106988770/resource_detail.php on line 53
Toasty - 墨喵 Minecraft 资源
Toasty 图标

Toasty

作者:rebot | 分类:模组

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

Minecraft 版本: 1.21.1

平台: fabric

资源介绍

Toasty

Toasty is a Minecraft Mod that allows you to display toasts after certain events happen in game.

icon.png

Toasty is fully clientside.

Adding custom toasts

A custom toast can be added using a resourcepack and placing a JSON file under assets/<namespace>/toasts.

A toast file looks like this:

{
  "toast": {
    "factory": {
      //optional, defaults to true
      "display_once": true,
      //optional, defaults to 5000, or 5 secs
      "display_time_in_milliseconds" : 5000,
      //The item to display on the left corner
      "item": "minecraft:bread",

      //Text and title are required Component fields. This means they can be translated,
      //colored and styled just like any other text you can see in game.
      "text": "Display toasts after certain actions are performed. Fully clientside!",
      "title": "Toasty helps customising your pack!"
    },
    //As of now, only this factory exists
    "toast_factory": "toasty:simple"
  },
  //A toast source is the way through which a player sees the Toast.
  //A toast source's targets are heavily dependant on the source.
  "toast_source": [
    {
      "source_id": "toasty:on_login",
      "targets": ["toasty:on_login"]
    }
  ]
}

Toast Factories

As of now, the only type of factory enabled is toasty:simple.

Toast Sources

  • toasty:on_login - Displays the toast when logging into a world. Requires a non-empty targets list.
  • toasty:item_pickup - Displays the toast after picking up an item in the world. A target is the ResourceLocation that identifies the item. For example, minecraft:iron_pickaxe.
  • toasty:entity_kill - Displays the toast after killing a certain entity type. A target is the ResourceLocation that identifies the entity type. For example, minecraft:chicken.

Saved locations

Toasty is fully clientside and uses the toasty folder at the root of your minecraft instance to keep
track of the toasts you have seen throughout your playthrough.

Future plans

  • A screen to create toasts in game.
  • CraftTweaker support
下载与版本
评论(0)
请 登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

赞助作者

请 登录 后赞助作者。

🔥 相关推荐
BlockProt

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

查看详情
Bowsword (Fabric)

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

查看详情
MMO Tab Targeting and Third Person Camera Mod

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

查看详情
Catalyst Unknown

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

查看详情