Jump to content

uhoh, it looks like the game has crashed sorry for the inconvenience


Recommended Posts

 

  

---- Minecraft Crash Report ----

WARNING: coremods are present:
  llibrary (llibrary-core-1.0.11-1.12.2.jar)
  HammerCoreCore (HammerCore-1.12.2-1.9.6.5.jar)
  FarseekCoreMod (Farseek-Mod-1.12.2.jar)
  SFRCore (SolarFluxReborn_1.12.2-3.42r.jar)
  DynamicSurroundingsCore (DynamicSurroundings-core-1.12.2-3.5.4.3.jar)
Contact their authors BEFORE contacting forge

// Don't be sad, have a hug! <3

Time: 4/2/20 12:59 AM
Description: Initializing game

java.lang.NoClassDefFoundError: Lromelo333/notenoughwands/proxy/CommonProxy;
    at java.lang.Class.getDeclaredFields0(Native Method)
    at java.lang.Class.privateGetDeclaredFields(Unknown Source)
    at java.lang.Class.getDeclaredField(Unknown Source)
    at net.minecraftforge.fml.common.ProxyInjector.inject(ProxyInjector.java:70)
    at net.minecraftforge.fml.common.FMLModContainer.constructMod(FMLModContainer.java:611)
    at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91)
    at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150)
    at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76)
    at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399)
    at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71)
    at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116)
    at com.google.common.eventbus.EventBus.post(EventBus.java:217)
    at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:219)
    at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:197)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91)
    at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150)
    at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76)
    at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399)
    at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71)
    at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116)
    at com.google.common.eventbus.EventBus.post(EventBus.java:217)
    at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:136)
    at net.minecraftforge.fml.common.Loader.loadMods(Loader.java:595)
    at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:232)
    at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:467)
    at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:378)
    at net.minecraft.client.main.Main.main(SourceFile:123)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
Caused by: java.lang.ClassNotFoundException: romelo333.notenoughwands.proxy.CommonProxy
    at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    ... 40 more
Caused by: java.lang.NoClassDefFoundError: mcjty/lib/proxy/AbstractCommonProxy
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:182)
    ... 42 more
Caused by: java.lang.ClassNotFoundException: mcjty.lib.proxy.AbstractCommonProxy
    at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:101)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    ... 46 more


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Thread: Client thread
Stacktrace:
    at java.lang.Class.getDeclaredFields0(Native Method)
    at java.lang.Class.privateGetDeclaredFields(Unknown Source)
    at java.lang.Class.getDeclaredField(Unknown Source)
    at net.minecraftforge.fml.common.ProxyInjector.inject(ProxyInjector.java:70)
    at net.minecraftforge.fml.common.FMLModContainer.constructMod(FMLModContainer.java:611)
    at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91)
    at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150)
    at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76)
    at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399)
    at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71)
    at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116)
    at com.google.common.eventbus.EventBus.post(EventBus.java:217)
    at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:219)
    at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:197)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91)
    at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150)
    at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76)
    at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399)
    at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71)
    at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116)
    at com.google.common.eventbus.EventBus.post(EventBus.java:217)
    at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:136)
    at net.minecraftforge.fml.common.Loader.loadMods(Loader.java:595)
    at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:232)
    at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:467)

-- Initialization --
Details:
Stacktrace:
    at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:378)
    at net.minecraft.client.main.Main.main(SourceFile:123)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

