Jump to content

clowcadia

Members
  • Posts

    458
  • Joined

  • Last visited

Everything posted by clowcadia

  1. So should i use my jdk or get jre?
  2. Ok i followed that but now in mhy run configuration for both client and server the jre is default no jre?(i have jdk installed shoul i also havce a jre installed on the computer too?)
  3. sorry it follows at greater distance
  4. now i am confused what is the point for the follow owner when there is tamed or leashed... so confused
  5. I just realized that wolf doesnt really follow unless its leashed , same with my entity. i am tryign to figure out how i can get same effect with out a leash , any pointers?
  6. Trying JIdea, followed all instruction from the gradlew readme, but on trying to run client i am getting this "C:\Program Files\Java\jdk1.8.0_121\bin\java" -Didea.launcher.port=7533 "-Didea.launcher.bin.path=C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 2016.3.5\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\Java\jdk1.8.0_121\lib\ant-javafx.jar;C:\Program Files\Java\jdk1.8.0_121\lib\dt.jar;C:\Program Files\Java\jdk1.8.0_121\lib\javafx-mx.jar;C:\Program Files\Java\jdk1.8.0_121\lib\jconsole.jar;C:\Program Files\Java\jdk1.8.0_121\lib\packager.jar;C:\Program Files\Java\jdk1.8.0_121\lib\sa-jdi.jar;C:\Program Files\Java\jdk1.8.0_121\lib\tools.jar;C:\Users\Andre\OneDrive\Documents\Development\MinecraftForge\1.11\NPCTesting\out\production\NPCTesting;C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 2016.3.5\lib\idea_rt.jar" com.intellij.rt.execution.application.AppMain GradleStart Exception in thread "main" java.lang.ClassNotFoundException: GradleStart at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:264) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:123) Process finished with exit code 1
  7. i commented out the tamed one still the issue
  8. There https://github.com/Clowcadia/MinecraftForge/blob/master/1.11/NPCTesting/src/main/java/com/clowcadia/test/entities/Test.java
  9. ...it got corrupt hold on
  10. I added the task to the entity class contructor and am able to become owner, yet my entity does not follow https://github.com/Clowcadia/MinecraftForge/blob/master/1.11/NPCTesting/src/main/java/com/clowcadia/test/entities/Test.java
  11. its capable of eating if you insert apples in its inventory through a gui u can access by right clicking on the mob, it has a stomach counter that atm last forever, through exit and entering the world. i am sorry just proudly excited, i made this work and am able to help someone
  12. I got you, i made a functional mob, just look at all my *Test* classes, model directory and render directory https://github.com/Clowcadia/MinecraftForge/tree/master/1.11/NPCTesting/src/main/java/com/clowcadia/test
  13. https://github.com/Clowcadia/MCForgeNPCTesting/tree/master The name of a directory for this repo is meant to be NPCTesting
  14. Egg package com.clowcadia.test.entities; import java.util.BitSet; import com.clowcadia.test.TestModHandler; import net.minecraft.entity.EntityList; import net.minecraft.util.ResourceLocation; import net.minecraftforge.fml.common.registry.EntityRegistry; public class TestEntities { public static void registerEntity(){ createEntity(Test.class, "Test", 0xa62323, 0xed1515, 1); } public static void createEntity(Class entityClass, String entityName, int solidColor, int spotColor, int id){ EntityRegistry.registerModEntity(new ResourceLocation(TestModHandler.modId,entityName), entityClass, entityName, id, TestModHandler.instance, 64, 1, true, solidColor, spotColor); } }
  15. it stands still while its hands go front to back quickly and repeatedly till it goes poof after like 10 seconds
  16. Sorry i just thought its a codeless problem/solution package com.clowcadia.test.entities; import net.minecraft.entity.EntityAgeable; import net.minecraft.entity.SharedMonsterAttributes; import net.minecraft.entity.ai.EntityAITempt; import net.minecraft.entity.monster.EntityMob; import net.minecraft.entity.passive.EntityTameable; import net.minecraft.init.Items; import net.minecraft.world.World; public class Test extends EntityTameable{ public Test(World worldIn) { super(worldIn); this.tasks.addTask(0, new EntityAITempt(this, 0.5d, Items.APPLE, false)); } @Override public boolean isAIDisabled() { // TODO Auto-generated method stub return false; } @Override public EntityAgeable createChild(EntityAgeable ageable) { // TODO Auto-generated method stub return null; } } not sure what else would make it have this effect
  17. Real problem, switched entity class extrension from entityMob to entityTameable, entity twitches and dies momentarly
  18. ...solved, there were a few entity mob occurences that needed to be changed
  19. package com.clowcadia.test.entities; import net.minecraft.entity.EntityAgeable; import net.minecraft.entity.SharedMonsterAttributes; import net.minecraft.entity.ai.EntityAITempt; import net.minecraft.entity.monster.EntityMob; import net.minecraft.entity.passive.EntityTameable; import net.minecraft.init.Items; import net.minecraft.world.World; public class Test extends EntityTameable{ public Test(World worldIn) { super(worldIn); this.tasks.addTask(0, new EntityAITempt(this, 0.5d, Items.APPLE, false)); } @Override public boolean isAIDisabled() { // TODO Auto-generated method stub return false; } @Override public EntityAgeable createChild(EntityAgeable ageable) { // TODO Auto-generated method stub return null; } } package com.clowcadia.test.render; import com.clowcadia.test.model.ModelTest; import net.minecraft.client.model.ModelBiped; import net.minecraft.client.renderer.entity.Render; import net.minecraft.client.renderer.entity.RenderManager; import net.minecraft.entity.monster.EntityMob; import net.minecraftforge.fml.client.registry.IRenderFactory; import scala.xml.dtd.PublicID; public class RenderTestFactory implements IRenderFactory<EntityMob>{ public static final RenderTestFactory INSTANCE = new RenderTestFactory(); @Override public Render<? super EntityMob> createRenderFor(RenderManager manager) { // TODO Auto-generated method stub return new RenderEntityTest(manager, new ModelBiped(), 1.0f); } }
  20. I just switche my entityMob to entityTameable and now i got this render issue private static void registerMobModels(){ registerMobModel(Test.class, RenderTestFactory.INSTANCE); } private static <T extends Entity> void registerMobModel(Class<T> entity, IRenderFactory<? super T> renderFactory) { RenderingRegistry.registerEntityRenderingHandler(entity, renderFactory); }
  21. my texture was not a for a biped model, solved
×
×
  • Create New...

Important Information

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