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
  • Next
  • Page 4 of 45  
  1. DavidM

    [1.14.4] Title via code

    DavidM posted a topic in Modder Support

    In Minecraft one can use /title <targets> title <titleText> to create a title text to be displayed on the screen for the target. I would like to create the same effect for a client (in a client-side mod). How would I achieve this?
    • September 26
    • 1 reply
  2. DavidM

    [1.13.2] Trigger when fishing rod is hooked

    DavidM replied to DavidM's topic in Modder Support

    My current idea is to subscribe to ClientTickEvent and check whether PlayerEntity#fishingBobber is not null. diesieben07 beats me . Thanks. I will keep that in mind.
    • September 26
    • 2 replies
  3. DavidM

    [1.13.2] Trigger when fishing rod is hooked

    DavidM posted a topic in Modder Support

    I am creating a client-side mod that warns the player when a fish is hooked during fishing. This should be triggered when a fish "bites" the hook. What is the best way to achieve this? Is there an event for such case?
    • September 26
    • 2 replies
  4. DavidM

    Is it possible to make all clients use JournyMap or inventory tweaks when they join in the server?

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

    JourneyMap and InventoryTweaks are client only mods. Putting them on a server does nothing.
    • September 23
    • 2 replies
  5. DavidM

    can't use minecraft for days now!

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

    1. Stop bumping every hour. 2. Please read the EAQ and post your debug.log.
    • September 21
    • 3 replies
  6. DavidM

    You should try our sister game

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

    • September 21
  7. DavidM

    [1.14.4]how to get dropped items

    DavidM replied to GosDev's topic in Modder Support

    Please post your code. This should be done with a loot table in 1.14.4.
    • September 21
    • 3 replies
  8. DavidM

    [1.14.4](Solved) Get position offset by axis

    DavidM replied to Brbcode's topic in Modder Support

    You can check which one of the 3 axis of the 2 blockposes are not equal.
    • September 21
    • 5 replies
  9. DavidM

    EventBus Weather and Minecart Events

    DavidM replied to Tim Graupmann's topic in Modder Support

    Player in minecart is handled as PlayerEntity riding MinecartEntity. Therefore, you can just check for player.getRidingEntity() instanceof MinecartEntity .
    • September 17
    • 9 replies
  10. DavidM

    How to spawn lightning with forge 1.14

    DavidM replied to Tryhard's topic in Modder Support

    Lightning is summoned with World#addWeatherEffect. Pass in an instance of LightningBoltEntity.
    • September 17
    • 13 replies
  11. DavidM

    [1.12.2] Trying to render a texture as an overlay to a block in world fails

    DavidM replied to nekosune's topic in Modder Support

    I think that OP stitched the texture during TextureStitchEvent, and then use TextureAtlasSprite#getInterpolatedU and V to obtain the UV of the stitched sprite to be used in the buffer builder. The texture binded is still the original texture map, but it contains the stitched texture.
    • September 17
    • 7 replies
  12. DavidM

    [1.12.2] Trying to render a texture as an overlay to a block in world fails

    DavidM replied to nekosune's topic in Modder Support

    Have you bind your texture? I am dumb.
    • September 16
    • 7 replies
      • 1
      • Like
  13. DavidM

    Storing information to be called upon later (1.12.2)

    DavidM replied to Sour_Tooth's topic in Modder Support

    By calculating the color from the xyz coordinates I mean generate the color value from the coordinates. That way, the color at a specific position will always be the same (like how Minecraft handles its own grass coloring). An example would be: @Override @SideOnly(Side.Client) public int getGrassColorAtPos(BlockPos pos) { return min + (pos.getX() * pos.getY() * pos.getZ() % (max - min)); }
    • September 16
    • 6 replies
  14. DavidM

    [1.12.2] Trying to render a texture as an overlay to a block in world fails

    DavidM replied to nekosune's topic in Modder Support

    Not sure if this is the cause, but you enabled texture 2D, then immediately disabled it here.
    • September 16
    • 7 replies
      • 1
      • Like
  15. DavidM

    Storing information to be called upon later (1.12.2)

    DavidM replied to Sour_Tooth's topic in Modder Support

    Do you wish to make the grass color at the same position in each client the same? i.e. There are two players on a server with your mod. Should the grass color at (0, 0) be the same to both of them? If so, then you could override Biome#getGrassColorAtPos and calculate the color from the xyz coordinates. This would allow the grass color in your world to stay the same when Minecraft is relaunched, and allow the color to be the same on different client.
    • September 16
    • 6 replies
  16. DavidM

    [1.12.2] Overlay Crashes Server

    DavidM replied to JonIsPatented's topic in Modder Support

    No. The @SideOnly is used if the associated object should not exist on sides not specified in the parameters. This means classes annotated with @SideOnly(Side.Client) will not exist on the server side. It does nothing in loading something only on one side. Annotating an event subscriber with @SideOnly might work, but only due to the absence of the annotated object on the other side (which is considered hacky). One should use a side-specific event bus subscriber instead. GasMaskBar is client only. Assuming your event handler is triggered on both sides, this will cause a crash on the server. Either register your GUI in a client proxy or create a client-side event subscriber and register it there.
    • September 16
    • 15 replies
      • 1
      • Thanks
  17. DavidM

    1.14.4 GUI without container or tileentity

    DavidM replied to Daniel Rollins's topic in Modder Support

    That is the registering of the GUI. OP is having problem with opening the GUI. Since the OP is calling the code from Item#onItemRightClick, I would suggest to handle the right click on the server side, then sends a packet to the client to open the GUI. This allows the server to control if the GUI should be opened. Actually, since the OP is trying to create a book-like GUI about which the server does not care, opening it directly on the client-side should be fine.
    • September 16
    • 3 replies
  18. DavidM

    Storing information to be called upon later (1.12.2)

    DavidM replied to Sour_Tooth's topic in Modder Support

    1. Are you sure you've posted the correct code? That will not compile. 2. Check out WorldSavedData. The documentation of which is at https://mcforge.readthedocs.io/en/latest/datastorage/worldsaveddata/.
    • September 16
    • 6 replies
  19. DavidM

    Create mod that exposes subset of Forge through an IPC/RPC API?

    DavidM replied to LuciferK9's topic in General Discussion

    Personally, this is probably not necessary. This would means that the developer need to write a hook in all the said languages to expose the Forge API. This of course includes the circumvention of non dynamically loadable languages like C++. Unless you meant to parse the said languages into a intermediate form (which probably require more effort, as a compiler is needed), which is then loaded by the "xmod", but this would make the user unable to access Minecraft and Forge with reflection and ASM. You can compile and run Java code from the command line. However, writing Java (and most other static languages) without an IDE would be a pain and is not recommended.
    • September 11
    • 6 replies
  20. DavidM

    Broken worlds

    DavidM replied to FantasyGalaxy's topic in Off-topic

    Unlikely. Deleting a save in game will also remove the corresponding world save folder.
    • September 11
    • 2 replies
  21. DavidM

    1.12.2 modding assistance

    DavidM replied to set9753's topic in Modder Support

    SwordItem has a lot more sword-specific functions than an Item. Only extends sword when you need to actually use it to attack another entity like a vanilla sword. In your case extending Item should be sufficient. @SerpentDagger Please note that posting copy-pastable code for others is discouraged, as others will not learn and might blindly copy the code.
    • September 11
    • 22 replies
  22. DavidM

    [Semi-Solved] [1.13.2] Getting items stored in GuiContainer

    DavidM replied to Wealthyturtle's topic in Modder Support

    Subscribe to KeyboardKeyEvent, which is only triggered when keys are pressed when a GUI is opened.
    • September 10
    • 10 replies
  23. DavidM

    Strange New NBT Ticking Entity Error With Forge 1.14.4 28.0.95

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

    Other mods need to change the method name.
    • September 9
    • 9 replies
  24. DavidM

    Forge server crashes on startup

    DavidM replied to colenobi's topic in Modder Support

    https://github.com/colegomax/hyperionmod/blob/539fb750e930df486a61ace299ea343022ec9338/java/com/cole/hyperion/util/handlers/RegistryHandler.java#L41 You are trying to access client tile entity renderer registry from common event subscriber here. Either move the client code into a client proxy or create another client event subscriber.
    • September 9
    • 17 replies
  25. DavidM

    I have 1.12.2 downloaded but when I get in the game it's a different version

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

    That is the correct Forge version. Forge 14.23.5.2838 is for Minecraft 1.12.2. The launcher is the legacy vanilla launcher (OP is trying to launch a Modpack from Twitch).
    • September 7
    • 3 replies
  • Prev
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • Next
  • Page 4 of 45  
  • All Activity
  • Home
  • DavidM
  • Theme
  • Contact Us
  • Discord

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