Jump to content

sham1

Forge Modder
  • Posts

    80
  • Joined

  • Last visited

Everything posted by sham1

  1. All right, here are some of the requirements: [*]The item you intent to become your book [*]A IGuiHandler [*]The book's gui [*]Some content to test the gui (I suggest lorem ipsum) Those are the things you need. Can you figure out from these how to do it or do you want some more help.
  2. Begging for help does not give a good view of you, considering that you could have looked the answer yourself from Google. But whatever. Care to show us your container class?
  3. Scala's AnyRef is a type alias for java.lang.Object. So to define your recipe, you go: Array[AnyRef](/* your stuff comes here.*/) Also @hsgill97, choosing scala is mostly about personal preference, as scala has some really convenient stuff about it. Also you can mix java and scala code so that will not be a problem.
  4. API is just an exposed methods and interfaces. Can you specify what you want to do with your API.
  5. Those are generated by Eclipse when bringing in methods from an interface/super/etc. They're considered comments by java's code. I think he knows what a comment is... I guess his point is that you might want to implement them.
  6. Which makes no sense whatsoever, but yes, you can also do this.
  7. PlayerUseItemEvent, you get an player instance, and from there you can check if the player is holding a water bucket or a lava bucket, and if true, do whatever.
  8. This should be a good starting point.
  9. Why are you trying to change this stuff on client side?
  10. Show us what you've tried.
  11. Maybe you should treat your peers in this community with respect when they are trying to help you. But no, you instead throw a hiss fit because we won't solve your problem for you. We want to help but if you start to act like this, the only thing I can say is get out.
  12. Do you have any code to show? It makes this process of helping a lot of easier.
  13. What do you mean by returning proper values? I will have different x y and z values. Hundreds actually. Proper values as-in: hashCode returns the same int if BlockPos's x, y and z are the same and equals returns true if the x, y and z are all equal. So basically, he wants you to create a hash-able wrapper around your BlockPos that you can then store on that hash map of yours.
  14. I'm on mobile ATM so I can't say much, but take a look at forge's @Optional-annotation.
  15. What? I think he means to ask "how to execute something when Entity has certain HP". Again, onUpdate() is your friend.
  16. player.isSneaking?
  17. Have you tried to save player's UUID instead? Because when you have the UUID you can just look up the player whose UUID it is.
  18. Maybe if you showed us the code, we could actually help you...
  19. Wait I derp'd. I thought this was 1.8 mod *facepalm* You should be able to with some methods change how the item is rendered. I would not know what to tell you as I've not done this kind of thing pre-1.8.
  20. Ok, now that we can seethe problems, show us the item render code if you are pre-1.8 or item JSON for 1.8.
  21. With that attitude you aren't. Press on and if you are determened enough you have something amazing to release into the worlds. Anyway, to give your sword different sizes you need to mess with the values of the scale attribiute in your item model JSON. Mess around and try diffrent things and if you run into trouble just ask away. We won't bite.
  22. this is my code duh! *snip* ...where did you declare the 'D' charecter in the last one.
  23. Don't forget to hit that "Thank you"-button Oh and also change the thread title to have tag [sOLVED]
×
×
  • Create New...

Important Information

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