KubeJS

KubeJS

69M Downloads

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

HaloSense opened this issue ยท 0 comments

commented

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