Jump to content
  • Home
  • Files
  • Docs
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • Custom block enteraction with Entitys and EntityPlayer
Currently Supported: 1.16.X (Latest) and 1.15.X (LTS)
Sign in to follow this  
Followers 1
rainbain

Custom block enteraction with Entitys and EntityPlayer

By rainbain, October 22, 2020 in Modder Support

  • Reply to this topic
  • Start new topic

Recommended Posts

rainbain    0

rainbain

rainbain    0

  • Tree Puncher
  • rainbain
  • Members
  • 0
  • 2 posts
Posted October 22, 2020

Hello, I had a idea for a mod but it requires the physics between a entity and a block to be changed, and I have a decent amount of forge experience but could not think of a scalable method without using asm. I really want to stay as far away as possible from asm, so I wanted to know if there is any good ways to do it. The hopeful end result it to be able to do a transformation across the entire terrain and make it so that entitys do not glitch threw the ground when I do it. I have a working version that works graphically but not for actual game physics. This is my first time posting of these forms and I do not post on forms often so sorry for any bad formatting or categorization of the post.

  • Quote

Share this post


Link to post
Share on other sites

urbanxx001    8

urbanxx001

urbanxx001    8

  • Creeper Killer
  • urbanxx001
  • Members
  • 8
  • 139 posts
Posted October 22, 2020 (edited)

Forgive me, Idk much about changing physics, but given you've been waiting 3 hours, you deserve a reply. Hopefully someone more experienced will give advice.

Your formatting is fine, no worries. If you're willing to post your code, we can help you debug it. 

When you say it's only working graphically, do you mean the entity/block rendering obeys your new physics, but not their bounding boxes/hit boxes? Also is this affecting vanilla blocks/entities, or only ones created in your mod?

Edited October 22, 2020 by urbanxx001
  • Like 1
  • Quote

Share this post


Link to post
Share on other sites

rainbain    0

rainbain

rainbain    0

  • Tree Puncher
  • rainbain
  • Members
  • 0
  • 2 posts
Posted October 23, 2020 (edited)

Yes, I can see the change graphically but there bounding box does not follow it. In the vertex shade I have some super efficient code that warps the shape of the terrain but thats only on the gpu. I have no code currently doing the physics aspect as I want to have a method that does not use asm, so I ask for help for ways to do it without asm as I am out of ideas. I am going to implement the asm method but I really want a better method of doing it.

Edited October 23, 2020 by rainbain
  • Quote

Share this post


Link to post
Share on other sites

urbanxx001    8

urbanxx001

urbanxx001    8

  • Creeper Killer
  • urbanxx001
  • Members
  • 8
  • 139 posts
Posted October 23, 2020 (edited)

Ahh it's a Shader. I'm familiar with the terrain-warping ones, made one a long time ago for bedrock. The closest thing I can think of that physically alters blocks is the No Cubes mod, but that's a static change to the terrain, not a constantly-updating one that occurs with shaders when it's a certain radius from the player. Perhaps you can adapt that type of code to work in an event that constantly detects the radius, to mirror the hitboxes with your rendering. Although that would most likely be very laggy. Again hopefully someone else can give input, but asm might be your best bet. 

Edited October 23, 2020 by urbanxx001
  • Quote

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

    • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 1
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • uraketu
      AoA mod crashing game

      By uraketu · Posted just now

      what should i do?  
    • DancZer
      Bug: Nether Quarz Ore does not have toolType

      By DancZer · Posted 2 minutes ago

      What would be the ideal way to check if I can break a a block by a pickaxe or a shovel?    I rewrote the whole logic and now I use the Item.canHarvestBlock, but it doesn't work reliable neither. For dirt the shovel returns false. 😔   Here is my logic: Github code   Do you have any suggestion?    Thank you in advance and I will let you know when the PR is ready. 
    • diesieben07
      AoA mod crashing game

      By diesieben07 · Posted 10 minutes ago

      Your game settings file is corrupted.
    • diesieben07
      How do I resolve server errors?

      By diesieben07 · Posted 11 minutes ago

      1.12 is no longer supported on this forum. Please update to a modern version of Minecraft to receive support.
    • uraketu
      AoA mod crashing game

      By uraketu · Posted 30 minutes ago

      So i added AoA (advent of ascensio n) to my modpack for 1.15.2 and it keeps crashing it i tried changing the version of the mod but that didnt work i tried deleting the "config" folder and dosent work please help me latest.log
  • Topics

    • uraketu
      2
      AoA mod crashing game

      By uraketu
      Started 31 minutes ago

    • DancZer
      2
      Bug: Nether Quarz Ore does not have toolType

      By DancZer
      Started December 29, 2020

    • DanielDJ1613
      1
      How do I resolve server errors?

      By DanielDJ1613
      Started 36 minutes ago

    • Solarient
      1
      GUIs

      By Solarient
      Started 4 hours ago

    • Bluperman949
      0
      Issue with using JEI API/Mod in my workspace

      By Bluperman949
      Started 4 hours ago

  • Who's Online (See full list)

    • DancZer
    • Choonster
    • diesieben07
    • <Gl33p_0r4nge>
    • Zeide
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • Custom block enteraction with Entitys and EntityPlayer
  • Theme

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