-
Refresh Block Light ??
So how can I resolve this problem? What I have to do?
-
Refresh Block Light ??
@MFMods Tells me that this is possible...how?
-
Refresh Block Light ??
OK, so I will use setBlockState, but it requiers an IBlockState, that must have the Block state ( setBlockState(pos, IBlockState, 3); ) ...how can I set Light Level by using this?
-
Refresh Block Light ??
Hello, how I can update the current light level?...This is my code: @SubscribeEvent public void NearUraniumEvent(PlayerEvent event) { int blockX = event.entityPlayer.getPosition().getX(); int blockY = event.entityPlayer.getPosition().down().getY(); int blockZ = event.entityPlayer.getPosition().getZ(); BlockPos pos = new BlockPos(blockX, blockY, blockZ); Block block = event.entityPlayer.worldObj.getBlockState(pos).getBlock(); if(block == NukeMod.uranium_grass) { System.out.println("Uranium_grass down!"); event.entityPlayer.worldObj.getBlockState(pos).getBlock().setLightLevel(1.0F); }else { event.entityPlayer.worldObj.getBlockState(pos).getBlock().setLightLevel(0.0F); } int light = event.entityPlayer.worldObj.getBlockState(pos).getBlock().getLightValue(); System.out.println("Light: " + light); } The light value changes correctly (There is the print in console...), but I don't know hoe to refresh the block Help me please.
-
How to run onItemRightClick one time?
Then why onItemRightClick works as a loop?
-
How to run onItemRightClick one time?
How can't be a command similar to EnumHand in minecraft 1.8???
-
How to run onItemRightClick one time?
Unluckly there isn' t EnumHand
-
How to run onItemRightClick one time?
ok...and the other parameter?
-
How to run onItemRightClick one time?
Ok, but what do I write in "the active side", "side I care about && active hand", "hand I care about". Sorry, I 'm very ignorant in this program.
-
How to run onItemRightClick one time?
Yes, but I don't know how to make it
-
How to run onItemRightClick one time?
I want to send message "hello" every time I right click with my custom sword... How can I make in this case?
-
How to place a chest with Item?
Thanks
-
How to place a chest with Item?
Sorry, but I ' new in this type of program... Can you make an easy example?
-
How to run onItemRightClick one time?
Sorry, I mean once per side / per hand... Can you give me an easy example?
-
How to run onItemRightClick one time?
Can I have an example? I haven't found any example of this function...
IPS spam blocked by CleanTalk.