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.

Mazetar

Forge Modder
  • Joined

  • Last visited

Everything posted by Mazetar

  1. Well what does you mod add? and what is the overall theme for your mod? it sounds like it's an addon/extension. Or a bridge between ic2 and tc3? What's the deal with your mod?
  2. Have you tried debugging? If you have then please let me know your findings for what happens during those lines!
  3. It cannot find a class named "BlockHuchasaOre', because you have it named "HuchasaOre" Bleh! I thought the error was a typo in the other file, didn't see that typo in the black'n'grey wall of text. moral is: use paste sites for longer bits of code and CODE tags for small snippets so they are readable
  4. What's wrong with player.getHeldItem() ?
  5. Hello mate, first a question or rather two: are you new to java? and are you willing to learn it as well as to learn minecraft modding? then an answer: I need to see you main mod file to be sure of what the exact cause of the error is, but I got a good idea on the problem. Also when you share code files longer than 4-5 lines of code, use paste.minecraftforge.com else it becomes rather hard to read, the same goes for error logs!
  6. Great! Give him the "Thank You" button press as well
  7. Let me ask you to clarify what are you trying to do really?
  8. Welcome to the most common feeling in the life of a modder
  9. @Endershadow: Psuedo code, I'm assuming you understand, else give me a shout @OP: The code I'm showing EnderShadow might be of interest for you as well, depending on how familiar you are with java and if you already know your way around keyhandler and packets. Psuedo code: On keypress SpaceKey If player.isRiding() then if player.ridingEntity instanceof MyVehicleEntity then Increase player.ridingEntity.motion.Y And for another key, for example Shift, make motion Y be negative. You will need to know when the keypress ends, so you know when to set the motion.Y to 0 though.
  10. Then this is the place you should start before anything else mate http://courses.vswe.se/ I promise you it's worth the time as you will save your self a lot more time in the future by spending time on this now before you go further. This is both an intro to Java and to minecraft modding at the same time. Ending up with rather advance stuff. Including rendering of 3d models inside a gui and other stuff! Start there, then you will be much better off when you continue Also this blogg is an valuable resource to have at hand when you are new to minecraft's inner workings: greyminecraftcoder.blogspot.com.au/p/list-of-topics.html
  11. http://www.minecraftforum.net/topic/1949352-creating-an-item-that-stores-an-inventory/ I guess this should help ya out
  12. First you should start by clearly defining the vehicle. How will it move up slopes? can it move up 1 block incline? if not then can it jump up them like a player has to? and if it can't then can it move up stairs or special ramps to go upwards? When you are sure you have in writing defined this vehicle as sepcificly as you can, then it's time to convert it into code I'd start by adding in the model, or at least a simple model to use. Using a simple entity doing nothing I would then create an item which spawns the entity. Now you are able to spawn the entity with your model inside the world. Then I would proceed to work on the real thing, the entity itself. This way you can test things as you go, and besides the core of it all is inside the entity
  13. What are you trying to do? If you want a player obj on the server side you will need to specify at which time you need to get that player obj, then we can tell you which method to use. If it's a the time of something happening on the client side (aka. keypress for example) then you will need to send a packet from C to S which then the server can use to do things to the player.
  14. In order to create something you need to be able to define it so one can divide and conquer it's lesser components If I take a boat which moves in the Y direction as well as the X & Z, kinda like the player does while in creative mode. Then would that satisfy it as the type of vehicle you want (with different speed, texture, model etc. ofc)?
  15. I would assume you would know as you are the first ever ive seen using optonal in their mods. Why are you using that? I see the use of it now as I google some info on it though if you are unfamiliar with it, maybe you should look into it a bit more?
  16. There are no such tutorials to be found. Vehicle could mean a lot of things, what specifically do you seek to create? I'm sure you understand that the minecart and boat are entirely different in their code, and so are your planned vehicle I'm guessing? Nice you looked at them, but did you understand them?
  17. The reason he asks is because Optional is comming wit Java 8 Anyways besides that, did you look into what he said below the quote?
  18. Libschematich api could be usful to look into as well as the sh repo wherehe shows a way to use it, google should reveal it all
  19. No it was never said directlty, but it's quite apparent from the conversation so far both on PM and here in this thread.
  20. If you have seen the buildcraft way of doing this then all you need to do is to understand it and to do that you must look at the ForgeDirection class It contains all the offsets for each direction and some more stuff, look into that and it should help you out
  21. I may have found a solution, by placing a breakpoint at the line creating the packet I thought earlier I could look at every packet and find the one causing the trouble. But I quickly realized that there was insanely many packets of that type being sent. Now I have to admit I was quite thoughtless, I could have done it so much easier. Conditional breakpoints ftw. By using them to filter out any packet related to vanilla mobs I was able to find the entity responsible for the crash. I found it to be added to the a spawnlist but never registered anywhere. *sighs* What a relief! I hope this was the only rogue entity in this damn code base. Thank you for all your help GotoLink! <3
  22. Doh I'm wrong ofc, the EntityID is not relevant at all. The field being used for the ID is the type field. bleh! The type field is consistent 0, ofc.
  23. Okay just to test, I set the update velocity to false. That made no difference for the crash. The thing that makes me wonder still is the following line from the log: 2013-08-30 20:49:50 [WARNING] [Minecraft-Client] Skipping Entity with id 0 This happens as soon as I enter a world. I'd assume there's some entity not being registered properly but I can't figure out which one, as I look at the lists everything seems to be in order. A breakpoint at the two points in the minecraft code which outputs such text reveals that it's output from EntityList.Java when it's createEntityByID is called with ID 0. Resulting in null for the entity found and therefore outputting that msg. The call stack reveals that it's called by NetClientHandler.handleMobSpawn(Packet24MobSpawn) : 951. The packet contains an EntityID of 1038.
  24. Then I'm pretty sure I misunderstand the meaning of it
  25. Isn't it possible to make a tileEntity which doesn't update? by calling false on the should update method? Wouldn't that save some/"a lot" computations?

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.