Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Douille2113

Members
  • Joined

  • Last visited

  1. Hello I do not understand where in the following code it is the problem goes very well in solo but madecrash landing the waiter in multi import net.minecraftforge.fml.client.registry.*; import net.minecraftforge.fml.common.*; import net.minecraftforge.fml.common.asm.*; import net.minecraftforge.fml.common.asm.transformers.*; import net.minecraftforge.fml.common.discovery.*; import net.minecraftforge.fml.common.discovery.asm.*; import net.minecraftforge.fml.common.event.*; import net.minecraftforge.fml.common.functions.*; import net.minecraftforge.fml.common.network.*; import net.minecraftforge.fml.common.registry.*; import net.minecraftforge.fml.common.toposort.*; import net.minecraftforge.fml.common.versioning.*; import net.minecraftforge.fml.relauncher.*; import net.minecraftforge.fml.server.*; import net.minecraft.block.*; import net.minecraft.block.material.*; import net.minecraft.client.*; import net.minecraft.client.audio.*; import net.minecraft.client.entity.*; import net.minecraft.client.gui.*; import net.minecraft.client.gui.achievement.*; import net.minecraft.client.gui.inventory.*; import net.minecraft.client.model.*; import net.minecraft.client.multiplayer.*; import net.minecraft.client.particle.*; import net.minecraft.client.renderer.*; import net.minecraft.client.renderer.culling.*; import net.minecraft.client.renderer.entity.*; import net.minecraft.client.renderer.tileentity.*; import net.minecraft.client.settings.*; import net.minecraft.command.*; import net.minecraft.crash.*; import net.minecraft.creativetab.*; import net.minecraft.dispenser.*; import net.minecraft.enchantment.*; import net.minecraft.entity.*; import net.minecraft.entity.ai.*; import net.minecraft.entity.boss.*; import net.minecraft.entity.effect.*; import net.minecraft.entity.item.*; import net.minecraft.entity.monster.*; import net.minecraft.entity.passive.*; import net.minecraft.entity.player.*; import net.minecraft.entity.projectile.*; import net.minecraft.inventory.*; import net.minecraft.item.*; import net.minecraft.item.crafting.*; import net.minecraft.nbt.*; import net.minecraft.network.*; import net.minecraft.network.rcon.*; import net.minecraft.pathfinding.*; import net.minecraft.potion.*; import net.minecraft.profiler.*; import net.minecraft.server.*; import net.minecraft.server.dedicated.*; import net.minecraft.server.gui.*; import net.minecraft.server.integrated.*; import net.minecraft.server.management.*; import net.minecraft.stats.*; import net.minecraft.tileentity.*; import net.minecraft.util.*; import net.minecraft.village.*; import net.minecraft.world.*; import net.minecraft.world.biome.*; import net.minecraft.world.chunk.*; import net.minecraft.world.chunk.storage.*; import net.minecraft.world.demo.*; import net.minecraft.world.gen.*; import net.minecraft.world.gen.feature.*; import net.minecraft.world.gen.layer.*; import net.minecraft.world.gen.structure.*; import net.minecraft.world.storage.*; import net.minecraftforge.classloading.*; import net.minecraftforge.client.*; import net.minecraftforge.client.event.*; import net.minecraftforge.client.event.sound.*; import net.minecraftforge.common.*; import net.minecraftforge.event.*; import net.minecraftforge.event.entity.*; import net.minecraftforge.event.entity.item.*; import net.minecraftforge.event.entity.living.*; import net.minecraftforge.event.entity.minecart.*; import net.minecraftforge.event.entity.player.*; import net.minecraftforge.event.terraingen.*; import net.minecraftforge.event.world.*; import net.minecraftforge.oredict.*; import net.minecraftforge.transformers.*; import net.minecraft.init.*; import java.util.*; @SuppressWarnings("unchecked") public class mcreator_panda { public static int mobid = 0; public Object instance; public void load(FMLInitializationEvent event){ RenderingRegistry.registerEntityRenderingHandler(mcreator_panda.Entitypanda.class, new RenderLiving(Minecraft.getMinecraft().getRenderManager(), new ModelPig(), 0){protected ResourceLocation getEntityTexture(Entity par1Entity){return new ResourceLocation("porco_panda.png");}}); } public void generateNether(World world, Random random, int chunkX, int chunkZ){} public void generateSurface(World world, Random random, int chunkX, int chunkZ){} public int addFuel(ItemStack fuel){ return 0; } @SideOnly(Side.CLIENT) public void registerRenderers(){ } public void serverLoad(FMLServerStartingEvent event){} public void preInit(FMLPreInitializationEvent event){ int entityID = EntityRegistry.findGlobalUniqueEntityId(); mobid = entityID; EntityRegistry.registerGlobalEntityID(mcreator_panda.Entitypanda.class, "panda", entityID); EntityRegistry.registerModEntity(mcreator_panda.Entitypanda.class, "panda", entityID, instance, 64, 1, true); EntityList.entityEggs.put(Integer.valueOf(entityID), new EntityList.EntityEggInfo(entityID, (255 << 16) + (255 << + 255, (0 << 16) + (0 << + 0)); EntityRegistry.addSpawn(mcreator_panda.Entitypanda.class, 20, 3, 30, EnumCreatureType.CREATURE ,mcreator_nwBiome.biome); } public static BiomeGenBase[] clean(final BiomeGenBase[] v) { List<BiomeGenBase> list = new ArrayList<BiomeGenBase>(Arrays.asList(v)); list.removeAll(Collections.singleton(null)); return list.toArray(new BiomeGenBase[list.size()]); } /*public Entity spawnEntity(int var1, World var2, double var3, double var5, double var7) { if(var1==mobid) return new mcreator_panda.Entitypanda(var2); else return null; }*/ public static class Entitypanda extends EntityCreature { World world = null; public Entitypanda(World var1) { super(var1); world = var1; experienceValue = 5; this.isImmuneToFire = false; addRandomArmor(); setNoAI(!true); this.tasks.addTask(10, new EntityAIWander(this, 0.8D)); this.tasks.addTask(9, new EntityAILookIdle(this)); this.tasks.addTask(9, new EntityAISwimming(this)); this.tasks.addTask(3, new EntityAIEatGrass(this)); this.tasks.addTask(9, new EntityAITempt(this, 0.8D, Items.reeds, false)); } protected void applyEntityAttributes(){ super.applyEntityAttributes(); this.getEntityAttribute(SharedMonsterAttributes.movementSpeed).setBaseValue(0.25D); this.getEntityAttribute(SharedMonsterAttributes.maxHealth).setBaseValue(10D); if(this.getEntityAttribute(SharedMonsterAttributes.attackDamage)!=null)this.getEntityAttribute(SharedMonsterAttributes.attackDamage).setBaseValue(3D); } protected void addRandomArmor(){ } protected void dropRareDrop(int par1){ this.dropItem(Items.reeds, 1); } @Override protected Item getDropItem() { return new ItemStack(mcreator_pandaFoodCru.block).getItem(); } @Override protected String getLivingSound() { return "mob.sheep.say"; } @Override protected String getHurtSound() { return "game.neutral.hurt"; } @Override protected String getDeathSound() { return "game.neutral.die"; } @Override public void onStruckByLightning(EntityLightningBolt entityLightningBolt){ super.onStruckByLightning(entityLightningBolt); int i = (int)this.posX; int j = (int)this.posY; int k = (int)this.posZ; Entity entity = this; } @Override public void fall(float l, float d){ super.fall(l,d); int i = (int)this.posX; int j = (int)this.posY; int k = (int)this.posZ; super.fall(l,d); Entity entity = this; } @Override public void onDeath(DamageSource source){ super.onDeath(source); int i = (int)this.posX; int j = (int)this.posY; int k = (int)this.posZ; Entity entity = this; } @Override public boolean interact(EntityPlayer entity){ super.interact(entity); int i = (int)this.posX; int j = (int)this.posY; int k = (int)this.posZ; return true; } @Override protected float getSoundVolume() { return 1.0F; } } } Server error is : ---- Minecraft Crash Report ---- // Sorry Time: 28/10/15 12:08 Description: Exception in server tick loop net.minecraftforge.fml.common.LoaderException: java.lang.NoClassDefFoundError: net/minecraft/client/model/ModelPig at net.minecraftforge.fml.common.LoadController.transition(LoadController.java:163) at net.minecraftforge.fml.common.Loader.loadMods(Loader.java:538) at net.minecraftforge.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:87) at net.minecraftforge.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:355) at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:117) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:438) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.NoClassDefFoundError: net/minecraft/client/model/ModelPig at mod.mcreator.NW.<init>(NW.java:131) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at net.minecraftforge.fml.common.ILanguageAdapter$JavaAdapter.getNewInstance(ILanguageAdapter.java:174) at net.minecraftforge.fml.common.FMLModContainer.constructMod(FMLModContainer.java:511) 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.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:212) at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:190) 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.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:119) at net.minecraftforge.fml.common.Loader.loadMods(Loader.java:507) ... 5 more Caused by: java.lang.ClassNotFoundException: net.minecraft.client.model.ModelPig at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 35 more Caused by: java.lang.NullPointerException at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:182) ... 37 more A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- System Details -- Details: Minecraft Version: 1.8 Operating System: Windows 7 (amd64) version 6.1 Java Version: 1.8.0_65, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 1053549224 bytes (1004 MB) / 1297612800 bytes (1237 MB) up to 2863661056 bytes (2731 MB) JVM Flags: 2 total; -Xms1G -Xmx3G IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP v9.10 FML v8.0.99.99 Minecraft Forge 11.14.3.1521 4 mods loaded, 4 mods active States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored UC mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) UC FML{8.0.99.99} [Forge Mod Loader] (forge-1.8-11.14.3.1521-universal.jar) UC Forge{11.14.3.1521} [Minecraft Forge] (forge-1.8-11.14.3.1521-universal.jar) UE NW{0.9.3} [NW] (new_world_i_pre_release_v_10.jar) Loaded coremods (and transformers): Profiler Position: N/A (disabled) Is Modded: Definitely; Server brand changed to 'fml,forge' Type: Dedicated Server (map_server.txt) This code is not really the miens, I promised to a friend to solve it, but I do not find. I know it use mcreator, I know that it is null, but that pleases him. Understand it.

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.