-- System Details --
Details:
    Minecraft Version: 1.12.2
    Operating System: Windows 10 (amd64) version 10.0
    Java Version: 1.8.0_241, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 162872400 bytes (155 MB) / 417247232 bytes (397 MB) up to 2134114304 bytes (2035 MB)
    JVM Flags: 6 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx2G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M
    IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    FML: MCP 9.42 Powered by Forge 14.23.5.2847 Optifine OptiFine_1.12.2_HD_U_F5 58 mods loaded, 57 mods active
    States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored

    | State | ID                  | Version          | Source                                            | Signature                                |
    |:----- |:------------------- |:---------------- |:------------------------------------------------- |:---------------------------------------- |
    | LC    | minecraft           | 1.12.2           | minecraft.jar                                     | None                                     |
    | LC    | mcp                 | 9.42             | minecraft.jar                                     | None                                     |
    | LC    | FML                 | 8.0.99.99        | forge-1.12.2-14.23.5.2847.jar                     | None                                     |
    | LC    | forge               | 14.23.5.2847     | forge-1.12.2-14.23.5.2847.jar                     | None                                     |
    | LC    | dsurroundcore       | 3.5.4.3          | minecraft.jar                                     | None                                     |
    | LC    | voxelmap            | 1.9.11           | forgemod_VoxelMap-1.9.11_for_1.12.2.jar           | None                                     |
    | LC    | actuallyadditions   | 1.12.2-r149      | Actually-Additions-Mod-1.12.2.jar                 | None                                     |
    | LC    | animalbikes         | 1.11.2           | Animal-Bikes-Mod-1.12.2.jar                       | None                                     |
    | LC    | battletowers        | 1.6.4            | BattleTowers-Mod-1.12.2.jar                       | None                                     |
    | LC    | bspkrscore          | 7.6.0.1          | BspkrsCore-1.12.2.jar                             | None                                     |
    | LC    | buildcraftlib       | 7.99.24.1        | BuildCraft-Mod-1.12.2.jar                         | None                                     |
    | LC    | buildcraftcore      | 7.99.24.1        | BuildCraft-Mod-1.12.2.jar                         | None                                     |
    | LC    | buildcraftbuilders  | 7.99.24.1        | BuildCraft-Mod-1.12.2.jar                         | None                                     |
    | LC    | buildcrafttransport | 7.99.24.1        | BuildCraft-Mod-1.12.2.jar                         | None                                     |
    | LC    | buildcraftsilicon   | 7.99.24.1        | BuildCraft-Mod-1.12.2.jar                         | None                                     |
    | LC    | buildcraftcompat    | 7.99.24.1        | BuildCraft-Mod-1.12.2.jar                         | None                                     |
    | LC    | buildcraftenergy    | 7.99.24.1        | BuildCraft-Mod-1.12.2.jar                         | None                                     |
    | LC    | buildcraftfactory   | 7.99.24.1        | BuildCraft-Mod-1.12.2.jar                         | None                                     |
    | LC    | buildcraftrobotics  | 7.99.24.1        | BuildCraft-Mod-1.12.2.jar                         | None                                     |
    | LC    | codechickenlib      | 3.2.3.358        | CodeChickenLib-1.12.2-3.2.3.358-universal.jar     | f1850c39b2516232a2108a7bd84d1cb5df93b261 |
    | LC    | redstoneflux        | 2.1.0            | RedstoneFlux-1.12-2.1.0.6-universal.jar           | 8a6abf2cb9e141b866580d369ba6548732eff25f |
    | LC    | cofhcore            | 4.6.3            | CoFH-Core-1.12.2.jar                              | None                                     |
    | LC    | cofhworld           | 1.3.0            | CoFHWorld-1.12.2.jar                              | 8a6abf2cb9e141b866580d369ba6548732eff25f |
    | LC    | customspawner       | 3.11.4           | Custom-Mob-Spawner-Mod-1.12.2.jar                 | None                                     |
    | LC    | damageindicatorsmod | 1.0              | Damage-Indicators-Mod-1.12.2.jar                  | None                                     |
    | LC    | orespawn            | 3.3.1            | MMD-OreSpawn-1.12.2.jar                           | d476d1b22b218a10d845928d1665d45fce301b27 |
    | LC    | densemetals         | 1.2.0            | Dense-Metals-Mod-1.12.2.jar                       | d476d1b22b218a10d845928d1665d45fce301b27 |
    | LC    | endercompass        | 1.2.6.2          | Ender-Compass-Mod-1.12.2.jar                      | None                                     |
    | LC    | farseek             | 2.3.2            | Farseek-Mod-1.12.2.jar                            | None                                     |
    | LC    | hammercore          | 1.9.6.5          | HammerCore-1.12.2-1.9.6.5.jar                     | 4d7b29cd19124e986da685107d16ce4b49bc0a97 |
    | LC    | waila               | 1.8.26           | Hwyla-1.8.26-B41_1.12.2.jar                       | None                                     |
    | LC    | instahouses         | 1.0              | InstaHouses-Mod-1.12.2.jar                        | None                                     |
    | LC    | jei                 | 4.15.0.293       | jei_1.12.2-4.15.0.293.jar                         | None                                     |
    | LC    | lostcities          | 2.0.12           | lostcities-1.12-2.0.12.jar                        | None                                     |
    | LC    | mcjtylib_ng         | 3.5.4            | McJtyLib-1.12.2.jar                               | None                                     |
    | LC    | mininggoggles       | @VERSION@        | Mining+Goggles-0.0.3.0.jar                        | None                                     |
    | LC    | mocreatures         | 12.0.5           | Mo-Creatures-Mod-1.12.2.jar                       | None                                     |
    | LC    | mopickaxes          | 10.0: Final BETA | Mo-Pickaxes-Mod-1.12.2.jar                        | None                                     |
    | LC    | mo_swords           | v4               | MoSwords-Mod-1.12.2.jar                           | None                                     |
    | LC    | llibrary            | 1.7.18           | LLibrary-1.12.2.jar                               | b9f30a813bee3b9dd5652c460310cfcd54f6b7ec |
    | LC    | mowziesmobs         | 1.5.3            | Mowzies-Mobs-Mod-1.12.2.jar                       | None                                     |
    | L     | notenoughwands      | 1.7.1            | Not-Enough-Wands-Mod-1.12.2.jar                   | None                                     |
    | L     | nei                 | 2.4.3            | NotEnoughItems-1.12.2-2.4.3.245-universal.jar     | None                                     |
    | L     | projecte            | 1.12.2-PE1.4.1   | ProjectE-1.12.2-PE1.4.1.jar                       | None                                     |
    | L     | refinedstorage      | 1.6.15           | Refined-Storage-Mod-1.12.2 (1).jar                | None                                     |
    | L     | roguelike           | 1.8.0            | Roguelike-Dungeons-Mod-1.12.2.jar                 | None                                     |
    | L     | ropebridge          | 2.0.5            | ropebridge-1.12-2.0.7.jar                         | None                                     |
    | L     | solarfluxreborn     | 3.42r            | SolarFluxReborn_1.12.2-3.42r.jar                  | None                                     |
    | L     | streams             | 0.4.6            | Streams-Mod-1.12.2.jar                            | None                                     |
    | L     | thermalfoundation   | 2.6.3            | Thermal-Foundation-Mod-1.12.2.jar                 | None                                     |
    | L     | thermalexpansion    | 5.5.4            | Thermal-Expansion-Mod-1.12.2.jar                  | None                                     |
    | L     | thermaldynamics     | 2.5.3            | Thermal-Dynamics-Mod-1.12.2.jar                   | None                                     |
    | L     | treecapitator       | 1.43.0           | TreeCapitator-Mod-1.12.2.jar                      | None                                     |
    | L     | twilightforest      | 3.9.888          | Twilight-Forest-Mod-1.12.2.jar                    | None                                     |
    | L     | worldedit           | 6.1.10-SNAPSHOT  | worldedit-forge-mc1.12.2-6.1.10-SNAPSHOT-dist.jar | None                                     |
    | L     | orelib              | 3.6.0.1          | OreLib-1.12.2-3.6.0.1.jar                         | None                                     |
    | L     | dsurround           | 3.5.4.3          | Dynamic-Surroundings-Mod-1.12.2.jar               | None                                     |
    | UD    | solarfluxreborncore | 3.42r            | minecraft.jar                                     | None                                     |

    Loaded coremods (and transformers): 
llibrary (llibrary-core-1.0.11-1.12.2.jar)
  net.ilexiconn.llibrary.server.core.plugin.LLibraryTransformer
  net.ilexiconn.llibrary.server.core.patcher.LLibraryRuntimePatcher
HammerCoreCore (HammerCore-1.12.2-1.9.6.5.jar)
  com.pengu.hammercore.asm.HammerCoreTransformer
FarseekCoreMod (Farseek-Mod-1.12.2.jar)
  farseek.core.FarseekClassTransformer
SFRCore (SolarFluxReborn_1.12.2-3.42r.jar)
  com.pengu.solarfluxreborn.core.SFRSerializedTransformer
DynamicSurroundingsCore (DynamicSurroundings-core-1.12.2-3.5.4.3.jar)
  org.orecruncher.dsurround.asm.Transformer
    GL info: ' Vendor: 'Intel' Version: '4.3.0 - Build 10.18.15.4248' Renderer: 'Intel(R) HD Graphics'
    Launched Version: 1.12.2-forge1.12.2-14.23.5.2847
    LWJGL: 2.9.4
    OpenGL: Intel(R) HD Graphics GL version 4.3.0 - Build 10.18.15.4248, Intel
    GL Caps: Using GL 1.3 multitexturing.
Using GL 1.3 texture combiners.
Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
Shaders are available because OpenGL 2.1 is supported.
VBOs are available because OpenGL 1.5 is supported.

    Using VBOs: Yes
    Is Modded: Definitely; Client brand changed to 'fml,forge'
    Type: Client (map_client.txt)
    Resource Packs: 
    Current Language: English (US)
    Profiler Position: N/A (disabled)
    CPU: 2x Intel(R) Celeron(R) 2955U @ 1.40GHz
    OptiFine Version: OptiFine_1.12.2_HD_U_F5
    OptiFine Build: 20191204-141934
    Render Distance Chunks: 8
    Mipmaps: 4
    Anisotropic Filtering: 1
    Antialiasing: 0
    Multitexture: false
    Shaders: null
    OpenGlVersion: 4.3.0 - Build 10.18.15.4248
    OpenGlRenderer: Intel(R) HD Graphics
    OpenGlVendor: Intel
    CpuCount: 2

 

 

 

