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.
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:
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.
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)
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.
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