Lootboxes

作者:rebot | 分类:模组

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

Minecraft 版本: 1.21.10

平台: datapack

标签: equipment

资源介绍

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

  1. Case opening
  2. StatTrak
  3. Trade ups

Lootbox opening

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

Crafting

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.

StatTrak

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.

Tradeups

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

Chances

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?

  1. Players enderchest is stored and cleared
  2. First, case is quickly opening
  3. Then it slows down
  4. Stops, has 50% chance to move one more time then gives prize
  5. 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.

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

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Infinity Bag

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

查看详情
Music Controller

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

查看详情
Tint-able Firework Rocket

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

查看详情
Chicken soup is coming!

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

查看详情