
Seynox
Members-
Posts
44 -
Joined
-
Last visited
Everything posted by Seynox
-
I pretty much copied Botania's PacketHandler and PacketJump that looks pretty strange but i think that's pretty much what i want, and it's not doing anything so it might be outdated, or i did something wrong
-
1.12.2
-
Hello! I'm trying to make a packet when the player press his jump keybind. I have a custom item that allow you to double jump when equipped in a Bauble Slot (Belt slot). Everything seems to work, i only need to know when the player press space when he's not touching the ground. I already saw the Forge Doc about SimpleImpl, but i don't really get it.. Do i need 3 class? PacketHandler, MyMessage and MyMessageHandler? (I guess i can rename the Messages classes) Here's the item im making : Can you guys give me examples?
-
Hello! Im trying to make an item that is 3D when you hold it, and 2D in GUI (Im using Cubik Studio for the 3D model) I found a tutorial that explain exactly how to do what i want, but it's pretty old. Is this still working? If not, what should i change to make what i want?
-
Thanks dude im gonna try that (And sorry for the useless bump)
-
No one?
-
Hi! I have a throwing entity that get the closest player where it landed. The problem is that i want it to ignore itself (this.getThrower), and itself I guess it's more a Java problem than a Forge one but i don't understand how i can do it, so here's what i did (And it's not working because it's ticking itself (the throwing entity)) EntityPlayer thrower = (EntityPlayer) this.getThrower(); Predicate isThrower = Predicate.isEqual(thrower); EntityPlayer nearplayer = world.getClosestPlayer(wherehit.getX(), wherehit.getY(), wherehit.getZ(), 25, (com.google.common.base.Predicate<Entity>) isThrower.negate());
-
Fixed! Thanks
-
I now have that, but still stuck at 0:00
-
Hi! I want the player that has less than 9 food level to get Mining Fatigue. Everything is working except the Mining fatigue effect that get stuck at 0:00s left I know i could easily fix that by clearing his Mining Fatigue effect but if that happen, i guess something is wrong The code :
-
Its working! Thanks dude
-
I don't really know how to hold the Object, could you show me an exemple? And, im new to Java & Modding thats why i make stupid mistakes. So i fixed the empty if statement, but for the "== false" thats to know when its not playing the sound, i dont know how i could do
-
I now have that but the problem still the same, its not detecting the sound getting played (even if i hear it)
-
Can you just show me what you're talking about?
-
Okay so, based on the MinecartMovingSound.class, i created a LowHealthSound.class and i removed everything that use the player velocity to get the volume etc, so everything works except the isSoundPlaying that stay on True, even when the sound is playing EDIT : When its on True, nothing happen, which mean it might be a problem to recognize the sound The EventHandler code : The Lowhealth_Sound code :
-
Could you give me an exemple of what i should put, and where to create a ISound?
-
Thanks! The last thing i need is to create a ISound (The sound i was using was a SoundEvent, which mean its not working with Minecraft.getMinecraft().getSoundHandler().playSound and .isSoundPlaying) I cant find any use of ISounds in Minecraft files, and anything on internet, could you help me?
-
Hi! I want to slowdown the while loop because it's spamming the playSound and causing the game to crash i saw that Thread.sleep() is freezing the whole game, so i guess i should count ticks but i have no idea how to do it. Here's my code (The LOW_HEALTH_SOUND is 4.2s long) @SubscribeEvent public void LivingDamageEvent(LivingDamageEvent event) { Entity entity = event.getEntity(); World worldIn = event.getEntity().world; if(entity instanceof EntityPlayer) { float low_health = (((EntityPlayer) entity).getMaxHealth()) /3; while(((EntityPlayer) entity).getHealth() <= low_health) { worldIn.playSound(null, ((EntityPlayer) entity).getPosition(), SSMSoundHandler.LOW_HEALTH_SOUND, SoundCategory.AMBIENT, 1, 1); //wait 4200ms here } } } } Can you guys help me?
-
Hello! I'm trying to get 1 absorption heart (With a custom texture) by right clicking with a custom item. It has to be an absorption heart because i don't want it to regenerate after loosing it. I already have the custom item, the onItemRightClick method etc. the only thing i need is the effect