Topic category: Help with modding (Java Edition)
So I am attempting to make a block that the player can only walk on while they have boots with a certain enchantment. Otherwise the player should slowly sink into the block or be able to "swim/climb" out of the block with the 'ladder' mechanic.
I'm currently trying to create this feature using a procedure that sets the players Y motion vector to 0 or some miniscule number when the player is colliding with or walking on the block. but this doesnt seem to work. Can anyone suggest an alternative method of accomplishing this? I am a pretty experienced programmer so technical details arent beyond me either.