Jump to content
  • Home
  • Files
  • Docs
  • Merch
Status Updates
  • All Content

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • DavidM

DavidM

Members
 View Profile  See their activity
  • Content Count

    1116
  • Joined

    January 19
  • Last visited

    15 hours ago
  • Days Won

    8

 Content Type 

  • All Activity

Profiles

  • Status Updates
  • Status Replies

Forums

  • Topics
  • Posts

Calendar

  • Events
  • Event Comments

Everything posted by DavidM

  • Prev
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • Next
  • Page 5 of 45  
  1. DavidM

    How do i uninstall 1.14

    DavidM replied to Sleepy_Panda6's topic in Support & Bug Reports

    You are playing Minecraft 1.14 but you are trying to install WorldEdit for Minecraft 1.12. This is not going to work. Check your launcher installations and make sure you've launched Minecraft 1.12.
    • September 7
    • 5 replies
  2. DavidM

    [1.14.4] RunClient: Driver does not appear to support OpenGL

    DavidM replied to MutantWafflez's topic in Modder Support

    Does your graphic card support the required OpenGL version?
    • September 7
    • 6 replies
  3. DavidM

    Another crash problem.

    DavidM replied to Hertz4321's topic in Support & Bug Reports

    Remove it and wait for the author to update.
    • September 6
    • 2 replies
  4. DavidM

    [1.14] Handling mouse movement in inventory

    DavidM posted a topic in Modder Support

    I am trying to detect when a player clicks on an ItemStack in his inventory with another ItemStack (held by the mouse). I recall that all the inventory and GUI interactions are client-side; however, I've seen servers achieve this (clicking on ItemStack with ItemStack) with server-side plugin/mod. How would I approach this?
    • September 6
    • 3 replies
  5. DavidM

    Crashing with few mods

    DavidM replied to Lawreel's topic in Support & Bug Reports

    This is not a chat room; please stop bumping every minute. The version of your Refined Storage is not compatible with the version of your Forge. Either downgrade Refined Storage or update Forge.
    • September 6
    • 8 replies
  6. DavidM

    Java Run Error?

    DavidM replied to JoyfulAttic's topic in Support & Bug Reports

    Try deleting your configs. Why do modders insist on creating their own way of config and parsing though...
    • September 4
    • 21 replies
  7. DavidM

    Java Run Error?

    DavidM replied to JoyfulAttic's topic in Support & Bug Reports

    Please stop bumping, especially when we are waiting for you to post your log.
    • September 4
    • 21 replies
  8. DavidM

    [SOLVED] Block Texture not showing, also no error log

    DavidM replied to JamieEdwards's topic in Modder Support

    Please post your code, preferably as a GitHub repo.
    • September 3
    • 7 replies
  9. DavidM

    Simple Summon Lightning on Right Click with Sword 1.12.2

    DavidM replied to sarxworks's topic in Modder Support

    I thought OP needed RayTracing. If I recall correctly RayTracing is client only?
    • September 2
    • 8 replies
  10. DavidM

    Simple Summon Lightning on Right Click with Sword 1.12.2

    DavidM replied to sarxworks's topic in Modder Support

    Entity summoning are controlled on the server side, thus summoning lightning bolts on the client will not work. Send a packet to the server when the sword is right clicked with; write a handler for that packet that summons the lightning.
    • September 2
    • 8 replies
  11. DavidM

    [1.12.2] Wanting to know if dropped item is gone.

    DavidM replied to Lea9ue's topic in Modder Support

    ItemStack will never be null. ItemStack from an EntityItem will never be empty, as the ones that are are removed from the world.
    • September 2
    • 11 replies
  12. DavidM

    How do I convert a 3D point to screen coordinates?

    DavidM replied to nogix's topic in Modder Support

    I suppose you are trying to render the health bar at exactly where the mobs are at on the original Minecraft screen, in which case you would need to offset the local position by the camera's rotation. I don't know if there is a GLM in Java or not, but if there is not, you can use the following method. To transform a 3D pos to 2D includes the following states: 3D original (global) entity position 3D relative (to camera) entity position 3D relative (to camera) entity position after camera rotation 2D screen coords To elaborate the concept better, I will assume the center of the window is (0, 0). Left side is negative x, right side is positive x, etc. This is not the case of a JFrame though, and you will have to do some manual translation of the screen coords by adding half the screen width to x, and half the screen height to y. First, subtract every axis (x, y, z) of the entity's global position by the camera's global position (the position in the Minecraft world). This will give a relative position from the camera to the entity. Next, apply the camera's rotation to the relative position. Assuming the Z-axis is the one sticking out from the camera on the local coordinates (I am not sure if this is the case of Minecraft; change this to X if necessary), multiply z by cos(camera.yaw), and multiply x by sin(camera.yaw). This takes care of the yaw (horizontal) rotation of the camera. The same applies to the pitch (vertical) rotation of the camera; simply multiply z (again) by cos(camera.pitch) and multiply y by sin(camera.pitch). You are basically done now if you want orthogonal view. Throw away the z and use the x and y as screen coords. However, I assume that you want perspective view, so you need to make x = x / z * FOV and y = y / z * FOV, where FOV is the field of view value you need to experiment with (start with something near 2). Now just throw away the z (or the x, depending on which axis is the one sticking out the camera in Minecraft when the camera has no rotation) and use x, y as the screen coords. Remember to do the manual translation of the screen coords by adding half the screen width to x, and half the screen height to y.
    • September 2
    • 6 replies
  13. DavidM

    Forge 1.12.2 isn't downloading a Jar file

    DavidM replied to Avocado_Sauce's topic in Support & Bug Reports

    This is normal. There should not be a jar.
    • September 1
    • 2 replies
  14. DavidM

    entity teleporting

    DavidM replied to stepsword's topic in Modder Support

    It is not possible as far as I am aware of.
    • September 1
    • 4 replies
  15. DavidM

    entity teleporting

    DavidM replied to stepsword's topic in Modder Support

    The in-between phrase is the game’s attempt to interpolate the entity’s movement to create a smooth movement seen by the player.
    • September 1
    • 4 replies
  16. DavidM

    [1.12.2] Wanting to know if dropped item is gone.

    DavidM replied to Lea9ue's topic in Modder Support

    You could try using as this should be the easiest way I see.
    • September 1
    • 11 replies
  17. DavidM

    [1.14.2] Custom Shield, Custom Damage Reduction

    DavidM replied to MatsCraft1's topic in Modder Support

    An instance of LivingEntity. Note that in 1.14 there is a third parameter that takes in a Consumer<? extends LivingEntity>. If you need help on creating a consumer, you can read about lambdas and consumers in Java here.
    • August 31
    • 5 replies
  18. DavidM

    [1.12.2] Wanting to know if dropped item is gone.

    DavidM replied to Lea9ue's topic in Modder Support

    EntityJoinWorldEvent is fired when an Entity is added to the world, during which Entity#isDead cannot be true. AFAIK there is no way to do this with an event. Neither Entity#onUpdate nor ItemEntity#onUpdate fires an event every tick. The only way I see is to replace the vanilla ItemEntity with your own version and override Entity#attackEntityFrom and check whether the DamageSource is from lava. That would not work, as dropped items are created by directly instantiating an instance of the vanilla ItemEntity.
    • August 31
    • 11 replies
  19. DavidM

    Texture Bug

    DavidM replied to Chim''s topic in Support & Bug Reports

    You did not provide your log. We need the log to help you.
    • August 30
    • 14 replies
  20. DavidM

    [1.12.2] Dimension changing functions in block & command, but not from entity

    DavidM replied to Lyinginbedmon's topic in Modder Support

    Why do you need to create an entity though? How is your spell casted? Also please post your crash log.
    • August 30
    • 10 replies
  21. DavidM

    [1.12.1] Making a mod that notify player when inventory is full

    DavidM replied to Gess1t's topic in Modder Support

    This is because your invChk class has syntax errors. Looking at your code, I suppose you attempted to create a constructor and put the checking of the inventory in there; however, you created a method instead of a constructor, and you never called that method. To learn about constructors in Java, read https://www.w3schools.com/java/java_constructors.asp.
    • August 29
    • 56 replies
  22. DavidM

    CodeChickenLib 1.12.2 keeps crashing

    DavidM replied to Invisimous's topic in Support & Bug Reports

    Try updating CodeChicken Lib (or use the version its dependents specify).
    • August 29
    • 10 replies
  23. DavidM

    NetherEx requires lex?

    DavidM replied to Bored_123's topic in Support & Bug Reports

    NetherEx only requires LibraryEx. No other dependencies should be needed. It is probably a dependency from another mod. Please read the installation guide of your mods to learn about their dependencies.
    • August 29
    • 25 replies
  24. DavidM

    [1.12.1] Making a mod that notify player when inventory is full

    DavidM replied to Gess1t's topic in Modder Support

    Not really. There is Java, and Forge (and Minecraft itself) is built upon it. Java is the same inside and outside Forge. You might have the processing power to do so, but it is very unnecessary. All you have to do is to mark that method static instead of initializing the object, which will accomplish the exact same thing, but both faster and less memory-consuming. Besides, most users probably don't want their game to use processing power to run pointless operations. Anyways, this is what you have to do: Create a event subscriber for ClientTickEvent (which you already have) Create a new function to iterate through the player's inventory (which you kind of have) or just do it inside the event subscriber Create a way of informing the user of the full inventory (which you already have)
    • August 29
    • 56 replies
  25. DavidM

    [1.12.1] Making a mod that notify player when inventory is full

    DavidM replied to Gess1t's topic in Modder Support

    Umm not really. I would say the second one is easier since you are making a client side mod that only checks the client player. This should be irrelevant to your current problem though, as your method is not called from the event subscriber. Do you know Java? If not, please learn Java before making a mod.
    • August 29
    • 56 replies
  • Prev
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • Next
  • Page 5 of 45  
  • All Activity
  • Home
  • DavidM
  • Theme
  • Contact Us
  • Discord

Copyright © 2019 ForgeDevelopment LLC · Ads by Curse Powered by Invision Community