KubeJS

KubeJS

83M Downloads

[EASY FIX] Doors are getting the wrong tag

Disketaa opened this issue ยท 2 comments

commented

Minecraft Version

1.21.1

KubeJS Version

2101.7.1-build.181

Rhino Version

2101.2.7-build.74

Architectury Version

13.0.8

Forge/Fabric Version

Neoforge 21.1.147

Describe your issue

Image

I created custom door, but for some reason KubeJS auto-inserted it in trapdoor tag, not door one

StartupEvents.registry('block', event => {
  event.create('tin_door', 'door')
    .soundType('iron')
    .hardness(3.0)
    .resistance(3.0)
    .requiresTool(true)
    .mapColor('terracotta_white')
})

Crash report/logs

No response

commented

The issue persists here where Kube get's the trap doors tag:

public static final ResourceLocation[] TRAPDOOR_TAGS = {
BlockTags.TRAPDOORS.location(),
};

commented

There is BlockTags.DOORS and BlockTags.WOODEN_DOORS, so the script would have doors tag by default, and wooden doors if specified with .wooden() or any better method name