how to check if a block is sapling, grass or other replaceable block

Started by t_anon on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how to check if a block is sapling, grass or other replaceable block

i want to make the player jump whenever facing a block horizontally but do not want it to trigger from things like "grass", "poppy" or "tall grass"

i tried checking for "replaceable_plants" block tag but that for some reason did not work at all

no i cant exclude them all manually that would take ages and be the longest horizontal chain of blocks ever seen

no i cant check for solid blocks as that will also affect blocks like leaves which of course i want to jump over

no the tutorial does not answer my problem

 

Joined Mar 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
hi minecraft has tags like …
Tue, 10/29/2024 - 12:22

hi minecraft has tags like "small_flower" or "replaceable" with a "not" you could prevent interaction with unwanted blocks (and functional with a range of mods) here are the tags you may need:

small_flower
tall_flower
replaceable
signs

remember to look at the mc wiki for the Tag category there is often something to help in these cases