KubeJS-Mods / KubeJS

https://kubejs.com
GNU Lesser General Public License v3.0
313 stars 91 forks source link

steppedOn event on block registries cannot handle blocks that are not full blocks #875

Open HaloSense opened 3 months ago

HaloSense commented 3 months ago

Minecraft Version

1.20.1

KubeJS Version

2001.6.5-build.7

Rhino Version

2001.2.2-build.18

Architectury Version

9.2.14

Forge/Fabric Version

47.2.32

Describe your issue

I am trying to register a block that is not a full block (i.e. doesn't have the hitbox of a full block, such as vanilla carpet) and design some steppedOn() effect for it. But I find out that steppedOn() event doesn't look for entities stepping on this block itself (given the block is not full, the coordinates of the said block is the same as the entity). Rather, it looks for entities stepping on the block 1 block above it (i.e. the entity's y coordinate is higher than the block by 1). Is it possible to add an option for steppedOn() event to have different trigger logics for both full blocks and non-full blocks?

Crash report/logs

No response