You simply need to call setLightLevel in either your torch's constructor or whenever you're constructing the object. Note, though, that you will need to divide the light level you want with 15.
Alternatively, you can override the getLightValue method to return the light level you want.
Rollback Post to RevisionRollBack
Teleporting XP, for when you want to improve performance with XP farms
How would i get my custom torch to emit light? in the blocktorch class, there is nothing related to this.
For vanilla objects you need to look at both the constructor and also where the instance is created to fully understand it. If you look in the Block.registerBlocks() method you can see many of the blocks get things like hardness and light levels set there.
How would i get my custom torch to emit light? in the blocktorch class, there is nothing related to this.
You simply need to call setLightLevel in either your torch's constructor or whenever you're constructing the object. Note, though, that you will need to divide the light level you want with 15.
Alternatively, you can override the getLightValue method to return the light level you want.
Teleporting XP, for when you want to improve performance with XP farms
For vanilla objects you need to look at both the constructor and also where the instance is created to fully understand it. If you look in the Block.registerBlocks() method you can see many of the blocks get things like hardness and light levels set there.
I figured it out. By the way, what is the maximum light level? is it just 15?
I figured it out. By the way, what is the maximum light level? is it just 15?