Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Knux14

Members
  • Joined

  • Last visited

Everything posted by Knux14

  1. 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
  2. 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
  3. 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
  4. Yes ! Its working ! Thank you guys
  5. 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 ;_;
  6. 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"
  7. 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
  8. 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
  9. 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
  10. 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
  11. Mhh thats strange, it worked for me I tryied it in 1.4.7 but i didn't tryied it since
  12. Heres the full WORKING tutorial, I tested it. http://mcpold.ocean-labs.de/index.php/Setting_up_NetBeans
  13. 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
  14. 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
  15. onPlayerTick is in the tick handler which is registred with TickRegistry.registerTick(new TickHandlerServer(), Side.SERVER);
  16. 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
  17. 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 } } }
  18. 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?
  19. Knux14 replied to Knux14's topic in Modder Support
    Thanks man, i have everything i need
  20. Knux14 replied to Knux14's topic in Modder Support
    Mmh that makes sense, but how can you add items with already defined NBT into the game?
  21. Knux14 posted a topic in Modder Support
    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
  22. Knux14 replied to Knux14's topic in Modder Support
    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
  23. You need to make a second inventory in the EntityPlayer then open it with a new GUI
  24. Knux14 posted a topic in Modder Support
    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,

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.