Everything posted by Knux14
-
Render techne models on Player
ok thanks man, i'll test it. So i exported my class in techne: http://paste.minecraftforge.net/view/7e114b9c And i made this in my EventHandler: http://paste.minecraftforge.net/view/7a2cc7ea But I dont know what I am supposed to write for the arguments of the render method. I search in the vanilla minecraft but I don't understand
-
Render techne models on Player
Hello guy, its me again I made a jetpack ingame which is in a slot in a IExtendedProperties which is working pretty well. Then my friend made me some models in Techne and i would like to make them showing on the player but i have no idea how to do it. I've read the Hats (from ichun) source code but i didn't understand everything. He make an entity to show the hat on the top of the head but its weird, doesn't it ? How can I render it properly ? Thanks in advance
-
MCP + forge + Netbeans
Ok so, someone is writing a tutorial about it on the forum Ironcraft. The only problem is that its a french community, so the tutorial is in french, and the website is actually down
-
Some inventory troubles
Yes ! Its working ! Thank you guys
-
Some inventory troubles
Ok so I made a packet which open the Gui serverside and its work ! The items seems to work too Thanks man ! The last problem is that i dont know where is it saved. I printedout the itemstack that Ive made in my ext player and hes empty ... Mh I thinks its saved in the player's inventory .. Its the first armor slot ;_;
-
Some inventory troubles
Heres my GuiHandler: http://paste.minecraftforge.net/view/54e3f97a And heres the Gui opening: http://paste.minecraftforge.net/view/27ca0d90 I removed the extends Entity but I dont understand what you mean by "sub-compound"
-
Some inventory troubles
Okay so theres my container: http://paste.minecraftforge.net/view/ae7b67fe My Gui: http://paste.minecraftforge.net/view/7294e994 My IExtendedEntityProperties: http://paste.minecraftforge.net/view/1901372c I took the function to save the slots from the furnaces code
-
Some inventory troubles
Hello guys (Again ) I'm now on a problem. I made a Gui which is a GuiContainer designed to be like the inventory. I can open it without problem but then, i cant take any items to move to another slots (It gets quickly taken by the mouse then it get back to his slot) and the second is i dont know how make a slot part of my ExtendedEntityProperties player. I made a ItemStack array which is saved by the NBT but i dont know how to use it in a slot, because the first parameter of a slot is the "InventoryPlayer" so it get the slot from an ID and i cant use mine I tried to make my own Slot class but it did'nt worked Thanks for awnsers
-
Crash on opening GUI with IExtendedEntityProperties
Here's the event: @ForgeSubscribe public void entityConstructing(EntityConstructing evt) { Entity et = evt.entity; if (et instanceof EntityPlayer) { et.registerExtendedProperties("JetpackJoycraft Custom Player", new EntityCustomPlayer(et.worldObj)); } } but it do not seems to run .... oh wait... I didn't registred the event YEY its seems to work Thanks man, sorry for this noob-question
-
Crash on opening GUI with IExtendedEntityProperties
Hello everyone, I'm making a mod which need to save the player's money, so I made a IExtendedEntityProperties which contain the getter and the variable. Here's my classes: - GuiMenu: http://paste.minecraftforge.net/view/a7b5d273 - EntityCustomPlayer: http://paste.minecraftforge.net/view/451bc4d3 And it crashes on GuiMenu:29 (Where i drawString) because of pl is null ... I dont understand why. I also need a good tutorial about PacketHandling (I found the one on the Forge's wiki but its not enough comprehensible
-
MCP + forge + Netbeans
Mhh thats strange, it worked for me I tryied it in 1.4.7 but i didn't tryied it since
-
MCP + forge + Netbeans
Heres the full WORKING tutorial, I tested it. http://mcpold.ocean-labs.de/index.php/Setting_up_NetBeans
-
[1.6.2] PlayerTick on other player
This event seems not to work. It happens when player is on ground then jump, but when its in the air, the event is no longer called, even if the keyboard stay pressed
-
[1.6.2] PlayerTick on other player
Yes I know, but if i do this, the client will be kicked because "Flight is not enabled", doesnt it ? And for the particle I probably should do that. Let me try
-
[1.6.2] PlayerTick on other player
onPlayerTick is in the tick handler which is registred with TickRegistry.registerTick(new TickHandlerServer(), Side.SERVER);
-
[1.6.2] PlayerTick on other player
Where am I supposed to write this? Because onPlayerTick seems only tick the client player (But its in the ServerTickHandler) I've got another problem. I rewrited the mod because I changed computer and forget to save it But the coremod doesnt work. Its written this in the log: 2013-08-17 19:59:21 [iNFO] [ForgeModLoader] FML has found a non-mod file KnuxCore.jar in your mods directory. It will now be injected into your classpath. This could severe stability issues, it should be removed if possible. And the variable isJumping now return ALWAYS false. Thats what currently has the tick public void playerTick(EntityPlayer player) { ItemStack is = player.getCurrentArmor(2); if(is != null){ if (is.getItem() == Items.jetpack){ System.out.println("isJumping: " + player.isJumping); } } } And my console is spammed with "isJumping: false" when i am ingame, both if i jump or not
-
[1.6.2] PlayerTick on other player
So in the "onWorldTick" i do something like that ? for (Entity e : world.getEntities()){ if (e instanceof EntityPlayer) { if (e.getArmor(3) != null & e.getArmor(3).getID() == Items.plate & e.isJumping)[ //Show particle } } }
-
[1.6.2] PlayerTick on other player
Bump plz
-
[1.6.2] PlayerTick on other player
Hello everyone, I've made a "onPlayerTick" function which is working great but i've got a little problem. private void onPlayerTick(EntityPlayer player) { ItemStack plate = player.getCurrentItemOrArmor(3); if (plate != null) { if (plate.getItem() == Items.jetpack) { if(player.isJumping){ player.worldObj.spawnParticle("heart", player.posX, player.posY - 1, player.posZ, 0.0D, 0.0D, 0.0D); player.motionY += .15F; } } } } On singleplayer the particle work correctly but on multiplayer, the other players cant see it. Any solutions?
-
Metadata
Thanks man, i have everything i need
-
Metadata
Mmh that makes sense, but how can you add items with already defined NBT into the game?
-
Metadata
Hi guys I just want to know how does some mods to have more than 16 metadata on a block. Exemple: in ForgeMultiPart, there is more than 63 covers on the same ID: 25131:257 ... Thanks for the awnsers
-
Send packet
Now, i'm trying to make it in SP / SMP, and then i will do it with MCPC I cant send it from vanilla server And i cant cast the PacketHandler in any other kind of packet
-
Giving a Block dimensional features (like ender chest)?
You need to make a second inventory in the EntityPlayer then open it with a new GUI
-
Send packet
Hello everyone, I am trying to do a packet for a bukkit server, but i cant send it on the vanilla ... I followed the Wiki tutorial about making Packet. Mine is supposed to send a String when entering a World Guard region, but i need to try if it works before start modding Bukkit, so in a onItemUse, i wrote this: PacketRegionHandler pack = new PacketRegionHandler(MessagesPacket.messageVille); Packet250CustomPayload packet = pack; PacketDispatcher.sendPacketToPlayer(packet, (Player)par2EntityPlayer); but i have an error where its underlined. I cant cast a PacketRegionHandler to a Packet250CustomPayload, so how am i supposed to do? Thanks,
IPS spam blocked by CleanTalk.