Ununennium 图标

Ununennium

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 0.1.0+alpha.2
本资源为搬运资源,原资源地址: https://modrinth.com/mod/ununennium
资源信息

Minecraft 版本: 1.21.5 1.21.6 1.21.7 1.21.8

平台: fabric quilt

标签: optimization

资源介绍

Ununennium

Cache selectors in commands to let Minecraft go brr

Ununennium caches selectors (predicates) you can use when executing Minecraft brigadier commands.
The mod may greatly improve the performance of function datapacks that execute many commands in one tick because the selectors are cached and don't have to be evaluated a bajillion times in a tick.

FAQ

  • Q: Will anything break?

    • A: It depends. In rare cases, caching may cause unexpected behavior if you rely on selector results changing within the same tick. For example:

      # This will now load it into the cache
      execute as @e[tag=nice_tag] run say hello
      
      # We'll add a tag here
      tag @p add nice_tag
      
      # We'll try to execute this here and it will just not do it because of the cache.
      # If it was executed next tick it would've worked because of the refreshed cache!
      execute as @e[tag=nice_tag] run say THIS WILL ONLY BE VISIBLE AT THE NEXT EXECUTION

      This only affects commands run within the same tick. On the next tick, the cache refreshes and the command will work as expected.

  • Q: Will this change my datapacks or world?

    • A: No, the mod does not touch any files nor does it modify your datapacks/world.
  • Q: Datapack XY doesn't work, what to do?

Contributing

Contributions, bug reports, and suggestions are welcome! Please open an issue or pull request on GitHub.

License

This project is licensed under the terms of the MIT License. See LICENSE for details.

下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Pagans Blessing

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

查看详情
Auction HouseX

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

查看详情
Cobblemon Optimised

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

查看详情
Custom Ore Veins

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

查看详情