Please help me . really, I've been dealing with this error for weeks.

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • You have to set the java path in your start script
    • i tried that and i got rid of java to install the new one but it still says i have the old one and i cant get the new one because of the old one  
    • I created a boss for Minecraft and when is it called «An unexpected error occurred while trying to run this command» "net.minecraft.world.entity.ai.attributes.attribute instance.m_22100_ (double)" because the return value "net.minecraft.world.entity.monster.zombie.m_21051_(net.minecraft.world.entity.ai.attributes.attribute)" is null. I don't fully understand what the error is. But it seems to be related to attributes. Please help me figure it out   Here is the boss class itself: package org.mymod.afraid; import net.minecraft.world.entity.EntityType; import net.minecraft.world.entity.EquipmentSlot; import net.minecraft.world.entity.ai.attributes.AttributeSupplier; import net.minecraft.world.entity.ai.attributes.Attributes; import net.minecraft.world.entity.ai.goal.*; import net.minecraft.world.entity.ai.goal.target.HurtByTargetGoal; import net.minecraft.world.entity.ai.goal.target.NearestAttackableTargetGoal; import net.minecraft.world.entity.monster.Zombie; import net.minecraft.world.entity.player.Player; import net.minecraft.world.item.ItemStack; import net.minecraft.world.item.Items; import net.minecraft.world.level.Level; import net.minecraft.world.damagesource.DamageSource; import net.minecraft.world.phys.Vec3; import net.minecraft.core.BlockPos; import net.minecraft.world.level.block.Blocks; import net.minecraft.world.entity.projectile.SmallFireball; import org.jetbrains.annotations.NotNull; public class AfraidBoss extends Zombie { private static final int MAX_HEALTH = 1000; private static final double ATTACK_DAMAGE = 10.0D; private static final double FOLLOW_RANGE = 50.0D; private static final double ATTACK_KNOCKBACK = 1.0D; private static final double MOVEMENT_SPEED = 0.25D; private static final int TELEPORT_RADIUS = 20; private static final int FIREBALL_COOLDOWN = 100; // 5 seconds (20 ticks per second) private static final int FIREBALL_COUNT = 3; private int fireballCooldown = 0; private int fireDashCooldown = 0; public AfraidBoss(EntityType<? extends Zombie> type, Level level) { super(type, level); this.setHealth(MAX_HEALTH); this.setItemSlot(EquipmentSlot.MAINHAND, new ItemStack(Items.DIAMOND_SWORD)); this.setItemSlot(EquipmentSlot.OFFHAND, new ItemStack(Items.DIAMOND_SWORD)); } @Override protected void registerGoals() { this.goalSelector.addGoal(1, new MeleeAttackGoal(this, 1.0, true)); this.goalSelector.addGoal(2, new MoveTowardsTargetGoal(this, 1.0, (float) TELEPORT_RADIUS)); this.goalSelector.addGoal(3, new LookAtPlayerGoal(this, Player.class, 8.0F)); this.goalSelector.addGoal(4, new WaterAvoidingRandomStrollGoal(this, 1.0)); this.goalSelector.addGoal(5, new HurtByTargetGoal(this)); this.targetSelector.addGoal(1, new NearestAttackableTargetGoal<>(this, Player.class, true)); } @Override public void aiStep() { super.aiStep(); if (this.getTarget() instanceof Player) { Player player = (Player) this.getTarget(); double distanceToPlayer = this.distanceToSqr(player); // Fire Dash ability if (distanceToPlayer <= TELEPORT_RADIUS * TELEPORT_RADIUS && fireDashCooldown == 0) { this.fireDash(player); fireDashCooldown = 200; // Cooldown for fire dash (10 seconds) } // Fireball attack if (fireballCooldown == 0) { this.shootFireballs(player); fireballCooldown = FIREBALL_COOLDOWN; // Cooldown for fireball attack (5 seconds) } // Decrement cooldowns if (fireDashCooldown > 0) { fireDashCooldown--; } if (fireballCooldown > 0) { fireballCooldown--; } } } private void fireDash(Player player) { Vec3 direction = player.position().subtract(this.position()).normalize(); Vec3 newPos = this.position().add(direction.scale(10)); this.teleportTo(newPos.x, newPos.y, newPos.z); this.createFireTrail(newPos); player.hurt(DamageSource.mobAttack(this), 20.0F); // Damage the player } private void createFireTrail(Vec3 position) { for (int x = -2; x <= 2; x++) { for (int z = -2; z <= 2; z++) { BlockPos firePos = new BlockPos(position.x + x, position.y, position.z + z); this.level.setBlock(firePos, Blocks.FIRE.defaultBlockState(), 11); } } } private void shootFireballs(Player player) { Vec3 direction = player.position().subtract(this.position()).normalize(); for (int i = 0; i < FIREBALL_COUNT; i++) { SmallFireball fireball = new SmallFireball(this.level, this, direction.x, direction.y, direction.z); fireball.setPos(this.getX() + direction.x, this.getY() + direction.y, this.getZ() + direction.z); this.level.addFreshEntity(fireball); } } public static AttributeSupplier.Builder createAttributes() { return Zombie.createMobAttributes() .add(Attributes.MAX_HEALTH, MAX_HEALTH) .add(Attributes.ATTACK_DAMAGE, ATTACK_DAMAGE) .add(Attributes.FOLLOW_RANGE, FOLLOW_RANGE) .add(Attributes.ATTACK_KNOCKBACK, ATTACK_KNOCKBACK) .add(Attributes.MOVEMENT_SPEED, MOVEMENT_SPEED); } @Override public boolean hurt(@NotNull DamageSource source, float amount) { boolean flag = super.hurt(source, amount); if (flag && source.getEntity() instanceof Player) { Player player = (Player) source.getEntity(); if (this.random.nextInt(10) == 0) { this.teleportAndAttack(player); } } return flag; } private void teleportAndAttack(Player player) { Vec3 randomPos = player.position().add((this.random.nextDouble() - 0.5) * 4, 0, (this.random.nextDouble() - 0.5) * 4); if (this.randomTeleport(randomPos.x, randomPos.y, randomPos.z, true)) { player.hurt(DamageSource.mobAttack(this), 10.0F); // Damage the player } } }  
    • Make a test with another Launcher like MultiMC, AT Launcher or Technic Launcher
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.