添加大型电动机和轮椅配方
This commit is contained in:
parent
397f30bb6c
commit
aad489880f
11 changed files with 68 additions and 8 deletions
|
@ -1,4 +1,4 @@
|
||||||
// 1.20.1 2025-01-05T22:08:45.9480261 Item Models: superbwarfare
|
// 1.20.1 2025-01-07T02:18:22.6361822 Item Models: superbwarfare
|
||||||
13ca8d5676888ff51f3308d88e4bf67691fa34f8 assets/superbwarfare/models/item/aa_12_blueprint.json
|
13ca8d5676888ff51f3308d88e4bf67691fa34f8 assets/superbwarfare/models/item/aa_12_blueprint.json
|
||||||
13ca8d5676888ff51f3308d88e4bf67691fa34f8 assets/superbwarfare/models/item/ak_12_blueprint.json
|
13ca8d5676888ff51f3308d88e4bf67691fa34f8 assets/superbwarfare/models/item/ak_12_blueprint.json
|
||||||
13ca8d5676888ff51f3308d88e4bf67691fa34f8 assets/superbwarfare/models/item/ak_47_blueprint.json
|
13ca8d5676888ff51f3308d88e4bf67691fa34f8 assets/superbwarfare/models/item/ak_47_blueprint.json
|
||||||
|
@ -46,6 +46,7 @@ e04bbd61e716fc5d53c9425aba508fc3287bfd57 assets/superbwarfare/models/item/iron_p
|
||||||
13ca8d5676888ff51f3308d88e4bf67691fa34f8 assets/superbwarfare/models/item/javelin_blueprint.json
|
13ca8d5676888ff51f3308d88e4bf67691fa34f8 assets/superbwarfare/models/item/javelin_blueprint.json
|
||||||
195c1b7cbcce9b0ac42ecbfc21a8cafff8c78372 assets/superbwarfare/models/item/jump_pad.json
|
195c1b7cbcce9b0ac42ecbfc21a8cafff8c78372 assets/superbwarfare/models/item/jump_pad.json
|
||||||
13ca8d5676888ff51f3308d88e4bf67691fa34f8 assets/superbwarfare/models/item/k_98_blueprint.json
|
13ca8d5676888ff51f3308d88e4bf67691fa34f8 assets/superbwarfare/models/item/k_98_blueprint.json
|
||||||
|
4c9b6c2911ae5e6e2a026d2ae9d3c0564cdba0b3 assets/superbwarfare/models/item/large_motor.json
|
||||||
ce9e4fd8ea92cfdbdda158776c1b6e1b482a3f2a assets/superbwarfare/models/item/lead_ingot.json
|
ce9e4fd8ea92cfdbdda158776c1b6e1b482a3f2a assets/superbwarfare/models/item/lead_ingot.json
|
||||||
f66c351b4843ad4d4e086ccfb7d4d0221227d196 assets/superbwarfare/models/item/legendary_material_pack.json
|
f66c351b4843ad4d4e086ccfb7d4d0221227d196 assets/superbwarfare/models/item/legendary_material_pack.json
|
||||||
13ca8d5676888ff51f3308d88e4bf67691fa34f8 assets/superbwarfare/models/item/m2hb_blueprint.json
|
13ca8d5676888ff51f3308d88e4bf67691fa34f8 assets/superbwarfare/models/item/m2hb_blueprint.json
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"parent": "minecraft:item/generated",
|
||||||
|
"textures": {
|
||||||
|
"layer0": "superbwarfare:item/large_motor"
|
||||||
|
}
|
||||||
|
}
|
|
@ -29,6 +29,7 @@ public class ModItemModelProvider extends ItemModelProvider {
|
||||||
simpleItem(ModItems.ANCIENT_CPU);
|
simpleItem(ModItems.ANCIENT_CPU);
|
||||||
simpleItem(ModItems.PROPELLER);
|
simpleItem(ModItems.PROPELLER);
|
||||||
simpleItem(ModItems.MOTOR);
|
simpleItem(ModItems.MOTOR);
|
||||||
|
simpleItem(ModItems.LARGE_MOTOR);
|
||||||
simpleItem(ModItems.DRONE);
|
simpleItem(ModItems.DRONE);
|
||||||
|
|
||||||
simpleItem(ModItems.TARGET_DEPLOYER);
|
simpleItem(ModItems.TARGET_DEPLOYER);
|
||||||
|
|
|
@ -78,15 +78,12 @@ public class MobileVehicleEntity extends EnergyVehicleEntity {
|
||||||
if ((verticalCollision)) {
|
if ((verticalCollision)) {
|
||||||
if (this instanceof IHelicopterEntity) {
|
if (this instanceof IHelicopterEntity) {
|
||||||
this.hurt(ModDamageTypes.causeVehicleStrikeDamage(this.level().registryAccess(), this, this.getFirstPassenger() == null ? this : this.getFirstPassenger()), (float) (100 * ((lastTickSpeed - 0.3) * (lastTickSpeed - 0.3))));
|
this.hurt(ModDamageTypes.causeVehicleStrikeDamage(this.level().registryAccess(), this, this.getFirstPassenger() == null ? this : this.getFirstPassenger()), (float) (100 * ((lastTickSpeed - 0.3) * (lastTickSpeed - 0.3))));
|
||||||
|
this.bounceVertical(Direction.getNearest(this.getDeltaMovement().x(), this.getDeltaMovement().y(), this.getDeltaMovement().z()).getOpposite());
|
||||||
|
crash = true;
|
||||||
} else if (Mth.abs((float) lastTickVerticalSpeed) > 0.6) {
|
} else if (Mth.abs((float) lastTickVerticalSpeed) > 0.6) {
|
||||||
this.hurt(ModDamageTypes.causeVehicleStrikeDamage(this.level().registryAccess(), this, this.getFirstPassenger() == null ? this : this.getFirstPassenger()), (float) (240 * ((Mth.abs((float) lastTickVerticalSpeed) - 0.6) * (lastTickSpeed - 0.4) * (lastTickSpeed - 0.4))));
|
this.hurt(ModDamageTypes.causeVehicleStrikeDamage(this.level().registryAccess(), this, this.getFirstPassenger() == null ? this : this.getFirstPassenger()), (float) (240 * ((Mth.abs((float) lastTickVerticalSpeed) - 0.6) * (lastTickSpeed - 0.4) * (lastTickSpeed - 0.4))));
|
||||||
}
|
|
||||||
this.bounceVertical(Direction.getNearest(this.getDeltaMovement().x(), this.getDeltaMovement().y(), this.getDeltaMovement().z()).getOpposite());
|
this.bounceVertical(Direction.getNearest(this.getDeltaMovement().x(), this.getDeltaMovement().y(), this.getDeltaMovement().z()).getOpposite());
|
||||||
if (!this.level().isClientSide) {
|
|
||||||
this.level().playSound(null, this, ModSounds.VEHICLE_STRIKE.get(), this.getSoundSource(), 1, 1);
|
|
||||||
}
|
}
|
||||||
collisionCoolDown = 4;
|
|
||||||
crash = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.horizontalCollision) {
|
if (this.horizontalCollision) {
|
||||||
|
@ -113,6 +110,10 @@ public class MobileVehicleEntity extends EnergyVehicleEntity {
|
||||||
|
|
||||||
public void bounceVertical(Direction direction) {
|
public void bounceVertical(Direction direction) {
|
||||||
if (direction.getAxis() == Direction.Axis.Y) {
|
if (direction.getAxis() == Direction.Axis.Y) {
|
||||||
|
if (!this.level().isClientSide) {
|
||||||
|
this.level().playSound(null, this, ModSounds.VEHICLE_STRIKE.get(), this.getSoundSource(), 1, 1);
|
||||||
|
}
|
||||||
|
collisionCoolDown = 4;
|
||||||
this.setDeltaMovement(this.getDeltaMovement().multiply(0.9, -0.8, 0.9));
|
this.setDeltaMovement(this.getDeltaMovement().multiply(0.9, -0.8, 0.9));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -120,6 +120,7 @@ public class ModItems {
|
||||||
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> 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> MOTOR = ITEMS.register("motor", () -> new Item(new Item.Properties()));
|
||||||
|
public static final RegistryObject<Item> LARGE_MOTOR = ITEMS.register("large_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);
|
||||||
|
|
|
@ -185,6 +185,7 @@
|
||||||
"des.superbwarfare.monitor": "Drone Distance: %1$s",
|
"des.superbwarfare.monitor": "Drone Distance: %1$s",
|
||||||
"item.superbwarfare.propeller": "Propeller",
|
"item.superbwarfare.propeller": "Propeller",
|
||||||
"item.superbwarfare.motor": "Motor",
|
"item.superbwarfare.motor": "Motor",
|
||||||
|
"item.superbwarfare.large_motor": "Large 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",
|
||||||
|
|
|
@ -184,6 +184,7 @@
|
||||||
"des.superbwarfare.monitor": "无人机距离你: %1$s",
|
"des.superbwarfare.monitor": "无人机距离你: %1$s",
|
||||||
"item.superbwarfare.propeller": "螺旋桨",
|
"item.superbwarfare.propeller": "螺旋桨",
|
||||||
"item.superbwarfare.motor": "马达",
|
"item.superbwarfare.motor": "马达",
|
||||||
|
"item.superbwarfare.large_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": "成绩单",
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 457 B |
|
@ -0,0 +1,18 @@
|
||||||
|
{
|
||||||
|
"type": "minecraft:crafting_shaped",
|
||||||
|
"category": "equipment",
|
||||||
|
"pattern": [
|
||||||
|
"aaa",
|
||||||
|
"aaa",
|
||||||
|
"aaa"
|
||||||
|
],
|
||||||
|
"key": {
|
||||||
|
"a": {
|
||||||
|
"item": "superbwarfare:motor"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"result": {
|
||||||
|
"item": "superbwarfare:large_motor",
|
||||||
|
"count": 1
|
||||||
|
}
|
||||||
|
}
|
|
@ -29,7 +29,7 @@
|
||||||
"item": "superbwarfare:cell"
|
"item": "superbwarfare:cell"
|
||||||
},
|
},
|
||||||
"h": {
|
"h": {
|
||||||
"item": "superbwarfare:motor"
|
"item": "superbwarfare:large_motor"
|
||||||
},
|
},
|
||||||
"i": {
|
"i": {
|
||||||
"tag":"forge:ingots/copper"
|
"tag":"forge:ingots/copper"
|
||||||
|
|
|
@ -0,0 +1,30 @@
|
||||||
|
{
|
||||||
|
"type": "minecraft:crafting_shaped",
|
||||||
|
"category": "misc",
|
||||||
|
"pattern": [
|
||||||
|
" ab",
|
||||||
|
"cdc"
|
||||||
|
],
|
||||||
|
"key": {
|
||||||
|
"a": {
|
||||||
|
"item": "minecraft:minecart"
|
||||||
|
},
|
||||||
|
"b": {
|
||||||
|
"item": "superbwarfare:cell"
|
||||||
|
},
|
||||||
|
"c": {
|
||||||
|
"item": "minecraft:black_wool"
|
||||||
|
},
|
||||||
|
"d": {
|
||||||
|
"item": "superbwarfare:motor"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"result": {
|
||||||
|
"item": "superbwarfare:container",
|
||||||
|
"nbt": {
|
||||||
|
"BlockEntityTag": {
|
||||||
|
"EntityType": "superbwarfare:wheel_chair"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue