Skip to content

Gravity mod by Mysteryem, originally for The Modding Trials. Not being developed any more.

License

Unknown and 2 other licenses found

Licenses found

Unknown
LICENSE
GPL-3.0
COPYING
LGPL-3.0
COPYING.LESSER
Notifications You must be signed in to change notification settings

Mysteryem/Up_And_Down_And_All_Around

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Up And Down And All Around - ↑ & ↓ & ↻

This mod is no longer being developed and there is no support being offered. Its newest version is for 1.12.2 only and is known to be incompatible with VanillaFix, Surge, ChiseledMe and LagGoggles.

(originally TMT_Gravity_Mod)

A gravity mod originally made for The Modding Trials.

Current preview video: https://www.youtube.com/watch?v=UVDUmhyV7AQ

Change the direction of your gravity from downwards to upwards, north, east, south and west.

Back during the competition, you could equip a special pair of boots that would effectively reverse the direction of your gravity. There were quite a lot of tricks involved that when used all together, made it seem like gravity had been reversed. This meant that quite a few features of vanilla minecraft didn't work properly, such as walking up stairs or double tapping the forward key to sprint.

The newer versions of this mod aim to create a more robust system that both fixes the flaws of the original TMT mod, while at the same time extending the directions of gravity available to include north, east, south and west.

##Notes to other mod developers:

Motion

A player's motion is considered relative to their current gravity direction. A Y motion of 1 while the player has Upwards gravity would result in the player moving downwards from the perspective of the world.

Position

A player's position is for the most part unchanged, the only thing of note is that for N/E/S/W gravity directions is that the player's position is in the same place as their eye position. This is so that vanilla code that uses player.posY + player.getEyeHeight() doesn't need to be fixed using ASM. (in the future player.getEntityBoundingBox().minY + player.getEyeHeight() may also work, though currently does not)

Hitboxes

This mod makes heavy use of its GravityAxisAlignedBB class in order to avoid massive changes to vanilla classes. If your mod requires you to use your own class that extends AxisAlignedBB for player hitboxes, then it is likely that your mod will never be compatible with this mod.

ASM modifications

This mod uses ASM to modify the following classes (if your mod also modifies these classes then there will be a chance that your mod is not compatible with this mod, though it may be possible to fix):

  • EntityPlayerMP
  • Superclass -> EntityPlayerWithGravity
  • AbstractClientPlayer
  • Superclass -> EntityPlayerWithGravity
  • EntityPlayerSP
  • onUpdateWalkingPlayer
  • onLivingUpdate
  • isHeadspaceFree
  • updateAutoJump
  • moveEntity
  • NetHandlerPlayserver
  • processPlayer
  • processPlayerDigging
  • NetHandlerPlayClient
  • handlePlayerPosLook
  • Entity
  • moveEntity
  • moveRelative
  • EntityLivingBase
  • moveEntityWithHeading
  • updateDistance
  • onUpdate
  • jump
  • SoundManager
  • setListener
  • RenderLivingBase
  • doRender
  • EntityRenderer
  • getMouseOver

About

Gravity mod by Mysteryem, originally for The Modding Trials. Not being developed any more.

Resources

License

Unknown and 2 other licenses found

Licenses found

Unknown
LICENSE
GPL-3.0
COPYING
LGPL-3.0
COPYING.LESSER

Stars

Watchers

Forks

Packages

No packages published

Languages