[TaCZ] Timeless and Classics Zero

[TaCZ] Timeless and Classics Zero

13M Downloads

能否添加虚拟弹药对多个不同整数类型的支持

Gold-Soul426 opened this issue · 2 comments

commented

我注意到将带有dummyammo的枪械作为战利品使用itemjson添加时,NBT标签"dummyammo":123会被转换为byte格式,而不是int格式,导致无法读取虚拟弹药数量,能不能增加不同整数类型的支持?

commented

能否举一个更具体的例子?你是在哪里使用的?

神化的词缀战利品json中,我尝试按照格式进行枪械武器的添加
{
"dimensions": [
"minecraft:overworld"
],
"min_rarity": "apotheosis:common",
"max_rarity": "apotheosis:rare",
"weight": 100,
"quality": 6.0,
"stack": {
"item": "tacz:modern_kinetic_gun",
"count": 1,
"nbt": {

   “DummyAmmo”:34
  "GunCurrentAmmoCount": 0,
  "GunFireMode": "SEMI",
  "GunId": "qkl:1912",
  "HasBulletInBarrel": "1b",
  "HideFlags": 1

    }
}

}
,其中的 “DummyAmmo”:34在进入游戏后物品SNBT标签会被转换为byte格式,即 “DummyAmmo”:34b,无法使虚拟弹药生效,不过我已经用lootjs修正NBT标签的问题了,不过有时间还是可以加一下这方面的支持

commented

能否举一个更具体的例子?你是在哪里使用的?