# [1.7.10]Light value?

## Recommended Posts

I know there is a setLightValue stuff in the class block.

I know the minimum is always zero (kind of common sense)

But anyone know what exactly does "Light level 15" translate into code?

##### Share on other sites

Minecraft has 16 different light levels, 0 Being the darkest and 15 being lightest.

Light Level 15 would equal to the maximum light level a block can reach.

In code the range is 0F to 1.0F

```float lightValue = 0F;
lightValue = 7/15; // Result 0.467F;
```

But any value from 0F to 1.0F would work

A better explanation: http://greyminecraftcoder.blogspot.com/2013/08/lighting.html

I require Java, both the coffee and the code

##### Share on other sites

Sorry for offtopic but where we can find texture file with ligh, if it exists.

##### Share on other sites

Sorry for offtopic but where we can find texture file with ligh, if it exists.

I don't think there is a texture for light

I require Java, both the coffee and the code

##### Share on other sites

In earlier versions there was but now I cant find it. Maybe they us sth with OpenGL.

##### Share on other sites

Now here is an interesting question:

What if a [stroke]noob[/stroke] newbie called setLightValue(100F)?

How will Minecraft react?

##### Share on other sites

Now here is an interesting question:

What if a [stroke]noob[/stroke] newbie called setLightValue(100F)?

How will Minecraft react?

I guess there is only one way to find out!

Although, I'm pretty sure it still is capped...

I require Java, both the coffee and the code

##### Share on other sites

<Nitpick>

```float lightValue = 0F;
lightValue = 7/15; // Result 0.467F;
```

Actually the result there would be 0, because neither of those numbers (7 or 15) are floats.

</Nitpick>

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

DO NOT PM ME WITH PROBLEMS. No help will be given.

##### Share on other sites

Draco, they should totally add the <nitpick> tag to HTML5.

Don't make mods if you don't know Java.

Check out my website: http://shadowfacts.net

Developer of many mods

##### Share on other sites

<Nitpick>

```float lightValue = 0F;
lightValue = 7/15; // Result 0.467F;
```

Actually the result there would be 0, because neither of those numbers (7 or 15) are floats.

</Nitpick>

HAHA Damn! I knew I should have added the float notation after the number, but my head just said this is an example no one would care , I was wrong hehe.

Moral of the story: The computer is a dumb machine, so tell it exactly what you need or else you will suffer the consequences

I require Java, both the coffee and the code

##### Share on other sites

Moral of the story: The computer is a dumb machine, so tell it exactly what you need or else you will suffer the consequences

To err is to be human.  To really fuck up, you need a computer.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

DO NOT PM ME WITH PROBLEMS. No help will be given.

## Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

Only 75 emoji are allowed.

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

• ### Recently Browsing

• No registered users viewing this page.
• ### Posts

• KILAT77 : Waspada Situs Scam dengan Withdraw Yang Tidak Dibayar Di era digital saat ini, banyak orang yang mencari keberuntungan melalui situs perjudian online. Namun, dibalik gemerlap janji-janji manis kemenangan, ada bahaya yang mengintai. Salah satu situs yang patut diwaspadai adalah KILAT77. Situs ini mendapat reputasi buruk karena banyak laporan dari pengguna yang mengklaim bahwa mereka tidak bisa menarik dana kemenangan mereka. Dalam artikel ini, kita akan membahas mengapa ROTER88 dianggap sebagai situs scam dan bagaimana Anda bisa melindungi diri dari penipuan serupa. Pengalaman Pengguna: Penarikan Tidak Dibayar Beberapa pengguna telah melaporkan pengalaman buruk mereka dengan KILAT77. Mereka mengaku bahwa setelah memenangkan sejumlah uang dan mencoba menariknya, proses penarikan mereka ditolak tanpa alasan yang jelas. Bahkan, beberapa pengguna melaporkan bahwa akun mereka tiba-tiba diblokir setelah mencoba melakukan penarikan, sehingga mereka kehilangan akses ke dana mereka sama sekali.
• Maybe Try another Launcher like AT Launcher or MultiMC
• It is a dupe mod issue Remove Rubidium - you are already using Embeddium which is a fork of Rubidium
• No dice. Unfortunately this fix didn't work, thank you though.

• ### Who's Online (See full list)

×

• #### Activity

×
• Create New...

## Important Information

By using this site, you agree to our Terms of Use.