Add stuff

This commit is contained in:
Bruno Rybársky 2024-07-27 17:37:26 +02:00
parent d5a28040e4
commit e692223bc4
9 changed files with 7 additions and 6 deletions

@ -112,12 +112,12 @@ public class PlasticGun implements ModInitializer {
grenades.add(new GrenadeItem("grenade_k417", 1, 7f, 0.5f, 70, false, true, 0, 0, 0, 10, 0)); // K417 Fragmentation Grenade grenades.add(new GrenadeItem("grenade_k417", 1, 7f, 0.5f, 70, false, true, 0, 0, 0, 10, 0)); // K417 Fragmentation Grenade
shurikens.add(new ShurikenItem("wooden_shuriken", 0.1, 5, 4f)); shurikens.add(new ShurikenItem("wooden_shuriken", 1, 5, 4f));
shurikens.add(new ShurikenItem("stone_shuriken", 0.2, 5, 4f)); shurikens.add(new ShurikenItem("stone_shuriken", 2, 5, 4f));
shurikens.add(new ShurikenItem("iron_shuriken", 0.4, 5, 4f)); shurikens.add(new ShurikenItem("iron_shuriken", 4, 5, 4f));
shurikens.add(new ShurikenItem("golden_shuriken", 0.3, 5, 4f)); shurikens.add(new ShurikenItem("golden_shuriken", 3, 5, 4f));
shurikens.add(new ShurikenItem("diamond_shuriken", 0.8, 5, 4f)); shurikens.add(new ShurikenItem("diamond_shuriken", 4, 5, 4f));
shurikens.add(new ShurikenItem("netherite_shuriken", 1, 5, 4f)); shurikens.add(new ShurikenItem("netherite_shuriken", 8, 5, 4f));
GRENADE_ENTITY_TYPE = Registry.register( GRENADE_ENTITY_TYPE = Registry.register(

@ -119,6 +119,7 @@ public class GrenadeEntity extends ThrowableProjectile implements PolymerEntity
for (Entity entity : nearbyEntities) { for (Entity entity : nearbyEntities) {
if (entity instanceof LivingEntity livingEntity) { if (entity instanceof LivingEntity livingEntity) {
livingEntity.addStatusEffect(new StatusEffectInstance(StatusEffects.SLOWNESS, stunDuration, 255, true, false)); livingEntity.addStatusEffect(new StatusEffectInstance(StatusEffects.SLOWNESS, stunDuration, 255, true, false));
livingEntity.addStatusEffect(new StatusEffectInstance(StatusEffects.JUMP_BOOST, stunDuration, 255, true, false));
} }
} }
stunDuration = 0; stunDuration = 0;

Binary file not shown.

After

Width:  |  Height:  |  Size: 589 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 535 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 359 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 579 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 529 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 502 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 617 B