首先,除非我自己需要,否则不会更新此数据包,但你可以随意修改它。
所有内容都应有注释,并且希望易于理解。我坚信确实如此。
许多内容应该很容易调整;首先检查 data\lbx\function\load.mcfunction 和 data\lbx\loot_table\lootbox.json。
它是做什么的?
此数据包添加了自定义战利品箱,具有类似《反恐精英》(Counter-Strike)的动画效果,可以通过在主手中持有音乐唱片并打开末影箱来开启。
功能
- 开箱
- StatTrak™(击杀统计)
- 交易升级

我使用了普通的唱片 5,因此玩家可以通过进入远古城市或制作自定义配方(使用钻石)来获得此钥匙。

StatTrak™
物品也有 10% 的概率带有 StatTrak™ 标记(就像在 CS 中一样)。我没有将其绑定到特定玩家。它们会记录使用该物品造成的击杀数(包括玩家和人体模型(测试用)),并显示最后的击杀者。在游戏中它被称为 TrackKills,因为 StatTrak 实际上是注册商标。

交易升级
也包含了交易升级功能。你可以使用 /trigger tradeup 命令来组合你从箱子中获得的所有物品,从而获得更高级别的物品。

此数据包可能完全不平衡。我尚未在实际中进行测试。在上图中列出了 loot table 中目前存在的所有物品。
有一些物品在生存模式下无法获得。
我制作了两种概率版本:
- CS - 就像在《反恐精英》中一样,概率较为粗糙
- x3 - 另一个版本的概率高得多,每个较低等级的掉落概率是前一个等级的 3 倍

这应该是安全的吗?测试还不够充分。
- 我考虑到了玩家可以从末影箱中取出物品、丢弃它们、或将它们放入收纳袋的情况
- 如果将物品放入其中,将会被归还
- 玩家可以离开服务器,当他们回来时开箱过程将继续
- 玩家的末影箱存储在数据存储中
它是如何工作的?
- 存储并清空玩家的末影箱
- 首先,箱子快速开启
- 然后速度减慢
- 停止,有 50% 的概率再移动一次,然后给予奖品
- 恢复玩家的末影箱
测试
有一个专为测试此数据包设计的命令。
/function lbx:test
它会提供用于制作钥匙的物品以及包含 loot table 中所有物品的箱子。
First, there will be no updates of this datapack unless I will need it myself, but feel free to modify it yourself.
Everything should be commented and hopefully easy to understand. I strongly belive it is
Many things should be easy to adjust; check data\lbx\function\load.mcfunction and data\lbx\loot_table\lootbox.json in first place.
What does it do?
This datapack adds custom lootbox with Counter-Strike like animation which can be open by opening an enderchest with a music disc in main hand.
Features
- Case opening
- StatTrak
- Trade ups

I used normal disc 5, so player can get this key either by going into Ancient City or craft it with custom recipe from diamonds

StatTrak
Items also have 10% chance to have StatTrak on them (just like in CS). I didn't make it locked to a player. They count how many kills (of players and mannequins (testing)) were made using them and show who was the last killer. It's called TrackKills in game as StatTrak is actually trademarked.

Trade ups
Trade up feature is included too. You can use /trigger tradeup to combine what you already got from the case and get something from a better tier.

This datapack is probably totaly unbalanced. I haven't tested it in practise yet. On picture above there is everyting what's curently in loot table.
There is few items unachievable in survival
I made 2 versions of chances
- CS - just like in Counter Strike, they are rough
- x3 - The other version has a lot higher odds, each lower level has a 3 times higher chance of being dropped than the previous one

It should be safe? There wasn't enough tests.
- I took into consideration for player to take away items from enderchest, drop them, put them in a bundle
- If something was put in it will be returned
- Player can leave the server and when he come back the opening will be resumed
- Player enderchest is stored in data storage
How it works?
- Players enderchest is stored and cleared
- First, case is quickly opening
- Then it slows down
- Stops, has 50% chance to move one more time then gives prize
- Players enderchest is restored
Test
There is a command designed to test this datapack.
/function lbx:test
It gives items for crafting the key and chests with every item from loot table.
评论 0
登录后参与评分
还没有评论,来抢沙发吧