Trying to create boots that can walk on powdered snow

Started by Nellie on

Topic category: Help with Minecraft modding (Java Edition)

Active 1 year ago
Joined Feb 2024
Points:
117

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 0
Trying to create boots that can walk on powdered snow

Im trying to create a new type of boots that would act like leather boots when walking on powdered snow, right now i can detect when the player steps on powdered snow but i dont have a way to prevent sinking... any help is appreciated

Active 1 week ago
Joined May 2022
Points:
1270

User statistics:

  • Modifications: 15
  • Forum topics: 25
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1141
To make the armor resist…
Mon, 02/12/2024 - 12:53

To make the armor resist freezing like leather armor, you can add it to the 'freeze_immune_wearables' tag.

The powder snow walking is a little bit trickier. Once you're finished with the armor you need to lock the mod element, and open the Java file. In the top section, where it lists all the imports, add this between any of them:

import net.minecraft.world.entity.LivingEntity;

Then Find the part about the boots, and add this after the first @override. (Make sure it compiles correctly!)

@Override
  		public boolean canWalkOnPowderedSnow(ItemStack stack, LivingEntity wearer) {
  			return true;
  		}
Active 2 months ago
Joined Jul 2022
Points:
493

User statistics:

  • Modifications: 1
  • Forum topics: 11
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 61
Would that work for potion…
Sat, 11/09/2024 - 05:19

Would that work for potion effects? I'm adding a potion effect that makes the player immune to freezing and I just managed to do that but I still need to make it so that the player can walk on Powder Snow when with the Effect.