Git Product home page Git Product logo

Comments (2)

flori-schwa avatar flori-schwa commented on August 21, 2024

The wiki says Snow blocks do not melt at high light levels but the source code says otherwise:

net.minecraft.server.v1_15_R1.BlockSnow#tick Method:

    public void tick(IBlockData iblockdata, WorldServer worldserver, BlockPosition blockposition, Random random) {
        if (worldserver.getBrightness(EnumSkyBlock.BLOCK, blockposition) > 11) {
            if (CraftEventFactory.callBlockFadeEvent(worldserver, blockposition, Blocks.AIR.getBlockData()).isCancelled()) {
                return;
            }

            c(iblockdata, worldserver, blockposition);
            worldserver.a(blockposition, false);
        }

    }

(I used the 1.15 code because it is more readable than the 1.12 code, but it still does the same in 1.12)

This code basically turns the snow block into air if it emits a light level stronger than 11. Normally Snow Blocks cannot emit light, so this code normally never runs. But using VarLight, Snow blocks can be turned into Light sources, if they emit a light level more than 11 they will break. This is not a VarLight Bug, but a Minecraft bug.

If you want, I can prevent this from happening, since the BlockFadeEvent is cancellable.

from varlightold.

Binket avatar Binket commented on August 21, 2024

oh Thanks. I' think use varLight prevent this from happening ):

from varlightold.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.