Skip to content

Buckets do not work on custom waterloggable blocks #462

@ChiefArug

Description

@ChiefArug

Minecraft Version

1.18.2

KubeJS Version

Built from dev 6e63cfa

Rhino Version

1802.1.14-build.192

Architectury Version

4.7.78

Forge/Fabric Version

Forge. Smthn 1.18.2. IntelliJ is refusing to say

Describe your issue

You cannot use buckets on custom blocks set to be waterlogged.
This is because the object returned by the builder doesnt implement SimpleWaterloggedBlock.

This would be solved by either making waterlogging a custom type or implementing SimpleWaterloggedBlock in BasicBlockJS and just overriding all the methods to do nothing when not set to be waterlogged.

Basic recreation script (startup).
The different box size is so that minecraft allows water to flow from it.

onEvent('block.registry', event => {
	event.create('watery').defaultCutout().box(0,0,0,16,5,16).waterlogged()
})

Crash report/logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions