Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

oznecniV97

Members
  • Joined

  • Last visited

Everything posted by oznecniV97

  1. @failender you can explain me what is and how i use it?
  2. @ratismal I want to make a mod that add a "macro" that do some things. One of this is breack a block with the selected item in your code the player "press" the left mouse button while the command "KeyBinding.setKeyBindState(bind.getKeyCode(), false);" is used?
  3. @ratismal the b option. I want to press a button (I alredy use a KeyHandler to call this method) and the player dig the block until it breacks. @Failander I work ONLY on client side.
  4. Hi guys, I want to create a method to press a key and break a block (of stone or other) in front of me with my pickaxe. I write this method but it do nothing and minecraft crash. public static void rompi(){ int max = Minecraft.getMinecraft().thePlayer.inventory.getCurrentItem().getMaxDamage(); int curDam = Minecraft.getMinecraft().thePlayer.inventory.getCurrentItem().getItemDamage(); int nextDam=Minecraft.getMinecraft().thePlayer.inventory.getCurrentItem().getItemDamage(); while(curDam==nextDam){ Minecraft.getMinecraft().thePlayer.swingItem(); nextDam=Minecraft.getMinecraft().thePlayer.inventory.getCurrentItem().getItemDamage(); } } swingItem() make a swing of my item, but in this while isn't true... help
  5. How i find this 2 methods? You can post me an example? I didn't know what is and how to use "reflection"
  6. Hi, i want to activate a press event (like left or right mouse click) using a command in my mod. example "code" public void exampleFunction{ if(condition){ leftMouseClick(); }else if(condition2){ pressH(); }else{ rightMouseClick(); } } I have a good java experience, but a very little experience for making mod (i'v only make a tutorial mod). Anyone can help me?
  7. And on the client side how I have the player? With wich method?
  8. I see that class but how I read the Entity entityIn and the World worldIn in the keybind event? In the method "onEntityCollidedWithBlock" the params is automatic because is an override (I think...)
  9. Thanks a lot! For another question I can ask it here or is best to create a new topic?
  10. Hi, i want to move the player visual without move the mouse, using only some key from keyboard (for example "H" for turn n degrees left, "K" for right, "U" for up and "J" for down). I have a good java experience, but a very little experience for making mod (i'v only make a tutorial mod). Anyone can help me?

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.