Everything posted by Niinnnnnn
-
How do I work on multiple mods in Eclipse?
rsrsrsrs
-
How do I work on multiple mods in Eclipse?
You're one of the funniest people I've ever seen. but if you do not understand the question does not answer, it's ugly for you
-
How do I work on multiple mods in Eclipse?
I have a project of a mod in my eclipse, how do I have another in the same workspace
-
Doubts about creating Sword and Armor
Do I need to use ItemSword to create a sword or create an ItemArmor armor and use ToolMaterial and ArmorMaterial? This was made for ease, right? it is not mandatory to use
-
how to get the direction the player is eye 1.12
ohh ok, but how do I do it now to boost the player, would it be with setVelocity? oho
-
how to get the direction the player is eye 1.12
how do I do now that I've used getLookVec ()? I do not know how I get the direction he's looking with getLookVec (). I need this to send a boost to where he's looking for this I'm going to use setVelocity
-
how to get the direction the player is eye 1.12
Entity Player does not have getLookHelper() or at least I could not find
-
how to get the direction the player is eye 1.12
how to get the direction the player is eye 1.12
-
Double Jump
This will fire when the jump event fires which is probably not what you want. You probably want to check that Entity.onGround is true in some kind of tick event. Also your double jump will only work if jumps[playername] == 1 yet you set it to 0 here thus making sure it won't work ever again. And you know why it won't work? Because when the tick event fires next and checks for the block below the player it is not going to be an air block. Thus it will set the jumps to 0 again even though you've jumped. this
-
Double Jump
I do not know why it turned up this.
-
Double Jump
it was written "How can i do this"
-
Double Jump
I managed to pack everything but the last thing you said no How can I do this
-
Double Jump
I did a double jump code but it only works sometimes Can someone tell me what I did wrong? It works but not all the time. private static HashMap<String, Integer> jumps = new HashMap<String, Integer>(); private static int keyvalue; public static void jump(EntityPlayer p) { int x = p.getPosition().getX(); int y = p.getPosition().getY(); int z = p.getPosition().getZ(); World world = p.getEntityWorld(); BlockPos pos = new BlockPos(x, y - 1, z); if (world.getBlockState(pos).getBlock() instanceof BlockAir) { if (jumps.get(p.getName()) == 1 && p.motionY < 0.07 ) { p.setVelocity(0.0F, 1.0F, 0.0F); System.out.println("aaaa: " + jumps.get(p.getName())); jumps.put(p.getName(), jumps.get(p.getName()) + 1); System.out.println("bbbb: " + jumps.get(p.getName())); } else if(jumps.get(p.getName()) >= 2) { } } if (!(world.getBlockState(pos).getBlock() instanceof BlockAir)) { jumps.put(p.getName(), 0); // System.out.println("cccc: " + jumps.get(p.getName())); } } @SubscribeEvent public static void getKeyJump(LivingJumpEvent e) { if (e.getEntity() instanceof EntityPlayer) { EntityPlayer p = (EntityPlayer) e.getEntity(); int key = Keyboard.getEventKey(); keyvalue = key; jumps.put(p.getName(), 1); } } @SideOnly(Side.CLIENT) @SubscribeEvent public static void a(PlayerTickEvent e) { EntityPlayer p = (EntityPlayer) e.player; if (Keyboard.isKeyDown(keyvalue)) { jump(p); } }
-
how do I get the player that used the key in the ClientTickEvent event
how do I get the player that used the key in the ClientTickEvent event forge 1.12
-
Check which button is set
Okay, I would stay there KeyBinding [] keyBinding = Here I would put what? Sorry, I'm kind of slow, please do not lose patience with me.
-
Check which button is set
I've tried, but I can not figure out how to do this
-
Check which button is set
ok but how can i check which key is a function (I'm new to Mod sorry)
-
Check which button is set
is it possible for me to get the key that is set in the minecraft of who is using the mod? I would like to create something when the player jumps but if I use the space key and the player changes in its configuration the jump key to "N" for example will not work. so I'd like to check which key is set, it's possible?
-
there is no player.isJumping () anymore? 1.12
there is no player.isJumping () anymore? forge 1.12
-
Custom Model Blocks (JSON)
Okay, I've seen how it's done, but there's no way I can understand and do my
-
Custom Model Blocks (JSON)
I still do not understand but ok Do you know where I can find a tutorial writing of preference?
-
Custom Model Blocks (JSON)
I know it's the easiest way but I'd like to do without. how can I look at the model json
-
Custom Model Blocks (JSON)
how can i learn how to create custom model blocks .json? any tutorial? without using 3d modeling programs, I would like to learn how to program the shape and textures of the block. I know how to do the simple, put texture and choose if it is cube all, orientable etc but not with different formats.if you can a help me thankss!!
IPS spam blocked by CleanTalk.