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.

Bedrock_Miner

Forge Modder
  • Joined

  • Last visited

Everything posted by Bedrock_Miner

  1. Class of the "Mega-Potion" (Quintessence): ModItem class (To make constructing easier, nearly the same like Item.class)
  2. Hm.. I looked at the classes, but I don't understand them... Additional problem: The different Items should have a damage-bar as well as they have multiple entries in the creative tabs, one for each meta (There are only 10). As far as I understood, this isn't possible this way.
  3. Hello everybody! Can you create Items which have a damage variable and a metadata at the same time? How? I want to create special potions, which can be used multiple times... Hope, anybody can help.
  4. This works, bit you can't stop the normal MC-Function for this.. Is there any Event concerning Keys?
  5. Looks nice, but can I also use this for Keys minecraft uses? I want to set special functions to the keys 1 to 9 and to key 0. But keys 1 to 9 are used in MC to switch the selected Inventory slot. This should happen, if you press the key (1 to 9) and Shift at the same time. Can I do this and how?
  6. Hello Guys! I want to use a specific input-function in my mod. For this I need to know how to get a method in MC which is called when a key is pressed. Can you tell me how? Thanks in advance!
  7. Thank you very much, now it works fine Also a huge thank you to dieSieben07 for his tutorial "Advanced Packet Handling"
  8. OK, I think i have to summarize everything i want, or nothing make sense anymore.. Thanks to all of you who tried to help me till now.. I want to add Some Variables (at least one) for each player They have to be saved at server-side I need access to the value of the variables from: Handlers like onRenderGameOverlay (only mc.thePlayer) Handlers like onEntityInteract (special instance of EntityPlayer) Methods like onItemUse (special instance of EntityPlayer) [*]The Variables need a start-value when you first join a server or respawn
  9. @GotoLink: Thx, that was very helpful! OK... And how can I get an Instance of EntityPlayer in the method @ForgeSubscribe onRenderGameOverlay(RenderGameOverlayEvent e) ...
  10. OK, but how can I save this with IExtendedProperties? For this I need a instance of EntityPlayer.
  11. I looked at the wiki, but I couldn't find a Tut for this: The following should happen: [*]OnPlayerInteract works [*]Send Packet "Mana" with value 1 works too [*]Recieve Packet also ok without problems [*]Add 1 to the players Mana How can I do this last step? I don't know how to find the right player or how to get a list of them
  12. Packets.. OK... Never worked with them before. How can I do this?
  13. And how can I save the values at ServerSide, but also get access in gui-handlers via Minecraft.getMinecraft().thePlayer (or different?) All in all: - I want to save the variables at server side - I need access to the variables from events with an instance of EntityPlayer as well as from Gui-handlers (I don't know if it's necessary to create a new instance of EntityPlayer for this, and even if, I don't know how) How can I do this?
  14. There's no NPE any more But, when I try to change the values of Extended Properties in events nothing happens. What's wrong? @ForgeSubscribe(priority=EventPriority.NORMAL) public void onEntityInteract(PlayerInteractEvent e) { ((ExtendedProperties)e.entityPlayer.getExtendedProperties(ExtendedProperties.identifier)).mana -= 1; System.out.println("Subtracted 1 mana"); //Just for controlling... } On the other hand: Isn't it better to save the values on server side? If you join a Server from different PCs, you always have the same Items.
  15. I have these code sections: And if I try this I get a null-pointer exception: PlayerMana = ((ExtendedProperties) this.mc.thePlayer.getExtendedProperties(ExtendedProperties.identifier)).mana
  16. Sorry, I edited my question just when you answered
  17. Look in the rendering classes, there must be a method to render the Arm or the hold Item.
  18. Thank you. This works for now. But I got another Problem. How can I create a "start value" for these variables? If I try to get access there is a null-pointer-exception, so I think the value is null. But how can I set a start value (example: if you first spawn you get 20 points, then if there is a saved value, you get this one)
  19. Thanks, I now have the variables for all the players. But how can I save the values so that you have the same value if you relog?
  20. The rendering works now after a lot of problems But I don't manage to add the real variable. And I don't understand whant you mean with Could you please give me an example or something else? @Mazetar: Thanks..
  21. Is this the same in newer versions of MC-Forge? I tried the following in MC 1.6.2: Minecraft.getMinecraft().renderEngine.bindTexture("/gui/inventory.png"); But this doesn't work: Eclipse says, that there is no Method bindTexture(String) in class renderEngine... Why?
  22. OK, this page seems to be very useful... THX I'll come back in a few days time, first I travel from DE to GB on holiday
  23. OK, I think this is easy.. Thank you..
  24. OK; I'll try. Thanks. But I'll come back with loads of errors...

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.