Jump to content

YoungErtu

Members
  • Posts

    61
  • Joined

  • Last visited

Everything posted by YoungErtu

  1. Ah ok yes that makes sense, thanks! how could i change that? Should i use a TickHandler for it or can i change that from onArmorTick Method, if yes how can i do this.
  2. yes i know how to use packets and stuff i'll try that i forgot using packets i think this is the issue. thanks i'll leave a comment when im finished.
  3. SOLUTION onArmorTick: I have a problem im using onArmorTick to consume Mana from player, this armor will be summoned by the player when he use 10 mana, after 1000 ticks it should consume 10 mana again and this everytime when wearing the summoned armor and when the current mana is lower than the costs it will be deleted from inventory, but i have the problem that it consumes 30 mana every time when the ticks are higher than 1000, so the console execute the code 3 times. here the console log: and here the code of onArmorTick: PacketDispatcher.sendToServer(new UpdatePropsStats(1, 10)); is just a method to update players stats from client side. also here the code in the UpdatePropsStats class:
  4. Hey guys, i'm working on a Item that allows the player to save a selected amount of mana into the item, this item will storage the mana and clicking right-click again, will release the mana and the player gets his stored Mana in the item back. so this means i'll need 2 NBT-Tags one boolean to check if mana is stored in the item (or just check if the stored mana is 0 but i like the boolean version more), and one to save the amount of mana that is stored in the item, i already created the item and gui and just need help for finishing the item class. Does somebody know how to save this Tags and use them? Thanks for any help! here the item class: and i need methods to change the value of the tags outside the class e.g in the Gui when the button is pressed.
  5. Thanks, now i did what you said before and now is everything working, i didn't know that so much stuff gets into client proxy. but thanks yeah!
  6. Yeah i know that, the problem isn't really to change that, its more the problem that i don't know which class/line is the reason for the crash. Because no class/line of my mod files is mentioned in the crash report. EDIT: After working on other things in my mod now i know the reason why it crashes the reason is my key binding Caused by: java.lang.RuntimeException: Attempted to load class net/minecraft/client/settings/KeyBinding for invalid side SERVER I want to fix that any ideas? My Keybinding looks like this: and the crash report shows line 59 in my main class public static KeyBinding key_character_stats = new KeyBinding("key_character_stats.characterstats", Keyboard.KEY_C, "Fairy Tail");
  7. SOLUTION: I forgot to put the render, keybindings, event registrations etc. in my ClientProxy so they would be loaded on server side too and thats the reason for the crash, just put the client stuff like rendering etc. into your client proxy thats all! Hello Guys i have the problem that server crashes when i start my mod on server side. client side is working, so the crash report says that im trying to render client stuff at server side but i don't know where i'm doing that and in my Common and Client Proxy i didn't found something which could be the reason, could you help me please? Here the Crash Report: here my server proxy: here the client: Thanks for any help!
×
×
  • Create New...

Important Information

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