Comments (2)
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.
oh Thanks. I' think use varLight prevent this from happening ):
from varlightold.
Related Issues (20)
- Breaking light sources with silk touch destroys vanilla NBT data
- Feature Request: More Permissions
- Java 12+ (Reflection) HOT 2
- Feature request: View permission HOT 2
- issue with newest paper? HOT 6
- [BUG] Glass HOT 1
- Plugin stops undiscovered end cities from generating [BUG] HOT 3
- [Feature Request] Adding an command/file to find location for light HOT 1
- [Feature Request] Reapplying all light sources HOT 2
- Varlight not Updating Light Sources[BUG] HOT 1
- [BUG] Plugin error on startup (Yatopia) HOT 2
- [Improvement] Optimize memory usage VarLight
- [Feature Request] You must be a player to use this command
- [BUG] Redstone clocks lag server heavily with varlight loaded
- Error occurred while enabling VarLight v1.12.8
- API functionality [Feature Request]
- Purpur compatibility HOT 5
- [BUG] Purpur 1.16.5
- [BUG] illegal reflective access operation
- [Feature Request] The feedback command that everyone can see where you updated the light
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from varlightold.