优化电击药水的音效
This commit is contained in:
parent
0458f1a61b
commit
0ae00a3681
8 changed files with 29 additions and 0 deletions
|
@ -106,5 +106,9 @@ public class TargetMod {
|
|||
|
||||
event.enqueueWork(() -> BrewingRecipeRegistry.addRecipe(Ingredient.of(PotionUtils.setPotion(new ItemStack(Items.POTION), Potions.WATER)),
|
||||
Ingredient.of(Items.LIGHTNING_ROD), PotionUtils.setPotion(new ItemStack(Items.POTION), TargetModPotion.SHOCK.get())));
|
||||
event.enqueueWork(() -> BrewingRecipeRegistry.addRecipe(Ingredient.of(PotionUtils.setPotion(new ItemStack(Items.POTION), TargetModPotion.SHOCK.get())),
|
||||
Ingredient.of(Items.REDSTONE), PotionUtils.setPotion(new ItemStack(Items.POTION), TargetModPotion.LONG_SHOCK.get())));
|
||||
event.enqueueWork(() -> BrewingRecipeRegistry.addRecipe(Ingredient.of(PotionUtils.setPotion(new ItemStack(Items.POTION), TargetModPotion.SHOCK.get())),
|
||||
Ingredient.of(Items.GLOWSTONE_DUST), PotionUtils.setPotion(new ItemStack(Items.POTION), TargetModPotion.STRONG_SHOCK.get())));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,4 +13,8 @@ public class TargetModPotion {
|
|||
|
||||
public static final RegistryObject<Potion> SHOCK= POTIONS.register("target_shock",
|
||||
() -> new Potion(new MobEffectInstance(TargetModMobEffects.SHOCK.get(), 100, 0)));
|
||||
public static final RegistryObject<Potion> STRONG_SHOCK = POTIONS.register("target_strong_shock",
|
||||
() -> new Potion(new MobEffectInstance(TargetModMobEffects.SHOCK.get(), 100, 1)));
|
||||
public static final RegistryObject<Potion> LONG_SHOCK = POTIONS.register("target_long_shock",
|
||||
() -> new Potion(new MobEffectInstance(TargetModMobEffects.SHOCK.get(), 400, 0)));
|
||||
}
|
||||
|
|
|
@ -15,6 +15,7 @@ public class TargetModSounds {
|
|||
public static final RegistryObject<SoundEvent> TASER_FIRE_3P = REGISTRY.register("taser_fire_3p", () -> SoundEvent.createVariableRangeEvent(new ResourceLocation("target", "taser_fire_3p")));
|
||||
public static final RegistryObject<SoundEvent> TASER_RELOAD = REGISTRY.register("taser_reload", () -> SoundEvent.createVariableRangeEvent(new ResourceLocation("target", "taser_reload")));
|
||||
public static final RegistryObject<SoundEvent> SHOCK = REGISTRY.register("shock", () -> SoundEvent.createVariableRangeEvent(new ResourceLocation("target", "shock")));
|
||||
public static final RegistryObject<SoundEvent> ELECTRIC = REGISTRY.register("electric", () -> SoundEvent.createVariableRangeEvent(new ResourceLocation("target", "electric")));
|
||||
public static final RegistryObject<SoundEvent> TRACHELIUM_FIRE_1P = REGISTRY.register("trachelium_fire_1p", () -> SoundEvent.createVariableRangeEvent(new ResourceLocation("target", "trachelium_fire_1p")));
|
||||
public static final RegistryObject<SoundEvent> TRACHELIUM_FIRE_3P = REGISTRY.register("trachelium_fire_3p", () -> SoundEvent.createVariableRangeEvent(new ResourceLocation("target", "trachelium_fire_3p")));
|
||||
public static final RegistryObject<SoundEvent> TRACHELIUM_FAR = REGISTRY.register("trachelium_far", () -> SoundEvent.createVariableRangeEvent(new ResourceLocation("target", "trachelium_far")));
|
||||
|
|
|
@ -196,6 +196,12 @@
|
|||
"item.minecraft.potion.effect.target_shock": "Potion of Shock",
|
||||
"item.minecraft.splash_potion.effect.target_shock": "Splash Potion of Shock",
|
||||
"item.minecraft.lingering_potion.effect.target_shock": "Lingering Potion of Shock",
|
||||
"item.minecraft.potion.effect.target_strong_shock": "Potion of Shock",
|
||||
"item.minecraft.splash_potion.effect.target_strong_shock": "Splash Potion of Shock",
|
||||
"item.minecraft.lingering_potion.effect.target_strong_shock": "Lingering Potion of Shock",
|
||||
"item.minecraft.potion.effect.target_long_shock": "Potion of Shock",
|
||||
"item.minecraft.splash_potion.effect.target_long_shock": "Splash Potion of Shock",
|
||||
"item.minecraft.lingering_potion.effect.target_long_shock": "Lingering Potion of Shock",
|
||||
|
||||
"des.target.sensitivity": "Current Sensitivity of This Gun: %1$s",
|
||||
|
||||
|
|
|
@ -196,6 +196,12 @@
|
|||
"item.minecraft.potion.effect.target_shock": "电击药水",
|
||||
"item.minecraft.splash_potion.effect.target_shock": "喷溅型电击药水",
|
||||
"item.minecraft.lingering_potion.effect.target_shock": "滞留型电击药水",
|
||||
"item.minecraft.potion.effect.target_strong_shock": "电击药水",
|
||||
"item.minecraft.splash_potion.effect.target_strong_shock": "喷溅型电击药水",
|
||||
"item.minecraft.lingering_potion.effect.target_strong_shock": "滞留型电击药水",
|
||||
"item.minecraft.potion.effect.target_long_shock": "电击药水",
|
||||
"item.minecraft.splash_potion.effect.target_long_shock": "喷溅型电击药水",
|
||||
"item.minecraft.lingering_potion.effect.target_long_shock": "滞留型电击药水",
|
||||
|
||||
"des.target.sensitivity": "当前枪械的灵敏度为:%1$s",
|
||||
|
||||
|
|
|
@ -1223,6 +1223,14 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
"electric": {
|
||||
"sounds": [
|
||||
{
|
||||
"name": "target:electric",
|
||||
"stream": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"triggerclick": {
|
||||
"sounds": [
|
||||
{
|
||||
|
|
BIN
src/main/resources/assets/target/sounds/electric.ogg
Normal file
BIN
src/main/resources/assets/target/sounds/electric.ogg
Normal file
Binary file not shown.
Binary file not shown.
Loading…
Add table
Reference in a new issue