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

Started by t_anon on

Topic category: Help with modding (Java Edition)

Last seen on 15:06, 29. May 2024
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