添加古代CPU

This commit is contained in:
Atsuihsio 2024-08-14 00:26:42 +08:00
parent b6b0514cb4
commit 120b89082f
7 changed files with 43 additions and 10 deletions

View file

@ -89,6 +89,7 @@ public class ModItems {
public static final RegistryObject<Item> SENPAI_SPAWN_EGG = ITEMS.register("senpai_spawn_egg", () -> new ForgeSpawnEggItem(ModEntities.SENPAI, -11584987, -14014413, new Item.Properties()));
public static final RegistryObject<Item> MK_42_SPAWN_EGG = ITEMS.register("mk42_spawn_egg", () -> new ForgeSpawnEggItem(ModEntities.MK_42, -8348258, -2630437, new Item.Properties()));
public static final RegistryObject<Item> MLE_1934_SPAWN_EGG = ITEMS.register("mle1934_spawn_egg", () -> new ForgeSpawnEggItem(ModEntities.MLE_1934, -3355444, -14146005, new Item.Properties()));
public static final RegistryObject<Item> ANCIENT_CPU = ITEMS.register("ancient_cpu", () -> new Item(new Item.Properties().rarity(Rarity.RARE)));
public static final RegistryObject<Item> DRONE = ITEMS.register("drone", Drone::new);
public static final RegistryObject<Item> MONITOR = ITEMS.register("monitor", Monitor::new);

View file

@ -125,6 +125,7 @@
"item.superbwarfare.he_5_inches": "HE Shell",
"item.superbwarfare.ap_5_inches": "AP Shell",
"item.superbwarfare.ancient_cpu": "Ancient CPU",
"item.superbwarfare.target_deployer": "Target",
"item.superbwarfare.senpai_spawn_egg": "Senpai Spawn Egg",
"item.superbwarfare.light_saber": "Light Saber",
@ -150,7 +151,6 @@
"attribute.superbwarfare.spread": "Spread",
"block.superbwarfare.gun_recycle": "Gun Recycle Table",
"block.superbwarfare.jump_pad": "Jump Pad",
"block.superbwarfare.sandbag": "Sandbag",
"block.superbwarfare.barbed_wire": "Barbed Wire",
@ -314,8 +314,5 @@
"des.superbwarfare.drone.kamikaze": "KAMIKAZE",
"des.superbwarfare.drone.warning": "WARNING!",
"container.superbwarfare.reforging_table": "Gun Reforge Table",
"button.superbwarfare.downgrade": "↓",
"button.superbwarfare.upgrade": "↑",
"button.superbwarfare.reforge": "Reforge"
"container.superbwarfare.reforging_table": "Gun Reforge Table"
}

View file

@ -125,6 +125,7 @@
"item.superbwarfare.he_5_inches": "高爆弹",
"item.superbwarfare.ap_5_inches": "穿甲弹",
"item.superbwarfare.ancient_cpu": "古代处理器",
"item.superbwarfare.target_deployer": "标靶",
"item.superbwarfare.senpai_spawn_egg": "野兽先辈刷怪蛋",
"item.superbwarfare.light_saber": "光剑",
@ -150,7 +151,6 @@
"attribute.superbwarfare.spread": "散布",
"block.superbwarfare.gun_recycle": "枪械拆解台",
"block.superbwarfare.jump_pad": "弹射台",
"block.superbwarfare.sandbag": "沙袋",
"block.superbwarfare.barbed_wire": "铁丝网",
@ -314,8 +314,5 @@
"des.superbwarfare.drone.kamikaze": "自爆模式",
"des.superbwarfare.drone.warning": "警告!",
"container.superbwarfare.reforging_table": "枪械重铸台",
"button.superbwarfare.downgrade": "↓",
"button.superbwarfare.upgrade": "↑",
"button.superbwarfare.reforge": "重铸"
"container.superbwarfare.reforging_table": "枪械重铸台"
}

View file

@ -0,0 +1,6 @@
{
"parent": "item/generated",
"textures": {
"layer0": "superbwarfare:item/ancient_cpu"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 433 B

View file

@ -0,0 +1,10 @@
{
"type": "superbwarfare:superbwarfare_loot_modifier",
"conditions": [
{
"condition": "forge:loot_table_id",
"loot_table_id": "minecraft:chests/ancient_city"
}
],
"lootTable": "superbwarfare:chests/ancient_cpu"
}

View file

@ -0,0 +1,22 @@
{
"type": "minecraft:chest",
"pools": [
{
"rolls": 1,
"bonus_rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "superbwarfare:ancient_cpu"
}
],
"conditions": [
{
"condition": "minecraft:random_chance",
"chance": 0.2
}
]
}
],
"random_sequence": "superbwarfare:chests/ancient_cpu"
}