Everything posted by Bedrock_Miner
-
Editing how an item is rendered between 1st and 3rd person
What about your code?
-
Damage and Meta for Items?
Class of the "Mega-Potion" (Quintessence): ModItem class (To make constructing easier, nearly the same like Item.class)
-
Damage and Meta for Items?
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.
-
Damage and Meta for Items?
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.
-
Keyboard usage
This works, bit you can't stop the normal MC-Function for this.. Is there any Event concerning Keys?
-
Keyboard usage
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?
-
Keyboard usage
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!
-
[SOLVED] Adding new Player-variable
Thank you very much, now it works fine Also a huge thank you to dieSieben07 for his tutorial "Advanced Packet Handling"
-
[SOLVED] Adding new Player-variable
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
-
[SOLVED] Adding new Player-variable
@GotoLink: Thx, that was very helpful! OK... And how can I get an Instance of EntityPlayer in the method @ForgeSubscribe onRenderGameOverlay(RenderGameOverlayEvent e) ...
-
[SOLVED] Adding new Player-variable
OK, but how can I save this with IExtendedProperties? For this I need a instance of EntityPlayer.
-
[SOLVED] Adding new Player-variable
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
-
[SOLVED] Adding new Player-variable
Packets.. OK... Never worked with them before. How can I do this?
-
[SOLVED] Adding new Player-variable
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?
-
[SOLVED] Adding new Player-variable
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.
-
[SOLVED] Adding new Player-variable
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
-
[SOLVED] Adding new Player-variable
Sorry, I edited my question just when you answered
-
Changing arm texture
Look in the rendering classes, there must be a method to render the Arm or the hold Item.
-
[SOLVED] Adding new Player-variable
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)
-
[SOLVED] Adding new Player-variable
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?
-
[SOLVED] Adding new Player-variable
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..
-
RenderEngine BindTexture private?
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?
-
Adding new Achievement-system
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
-
Submods?
OK, I think this is easy.. Thank you..
-
Adding new Achievement-system
OK; I'll try. Thanks. But I'll come back with loads of errors...
IPS spam blocked by CleanTalk.