Everything posted by Failender
-
[1.7.10] Generate blocks on grass
show ur attempts, ask specific questions
-
[1.8] Redstone type wire
To answer your question, yes should be possible.
-
[1.7.10] Generate blocks on grass
u will need to find the surface block, I am not sure if vanilla has a method for that, or if u need to iterate over the blocks in the world until u find a grass block. after that add 1 to the y pos and u are above the grass
-
[1.8] Redstone type wire
and what would neutral do? nothing? EDIT: Take a look at the Redstone class. There is a lot of things to read that might already solve ur questions
-
[1.8] world.setBlockState not actually creating blocks
seems like my answer got cut. sorry. public ItemStack onItemRightClick(ItemStack Item, World world, EntityPlayer player) { if(!world.isRemote) { doWorldChangesHere(); } show the crash log, should not be happening.
-
[1.8] Redstone type wire
Specifiy please. u mean a cable with negative redstone power?
-
[Solved] Item Lifespan
U can access the actual open container of the player by player.openContainer. Which means u can use a PlayerTickEvent, iterate through the items of the open container, check the nbt tags, and after that dance to some music.
-
[1.8] Custom gui rendering
Alright. I know that I am missing something totally dumb. I want to know something custom above the food icons of the player. I know that I need to scale my rendering. But I am to dumb to get the math right now. The y pos is always correct, the x pos gets messed up by changing the size of minecraft. Any help is appreciated. Greetz Failender @SubscribeEvent public void renderGui(RenderGameOverlayEvent event) { if(event.type==ElementType.ALL) { GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F); GL11.glDisable(GL11.GL_LIGHTING); ExtendedPlayer ext = ExtendedPlayer.get(Minecraft.getMinecraft().thePlayer); Minecraft.getMinecraft().getTextureManager().bindTexture(schild); int xPos = event.resolution.getScaledWidth()-205; int yPos = event.resolution.getScaledHeight()-48; float percentage = (float)ext.getCurrentShield()/ext.getMaxShield(); drawTexturedModalRect(xPos, yPos, 0, 0, 16, 16); } }
-
[1.8] world.setBlockState not actually creating blocks
best way to find out if u are on server or client side are world objects. world.isRemote tells u that. world.isRemote=> client !world.isRemote =>server. void onItemRightClick(tons of arguments including world object) {
-
[1.7.10] Can someone tell me what these functions are?
this copypasted code is obfuscated. I guess ur dev environment is deobfuscated. which means that you need to find the deobfuscated fields names.
-
[1.8] world.setBlockState not actually creating blocks
show how u call the method. i bet u are calling it on client side, which is wrong. u need to call it on server side.
-
[Solved] Item Lifespan
nothing to add.
-
[Solved] Item Lifespan
u can save the time of creation/ the expire data in the items nbt and validate that every time u want do so. so u know "this steak was created 100 ticks ago" and if the steak is 200 ticks old make it to rotten flesh or sth like that
-
[1.7.2] I want right click blockchest during the sneak.
U went to far. Seriously.
-
[1.8] updateFallState
more information please. which method are u talking about? which class?
-
[1.7.10] Temporarily Replace Players HUD Storage/Main Storage with a custom one
normally if synchronized right vanilla will do that for you. I am not sure if they pull the information from openContainer or inventory. But they should be rendering the stuff they find inside that.
-
[1.7.10] Temporarily Replace Players HUD Storage/Main Storage with a custom one
Alright. I will tell you what I know, but as I said I abandoned this try because I wasnt able to fix all problems occuring. The player has two instances of his inventory. Player#inventory Player#openContainer Overriding these two is the first step of chaning the player inventory. If you do that u wont have a need to interrupt the keys, because they will fetch the data from the overwritten instances.
-
[1.7.10] Freeing cursor on keypress
should work since ur gui isnt doing anything on server side. just send a packet for selecting the weapon
-
[1.7.2] I want right click blockchest during the sneak.
http://4.bp.blogspot.com/-YqRh7hhBj1M/T-yojv9_gNI/AAAAAAAAAlQ/Q_feMuGM2js/s1600/wat+duck.jpg[/img]
-
Make Player Knockback
Hmm I might be wrong there. If u are able to find out where the player gets knockbacked (from attacks etc) u will find ur solution for sure
-
Spawning my entity causes gamecrash[STILL UNSOLVED]
use the id of the entity, they are synced between server and client.
-
[1.7.2] I want right click blockchest during the sneak.
u need to use the PlayerInteractEvent, like u did earlier not create a PlayerInteractEvent.
-
Make Player Knockback
dont message the client about its motion. set it on the server, just like u have done for everythign else then player
-
Spawning my entity causes gamecrash[STILL UNSOLVED]
U should try fixxing problems urself instead of asking for help if u cant find the problem in ten minutes
-
Spawning my entity causes gamecrash[STILL UNSOLVED]
well. I know that if I wont answer u for half an hour u will have it fixxed :'D
IPS spam blocked by CleanTalk.