Jump to content

MineModder2000

Members
  • Posts

    298
  • Joined

  • Last visited

Everything posted by MineModder2000

  1. I was aware of that value......I should've been clearer in my question, as I am confused as to why the getter method needs a parameter at all. Anyways how do I retrieve the "tick_last" data from the capability?
  2. But how? playerIn has getCapability that takes a parameter.....
  3. Need some help. Interface Factory Provider Storage @Mod Chert_Entity The commented out code in my entity class is what I was using before, but this meant that each stack had its own NBT data, and they couldn't be stacked together after one of them was "tossed". So I did the capability stuff that I followed here but I am trying to figure out how to work the logic, because right now they do not toss.
  4. So this is what I get when I throw a spear :
  5. Okay I am able to launch in Eclipse now. I have confirmed via println() that CheckSpawns and PotentialSpawns are both being called. @SubscribeEvent public void potentialSpawns(PotentialSpawns event) { System.out.println("pS801"); event.getList().add(new SpawnListEntry(EntityType.ZOMBIE_PIGMAN, 100, 3, 5)); } @SubscribeEvent public void checkSpawn(CheckSpawn event) { System.out.println("cS801"); event.setResult(Result.ALLOW); } So yeah I don't know what the issue is.....
  6. Sorry the double bump was an accident.
  7. I love you, this worked. I've tried the clean command before, but not all 3 of these in this order. I already had updated my forge so I didn't redo that. But now I can finally debug and test quickly instead of having to use the launcher ?
  8. This I have done twice already...
  9. Oh right, I forgot about this guy.
  10. I see. What do you mean by provide my build.gradle, sorry.
  11. I am familiar with this. The genEclipseRuns does work, but it only builds the data and server runs, no client run is generated... When I try the manual approach using "GradleStart" as the main class and with the username and password as parameters it just doesn't launch.
  12. Yeah i've been searching for a solution all over, can't figure it out...
  13. Anyway to make pigs swim faster?
  14. Okay I have this now, tried to replicate what I did with the throw-able entity, it's not appearing though : My_Mod Spear_Model Spear_Factory Spear_Renderer Spear_TEISR Spear Spear_Entity
  15. Won't toss. The last portion of code that I pasted : onAttachCapabilities
  16. I see, well I already had that block of code in before you previous comment, it's not working.
  17. I can't figure out what exactly goes in the string : @SubscribeEvent public static void onAttachCapabilities(AttachCapabilitiesEvent<Entity> event) { if (event.getObject() instanceof PlayerEntity) { event.addCapability(new ResourceLocation("My_Mod", "tick_last"), new TickDataProvider()); } }
  18. Followed tutorials and threads that I found around and got this : Interface Factory Provider Storage Chert My_Mod Wondering if the Chert part is right, as they aren't chucking right now....
  19. Success! Can't wait to try this with the spear. I'm still having some quirks though : If I throw a chert from a stack and then collect more, it'll make a new stack even when there is room (> 64), that stack becomes unstackable. Occasionally, a chert won't chuck, expending one anyways.
  20. Whoops I see it now. I gave it 4 initially, then 99 but that didn't help...... oh wait it's suppose to be a smaller number doh! Working now.
  21. Okay got an issue, I have the pigs running away via the AvoidEntityGoal when I get too close, however they don't do it the way rabbits do, they occasionally stroll here and there instead of running which makes it too easy to hunt them. It might have to do with interference from their other behavior... Also in the following : AvoidEntityGoal<>(this, PlayerEntity.class, 8.0F, 2.2D, 2.2D)); What do the last two number represent? I know the first one is the distance that triggers them to run.
×
×
  • Create New...

Important Information

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