Jump to content
  • Home
  • Files
  • Docs
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
  • Toma™

Toma™

Members
 View Profile  See their activity
  • Content Count

    78
  • Joined

    June 8, 2018
  • Last visited

    January 1
  • Days Won

    1

Toma™ last won the day on November 13 2018

Toma™ had the most liked content!

Community Reputation

8 Neutral

About Toma™

  • Rank
    Stone Miner

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Toma™

    [1.14.4] Blur effect on screen

    Toma™ replied to Toma™'s topic in Modder Support

    wait neverming, turns out the fps drop issue is caused by shader loading every render tick because I messed up some code...
    • August 9, 2020
    • 1 reply
  2. Toma™ started following How to make block facing direction that i'm facing 1.12.2, [1.14.4] Blur effect on screen, [1.12.2] Render player's view as zoomed in image on screen and and 7 others August 9, 2020
  3. Toma™

    [1.14.4] Blur effect on screen

    Toma™ posted a topic in Modder Support

    Hello guys, what would be the best way to apply blur effect on player's screen? So far I have tried loading the vanilla blur shader in RenderTickEvent, but the fps went down like crazy, so I'm looking for better alternatives. Am I even supposed to load shaders in RenderTick event?
    • August 9, 2020
    • 1 reply
  4. Toma™

    [1.12.2] Render player's view as zoomed in image on screen

    Toma™ replied to Toma™'s topic in Modder Support

    Looks like framebuffer texture is not the way to go. I have found method in EntityRenderer called renderWorld. Looks like that could be what I'm looking for, but from quick observation I can see it sets the OpenGL viewport to minecraft display width and height, so I need to find a way, how to compress it into smaller rectangle. Anyone knows?
    • December 17, 2019
    • 1 reply
  5. Toma™

    [1.12.2] Render player's view as zoomed in image on screen

    Toma™ posted a topic in Modder Support

    Hello everyone, I'm trying to render player's view (basically everything on screen) into screen overlay (using RenderGameOverlayEvent). But I cannot get my head around it. I have tried using FrameBuffer texture, but it didn't work out really well. As you can see here. Does anyone have any ideas how I would be able to achieve that? Current code, don't think it's going to actually help @SubscribeEvent public static void renderOverlay(RenderGameOverlayEvent.Pre event) { if (event.getType() == RenderGameOverlayEvent.ElementType.ALL) { Minecraft mc = Minecraft.getMinecraft(); Tessellator tessellator = Tessellator.getInstance(); GlStateManager.bindTexture(mc.getFramebuffer().framebufferTexture); BufferBuilder builder = tessellator.getBuffer(); builder.begin(7, DefaultVertexFormats.POSITION_TEX); builder.pos(x, y + h, 0).tex(0, 0).endVertex(); builder.pos(x + w, y + h, 0).tex(1, 0).endVertex(); builder.pos(x + w, y, 0).tex(1, 1).endVertex(); builder.pos(x, y, 0).tex(0, 1).endVertex(); tessellator.draw(); } } edit: I know I have no zoom in code here, for now I'm mostly interested in getting it to work normally
    • December 16, 2019
    • 1 reply
  6. Toma™

    [SOLVED] [1.12.2] Change player hitbox?

    Toma™ posted a topic in Modder Support

    Hi there, I'm trying to change player hitbox. I just don't know where should I do it. I have tried to modify the bounding box inside the LivingUpdateEvent, however that works only until the original player hitbox collides with anything (and I have changed the hitbox on both sides). I see that there's method in EntityPlayer called updateSize which always resets the hitbox to the default one. Any ideas? EDIT: SOLVED Managed to solve it by subscribing to PlayerTickEvent and changing it there on both tick phases using the Entity#setBoundingBox method
    • November 10, 2019
  7. Toma™

    [SOLVED] [1.12.2] Rendering Glitches

    Toma™ replied to SerpentDagger's topic in Modder Support

    There's TileEntitySpecialRenderer#isGlobalRenderer method. Minecraft uses that for rendering beacons, maybe it could help you with your issue with the rendering outside frustrum
    • November 1, 2019
    • 5 replies
      • 1
      • Thanks
  8. Toma™

    [1.12.2] Mod Config Annotations Help

    Toma™ replied to captainmk's topic in Modder Support

    Also to answer your next question - Depends on the side where code is executed, if it's server side it's going to take data from config stored on server. However someone has to confirm that, because I'm not sure and that's how I believe it works
    • October 19, 2019
    • 3 replies
  9. Toma™

    [1.12.2] Mod Config Annotations Help

    Toma™ replied to captainmk's topic in Modder Support

    Make sure to actually register the event handler. Either you can annotate the class with @EventBusSubscriber and let it register itself automatically (but your event method has to be declared as static) or register to to MinecraftForge.EVENT_BUS
    • October 19, 2019
    • 3 replies
      • 1
      • Thanks
  10. Toma™

    drawing player screen overlay 1.12.2

    Toma™ replied to poopoodice's topic in Modder Support

    If you want to use only overlay, and not actual GUI then you can use the RenderGameOverlayEvent, either Pre or Post. And be careful about it, because it fires for multiple elements. And for the toggling, what about toggling one boolean? While loop is pretty bad idea
    • September 29, 2019
    • 21 replies
  11. Toma™

    [SOLVED][1.12.2] Issues with rendering color shape in world

    Toma™ replied to Toma™'s topic in Modder Support

    Nevermind, I just forgot to to call disableTexture2D function. That solved it.
    • September 14, 2019
    • 1 reply
  12. Toma™

    [SOLVED][1.12.2] Issues with rendering color shape in world

    Toma™ posted a topic in Modder Support

    I'm trying to render shape in world similar to mc's world border, but I'm getting some weird issues with colors. When I rotate in specific angle, the color turns black and otherwise it's just plain blue. I cannot figure this out at all, and I have no idea what I'm doing wrong. Anyway, I'd be very happy if someone offered help. So there's the render code: And some images for reference:
    • September 13, 2019
    • 1 reply
  13. Toma™

    [1.12.2] Canceling Player Knockback?

    Toma™ replied to Differentiation's topic in Modder Support

    There's also LivingKnockbackEvent
    • August 14, 2019
    • 2 replies
      • 1
      • Like
  14. Toma™

    [1.12] Creating and defining own world type

    Toma™ replied to Armadelix's topic in Modder Support

    Create new class which extends WorldType and call it's constructor during one event (preInitialization/initialization/..) - That will register it. Then you can override some methods like getChunkGenerator if you want to change the world gen
    • August 12, 2019
    • 1 reply
      • 2
      • Thanks
  15. Toma™

    How to make block facing direction that i'm facing 1.12.2

    Toma™ replied to Anonomys's topic in Modder Support

    I sent you small guide about what to do. Follow that. No one is going to code everything for you and for free
    • August 8, 2019
    • 8 replies
  16. Toma™

    How to make block facing direction that i'm facing 1.12.2

    Toma™ replied to Anonomys's topic in Modder Support

    You need to create new Property for your block. In your case it's going to be property direction. Override createBlockstate, getMetaFromState and getStateFromMeta functions. Override function which will set the block property to placer facing - getStateForPlacement. Create blockstate json file and you're done
    • August 7, 2019
    • 8 replies
  • All Activity
  • Home
  • Toma™
  • Theme

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