添加新材料

This commit is contained in:
Atsuihsio 2024-08-26 23:25:10 +08:00
parent 5f4aaa4f6a
commit a2b280345f
15 changed files with 74 additions and 8 deletions

View file

@ -237,7 +237,7 @@ public class Mk42Entity extends PathfinderMob implements GeoEntity, ICannonEntit
player, level, hitDamage, explosionRadius, explosionDamage, fireProbability, fireTime).durability(durability); player, level, hitDamage, explosionRadius, explosionDamage, fireProbability, fireTime).durability(durability);
entityToSpawn.setPos(this.getX(), this.getEyeY(), this.getZ()); entityToSpawn.setPos(this.getX(), this.getEyeY(), this.getZ());
entityToSpawn.shoot(this.getLookAngle().x, this.getLookAngle().y, this.getLookAngle().z, 15, 0.1f); entityToSpawn.shoot(this.getLookAngle().x, this.getLookAngle().y, this.getLookAngle().z, 15, 0.05f);
level.addFreshEntity(entityToSpawn); level.addFreshEntity(entityToSpawn);
if (player instanceof ServerPlayer serverPlayer) { if (player instanceof ServerPlayer serverPlayer) {

View file

@ -248,7 +248,7 @@ public class Mle1934Entity extends PathfinderMob implements GeoEntity, ICannonEn
entityToSpawnLeft.setPos(this.getX() + leftPos.x, entityToSpawnLeft.setPos(this.getX() + leftPos.x,
this.getEyeY() - 0.2 + leftPos.y, this.getEyeY() - 0.2 + leftPos.y,
this.getZ() + leftPos.z); this.getZ() + leftPos.z);
entityToSpawnLeft.shoot(this.getLookAngle().x, this.getLookAngle().y, this.getLookAngle().z, 18, 0.1f); entityToSpawnLeft.shoot(this.getLookAngle().x, this.getLookAngle().y, this.getLookAngle().z, 18, 0.05f);
level.addFreshEntity(entityToSpawnLeft); level.addFreshEntity(entityToSpawnLeft);
//右炮管 //右炮管
@ -263,7 +263,7 @@ public class Mle1934Entity extends PathfinderMob implements GeoEntity, ICannonEn
entityToSpawnRight.setPos(this.getX() + rightPos.x, entityToSpawnRight.setPos(this.getX() + rightPos.x,
this.getEyeY() - 0.2 + rightPos.y, this.getEyeY() - 0.2 + rightPos.y,
this.getZ() + rightPos.z); this.getZ() + rightPos.z);
entityToSpawnRight.shoot(this.getLookAngle().x, this.getLookAngle().y, this.getLookAngle().z, 18, 0.1f); entityToSpawnRight.shoot(this.getLookAngle().x, this.getLookAngle().y, this.getLookAngle().z, 18, 0.05f);
level.addFreshEntity(entityToSpawnRight); level.addFreshEntity(entityToSpawnRight);
player.getCapability(ModVariables.PLAYER_VARIABLES_CAPABILITY, null).ifPresent(capability -> capability.recoilHorizon = 1); player.getCapability(ModVariables.PLAYER_VARIABLES_CAPABILITY, null).ifPresent(capability -> capability.recoilHorizon = 1);

View file

@ -91,6 +91,8 @@ public class ModItems {
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> 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> 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> ANCIENT_CPU = ITEMS.register("ancient_cpu", () -> new Item(new Item.Properties().rarity(Rarity.RARE)));
public static final RegistryObject<Item> PROPELLER = ITEMS.register("propeller", () -> new Item(new Item.Properties()));
public static final RegistryObject<Item> MOTOR = ITEMS.register("motor", () -> new Item(new Item.Properties()));
public static final RegistryObject<Item> DRONE = ITEMS.register("drone", Drone::new); public static final RegistryObject<Item> DRONE = ITEMS.register("drone", Drone::new);
public static final RegistryObject<Item> MONITOR = ITEMS.register("monitor", Monitor::new); public static final RegistryObject<Item> MONITOR = ITEMS.register("monitor", Monitor::new);

View file

@ -150,6 +150,8 @@
"item.superbwarfare.mle1934_spawn_egg": "138.6mm50 Mle1934 R1938 Spawn Egg", "item.superbwarfare.mle1934_spawn_egg": "138.6mm50 Mle1934 R1938 Spawn Egg",
"item.superbwarfare.drone": "Drone", "item.superbwarfare.drone": "Drone",
"item.superbwarfare.monitor": "Monitor", "item.superbwarfare.monitor": "Monitor",
"item.superbwarfare.propeller": "Propeller",
"item.superbwarfare.motor": "Motor",
"item.superbwarfare.hand_grenade": "Hand Grenade", "item.superbwarfare.hand_grenade": "Hand Grenade",
"item.superbwarfare.rgo_grenade": "RGO Grenade", "item.superbwarfare.rgo_grenade": "RGO Grenade",
"item.superbwarfare.transcript": "Transcript", "item.superbwarfare.transcript": "Transcript",

View file

@ -150,6 +150,8 @@
"item.superbwarfare.mle1934_spawn_egg": "138.6mm50 Mle1934 R1938刷怪蛋", "item.superbwarfare.mle1934_spawn_egg": "138.6mm50 Mle1934 R1938刷怪蛋",
"item.superbwarfare.drone": "无人机", "item.superbwarfare.drone": "无人机",
"item.superbwarfare.monitor": "遥控器", "item.superbwarfare.monitor": "遥控器",
"item.superbwarfare.propeller": "螺旋桨",
"item.superbwarfare.motor": "马达",
"item.superbwarfare.hand_grenade": "M67手榴弹", "item.superbwarfare.hand_grenade": "M67手榴弹",
"item.superbwarfare.rgo_grenade": "RGO手榴弹", "item.superbwarfare.rgo_grenade": "RGO手榴弹",
"item.superbwarfare.transcript": "成绩单", "item.superbwarfare.transcript": "成绩单",

View file

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

View file

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 275 B

After

Width:  |  Height:  |  Size: 236 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 361 B

After

Width:  |  Height:  |  Size: 346 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 403 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 242 B

View file

@ -8,19 +8,19 @@
], ],
"key": { "key": {
"a": { "a": {
"item": "minecraft:black_carpet" "item": "superbwarfare:propeller"
}, },
"b": { "b": {
"item": "minecraft:piston" "item": "superbwarfare:motor"
}, },
"c": { "c": {
"item": "minecraft:compass" "item": "minecraft:compass"
}, },
"d": { "d": {
"item": "minecraft:iron_ingot" "item": "minecraft:iron_nugget"
}, },
"e": { "e": {
"item": "minecraft:dropper" "item": "superbwarfare:shield_cell"
} }
}, },
"result": { "result": {

View file

@ -14,7 +14,7 @@
"item": "minecraft:beacon" "item": "minecraft:beacon"
}, },
"c": { "c": {
"item": "superbwarfare:tungsten_rod" "item": "superbwarfare:shield_cell"
} }
}, },
"result": { "result": {

View file

@ -0,0 +1,27 @@
{
"type": "minecraft:crafting_shaped",
"category": "misc",
"pattern": [
"aba",
"aba",
"cdc"
],
"key": {
"a": {
"tag": "forge:plates/copper"
},
"b": {
"item": "minecraft:iron_ingot"
},
"c": {
"item": "minecraft:iron_nugget"
},
"d": {
"item": "minecraft:lodestone"
}
},
"result": {
"item": "superbwarfare:motor",
"count": 32
}
}

View file

@ -0,0 +1,21 @@
{
"type": "minecraft:crafting_shaped",
"category": "misc",
"pattern": [
" a ",
"aba",
" a "
],
"key": {
"a": {
"tag": "minecraft:planks"
},
"b": {
"item": "minecraft:iron_nugget"
}
},
"result": {
"item": "superbwarfare:propeller",
"count": 2
}
}