Everything posted by Differentiation
-
[1.10.2] [SOLVED] Saving capabilities state when a player dies?
It was that easy all along Thanks!
-
[1.10.2] [SOLVED] Saving capabilities state when a player dies?
Hello! I have this player capability class with boolean, int, and float values which are unique to the player. Now, when the player dies, these values reset to their default state. Is there a way to keep the state of the values when the player dies? Any suggestions are welcome. Thanks!
-
Change color of the tooltips
in the addInformation method?
-
[1.10.2] Ways to move the player forward?
No such method. Not what I'm looking for. Ways to move a player forward. Thanks, I'll try that!
-
[1.10.2] [SOLVED] Minecraft-style Code Formatting?
Ah! I knew it, it's about time for me to switch to a more professional software... thanks for the help!
-
[1.10.2] [SOLVED] Minecraft-style Code Formatting?
aw, that's a bummer, is there any other way to format it this way other than doing it manually? It's a pain
-
[1.10.2] [SOLVED] Minecraft-style Code Formatting?
Hey! I keep taking glances at the Referenced Libraries and the code in them and they have a style that I personally adapted, but I just space everything out myself when coding. I was wondering if there is any way to have line breaks between the beginning and end of block codes. For instance: /* Event fired when an entity dies */ @SubscribeEvent(priority = EventPriority.HIGHEST) public void onLivingDeath(LivingDeathEvent event) { if (event.getEntityLiving() instanceof EntityLiving) { EntityLiving entity = (EntityLiving) event.getEntityLiving(); entity.playSound(SoundEvents.BLOCK_METAL_BREAK, 1.0F, 1.0F); for (int i = 0; i < 50; ++i) //line break above { entity.worldObj.spawnParticle(EnumParticleTypes.BLOCK_CRACK, entity.posX, entity.posY + (entity.height - 0.25D), entity.posZ, Math.random() * 0.2D - 0.1D, Math.random() * 0.25D, Math.random() * 0.2D - 0.1D, Block.getIdFromBlock(Blocks.REDSTONE_BLOCK) ); }//line break below if (...) { ... } try { } catch(...) { ... } } } I've been trying to accomplish this for a lot of time, yet no success. Any ideas? Thanks!
-
[1.10.2] Ways to move the player forward?
Thanks! I'll give it a try.
-
[1.10.2] Ways to move the player forward?
Bump, hehe
-
[1.10.2] Ways to move the player forward?
Hey! So I have tried moving the player to a direction, ex. sides, forward, backward, etc. but I just couldn't find a way to make it work. Any suggestions? Thanks!
-
(SOLVED) [1.12.2] Problems with custom item and NBT
A very silly mistake indeed I'm glad you figured it out. Happy modding!
-
Help with launcher plesssssss
Show your mods folder and what Forge 1.8.9 version are you using?
-
(Fixed, Supports 1.8.9, will be upgraded) CharacterOverrideUtils
Cool stuff, however this Forum may soon abandon 1.8.9 so I suggest you update
-
Entity Team Info [1.10.2]
Sponge is very conflicting with Forge. I took it out long ago
-
Entity Team Info [1.10.2]
Or just send a packet to the server if this assignment is real.
-
Entity Team Info [1.10.2]
Get the team client-side and the rest server-side
-
Entity Team Info [1.10.2]
You are not calling this "function" or any method to set a team for the player in your onEntitySwing(...) method. And we do Java here, I don't know where you call or apply this function so I can't really help...
-
Entity Team Info [1.10.2]
I guess so.
-
Entity Team Info [1.10.2]
Then why is elTeam identified here?
-
Entity Team Info [1.10.2]
Then why isn't it working for him when world is not remote?
-
Entity Team Info [1.10.2]
Sorry, only setting the team in his case...
-
Entity Team Info [1.10.2]
^ Where in your code do you set the team anyways?
-
Entity Team Info [1.10.2]
Potion effects are handled server-side, your other lines in that method (such as things like AABB) are handled in the logical client-side. Therefore, you must insert !World::isRemote when applying potion effects and World::isRemote with the AABB and setting team.
-
(SOLVED) [1.12.2] Problems with custom item and NBT
I would like to see the solution if you figure it out. I myself don't have such a good experience with NBT, but I would like to see what you ended up doing. Happy New Year to you as well. Here in New York, New Year is in 5 hours!
-
(SOLVED) [1.12.2] Problems with custom item and NBT
Yeah, I see that's why you used the UUID. I couldn't figure it out myself since I'm not that good at NBTs. Best of luck figuring out the solution!
IPS spam blocked by CleanTalk.