需要安装资源包,请查看下方的安装说明以获取详细信息。
这是一个基于书本的全局传送门系统(并非游戏内物品或 GUI,而是自定义的世界内显示),允许在主世界中任意位置动态创建传送门。
你只需制作一个传送门核心(1 颗末影珍珠 + 1 个铜锭),在讲台的正面放置一块告示牌,并将第二行设置为该传送门的名称,然后将传送门核心丢到讲台上即可。
特性:
- 不使用区块加载器
- 如果有人在你打开书本时移除传送门,系统会等待附近没有玩家时才进行更新,以防止误触
- 理论上最大传送门数量约为 2,000,000 个(因为使用计分板来存储数值)
- 用户无需使用命令,对新手友好
工作原理:
- 制作一个铜锭和一颗末影珍珠以生成传送门核心
- 在讲台正面放置一块告示牌,将第二行设置为传送门的名称
- 将核心丢到讲台上
- 右键点击讲台上的书本以打开菜单
- 右键点击书本中的传送门名称以进行传送
安装方法:
- 下载主文件 "GroxicBookTP.zip" 并将其放入你的世界数据包文件夹中。
- 下载 资源包
- 或者在游戏中运行命令
/function groxic_booktp:disable_resourcepack 以禁用资源包并启用方块实体显示。不过这样会导致传送门核心被破坏
致谢:
特别感谢 Warp Portals - Portal teleportation by gabriel_pinheiro。我是通过研究他的数据包代码从零开始学习数据包的。感谢 Reddit 上的人们在我遇到不确定问题时提供的帮助!
Resource Pack needed, check installation below for details.
A global portal system using books(not the ingame item or GUI, a custom in world display) allowing the dynamic creation of portals anywhere in the overworld.
All you have to do is craft a Portal Core(1 enderpearl and 1 copper ingot), place a sign on the front of a lectern with the second line being the name you want for this portal and then drop the Portal Core onto the lectern.
Features:
- Doesn't use chunk loaders
- If someone removes a portal while the book is open it waits until there is no player nearby before it updates to prevent misclicks
- Theoretically the max portal count should be around 2,000,000(due to using scoreboard to hold values)
- No commands needed by the users so it is noob friendly
How it works:
- Craft a copper bar and an enderpearl to create a Portal Core
- Put a sign on the front of a lectern with the second line becoming the name of the portal
- Throw the core onto the lectern
- Right click the book on the lectern to open the menu
- Right click the portal name in the book to teleport
Installation:
- Download the main file "GroxicBookTP.zip" and place it into your world datapacks folder.
- Download the "Resource Pack"
- Alternatively run the command
/function groxic_booktp:disable_resourcepack when ingame to disable the enable a block display instead. Although the portal core will be broken
Credits:
Huge credit to Warp Portals - Portal teleportation by gabriel_pinheiro on here. I learnt datapacks from scratch by checking out the code in his datapack. Thanks to the people over at reddit for the help when I wasn't sure how to do something!
评论 0
登录后参与评分
还没有评论,来抢沙发吧