Jump to content

Recommended Posts

Posted

For the mouse, cancel the

net.minecraftforge.client.event.MouseEvent.MouseEvent()

.

For the keyboard, you can try setting the

posX

from the player to the player's

prevPosX

.

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Posted

Maybe something like this?

 

while(spellParalysis.isActive()) {
      KeyBoard.destroy();
      Mouse.destroy();
}

 

Not sure where you would put this but, I believe this disables the KeyBoard and Mouse.

I am not a cat. I know my profile picture is sexy and amazing beyond anything you could imagine but my cat like features only persist in my fierce eyes. I might be a cat.

Posted

I know you are very HAPPY to KILL, but that doesn't mean you need to DESTROY everything xD

 

My input:

Better use events (as diesieben said).

  Quote

1.7.10 is no longer supported by forge, you are on your own.

Posted
  On 4/2/2015 at 8:15 PM, larsgerrits said:

For the mouse, cancel the

net.minecraftforge.client.event.MouseEvent.MouseEvent()

.

For the keyboard, you can try setting the

posX

from the player to the player's

prevPosX

.

 

Yes, I tried the resetting thing and it pretty much works with following code (event handler for LivingUpdateEvent):

    @SubscribeEvent(priority=EventPriority.NORMAL, receiveCanceled=true)

    public void onEvent(LivingUpdateEvent event)

    {

        // This event has an Entity variable, access it like this: event.entity;

        // and can check if for player with if (event.entity instanceof EntityPlayer)

 

    if (event.entityLiving instanceof EntityPlayer)

    {

    EntityPlayer thePlayer = (EntityPlayer)event.entityLiving;

    if (thePlayer.ticksExisted > 5) // make sure there is a valid prev position, don't run on first tick

    {

                        // You should also check to see if your paralysis effect is active here!

    thePlayer.setPosition(thePlayer.prevPosX, thePlayer.prevPosY, thePlayer.prevPosZ);

    }

    }

    }

 

The problem though is that it doesn't entirely prevent the movement, rather it shows the player attempting to move.  But it is kinda cool, maybe you'll like it.

 

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

Posted

Maybe doing that in RenderTickEvent.Pre would solve the glitching problem.

I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP)

II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium.

Posted
  On 4/2/2015 at 8:39 PM, Ernio said:

I know you are very HAPPY to KILL, but that doesn't mean you need to DESTROY everything xD

 

My input:

Better use events (as diesieben said).

 

I was just burned so hard. xD

I am not a cat. I know my profile picture is sexy and amazing beyond anything you could imagine but my cat like features only persist in my fierce eyes. I might be a cat.

Posted
  On 4/2/2015 at 11:34 PM, Abastro said:

Maybe doing that in RenderTickEvent.Pre would solve the glitching problem.

 

Worth trying. The key is to find an event that takes place after the position is updated but before it is rendered, so that might work.

 

I also think there may be an issue with client-server sync. The client is able to move entities a bit between server syncs, so it may be related to that.

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

  • 9 months later...
Posted

This is an old post, but I figured I might as well post a solution I found to disable the mouse movement input to prevent the camera moving. Simply by setting the mouse sensitivity to 0. To do this the sensitivity actually has to be set to a negative number to cancel out a constant which is added in the source.

 

 Minecraft.getMinecraft().gameSettings.mouseSensitivity = -1F/3F; 

Posted

The problem with that is: when you need to reset the sensitivity, you won't have the sensitivity the player may have set his game to. Thus, they would have to constantly change their sensitivity back (if they changed it before) every time it is affected.

I am not a cat. I know my profile picture is sexy and amazing beyond anything you could imagine but my cat like features only persist in my fierce eyes. I might be a cat.

Posted

There ya go! Should of mentioned that in your post. :P

I am not a cat. I know my profile picture is sexy and amazing beyond anything you could imagine but my cat like features only persist in my fierce eyes. I might be a cat.

Posted
  On 1/9/2016 at 10:33 PM, N247S said:

If we are going to revive this thread anyway. Way would catching the input events per tick not work? (just like mc is doing). If you catch it before mc can, it means that mc will have no input events to handle. (Since they are removed after reading/catching).

 

I agree that would be better. I was just not able to do it. It seemed to me that mc uses net.minecraft.util.MouseHelper to change the view, but I was not able to change the displacement even if I changed the dX and dY values. If anyone is able to do this or find a simpler solution, please let me know.

Posted

I think you should be able to catch the mouse event before the methods inside the MouseHelper class are called. If I remember correctly those methods are directly called from the #doTick() method.(not at my IDE atm so not sure). So if there is a tick type event fired before the mouseInputs are handled, you can simply subscribe to that event and catch the mouse i put events from lwjgl directly(instead of blocking vanilla events), so that vanilla has no events to proces after the tick event has been fired.

Projects:

Discontinued:

- N2ConfigAPI

- Meachanical Crafting Table

 

Latest:

- CollectionUtils

 

Coöperations:

- InGameConfigManager

  • 5 months later...
Posted

I know this is an old thread but I have just gone through this same issue.  In particular trying to lock the mouse so the player angle doesn't change.

 

I found this to be a good solution, anywhere in your initialization code:

 

		
MouseHelper customMouseHelper = new MouseHelper() {
  @Override
  public void mouseXYChange() {
    deltaX = 0;
    deltaY = 0;
  }
};

	Minecraft.getMinecraft().mouseHelper = customMouseHelper;

 

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • my server is running perfectly fine but the problem is I can't connect to it.
    • I'm trying to create split out some common code from my current mod project into a new library. For dependency management, I'm attempting to use AWS S3 as a Maven repo. I've done this successfully with other projects in the past, but ForgeGradle doesn't seem to like the s3:// URL for my repository. Specifically, it's throwing the following exception when trying to resolve the net.minecraftforge:forge:1.21.1-52.1.0:userdev dependency:   My understanding is that modern versions of Gradle support this use case. Does ForgeGradle not? Is there a way that I can make this work? Thank you for any help you can offer.
    • Codice Sconto Temu 100$ DI SCONTO → [acu639380] per Clienti Esistenti   Ottieni  100$ di sconto con il Codice Promozionale Temu (acu639380) Temu continua a dominare il mondo dell’e-commerce con sconti imbattibili e prodotti di tendenza – e giugno 2025 non fa eccezione. Con il codice sconto Temu (acu639380), puoi ottenere fino a  100$ di sconto, sia che tu sia un nuovo cliente sia che tu stia tornando a fare acquisti. Grazie alla consegna ultra-rapida, spedizione gratuita in 67 paesi e sconti fino al 90%, Temu propone pacchetti esclusivi e codici promozionali imperdibili questo giugno. Ecco come sfruttare al meglio il codice (acu639380) e iniziare subito a risparmiare. Perché Giugno 2025 è il Momento Migliore per Acquistare su Temu Giugno è ricco di offerte a tempo limitato, nuovi arrivi di tendenza e sconti nascosti in tutte le categorie. Dalla moda all’elettronica, dalla bellezza agli articoli per la casa, Temu offre prodotti indispensabili a prezzi imbattibili. Usa il codice (acu639380) per accedere a:  100$ di sconto per nuovi utenti  100$ di sconto per clienti esistenti 40% di sconto extra su categorie selezionate Pacchetto di buoni da  100$ per nuovi e vecchi clienti Regalo di benvenuto gratuito per chi acquista per la prima volta Vantaggi Esclusivi dei Codici Sconto Temu Questi sconti sono pensati per ogni tipo di acquirente. Ottieni il massimo con: Codice Temu (acu639380)  100$ di sconto – Riduci il totale sui tuoi acquisti in blocco Codice Temu per utenti esistenti – Offerte premium riservate ai clienti fedeli Codice Temu per nuovi utenti – Grandi risparmi sul primo ordine Codice Temu 40% di sconto – Perfetto per moda e prodotti stagionali Pacchetto coupon da  100$ Temu – Risparmia su più ordini Coupon per nuovi utenti Temu – Inizia con un regalo + sconto Offerte Localizzate con il Codice Temu (acu639380) Grazie alla presenza globale di Temu, puoi accedere a offerte personalizzate ovunque ti trovi: Codice Temu  100$ di sconto – USA Codice Temu  100$ di sconto – Canada Codice Temu  100$ di sconto – Regno Unito Codice Temu  100$ di sconto – Giappone Codice Temu 40% di sconto – Messico Codice Temu 40% di sconto – Brasile Codice Temu  100$ di sconto – Germania Codice Temu  100$ di sconto – Francia Codice Temu per nuovi utenti – Argentina Coupon Temu per utenti esistenti – Italia Codice promozionale Temu (acu639380) – Spagna, giugno 2025 Cosa Comprare su Temu a Giugno 2025 L’ampio catalogo Temu include migliaia di categorie. Ecco alcuni articoli su cui usare il codice sconto (acu639380): Gadget intelligenti e accessori Moda per tutte le età Decorazioni per la casa e soluzioni salvaspazio Prodotti per il benessere, fitness e bellezza Utensili da cucina e pentolame Articoli per ufficio, giochi e regali La Mia Esperienza Risparmiando  100$ con il Codice Temu (acu639380) Quando ho usato il codice (acu639380) da cliente abituale, ho ricevuto immediatamente  100$ di sconto. Combinandolo con la promozione del 40% e il pacchetto da  100$, ho ottenuto oltre 200 $ di valore per meno di 80 $. Anche tu puoi farlo. Ti basta inserire (acu639380) al checkout, e lo sconto si applica automaticamente – con spedizione gratuita in tutto il mondo inclusa. Altri Sconti Temu per Giugno 2025 Questo mese è pieno di offerte a rotazione, pacchetti a sorpresa e vendite flash giornaliere. Resta aggiornato su: Nuove uscite con il coupon per nuovi utenti Temu Aggiornamenti settimanali dei codici per clienti esistenti Promozioni regionali con il codice (acu639380) per giugno 2025 Conclusione Ovunque ti trovi – in Nord America, Europa o Sud America – il codice Temu (acu639380) è la chiave per risparmiare alla grande. Con offerte per nuovi utenti e clienti fedeli, questo è il momento perfetto per approfittare dei prezzi imbattibili di Temu. Usa il codice acu639380 oggi stesso per ottenere vantaggi esclusivi e trasformare il tuo shopping in un’esperienza smart e conveniente.      
    • Temu  Coupon Code $100 Off [acu639380] For Existing Customers + New Users Unlock Massive Savings with  Temu  Coupon Codes: Save Big with $100 OFF and More!  Temu  is a revolutionary online marketplace that offers a huge collection of trending items at unbeatable prices. Whether you're looking for gadgets, home décor, fashion, or beauty products,  Temu  has something for everyone. By using the  Temu  coupon code $100 OFF → [acu639380] for existing customers, you can unlock incredible discounts, save up to 90%, and even enjoy free shipping to over 67 countries. In this blog, we will explore the latest  Temu  coupon code offerings, including $100 off for new and existing users, a special 40% discount on select items, and the incredible  Temu  coupon bundle. Read on to discover how you can make the most of these discounts and enjoy amazing deals with  Temu  this June! What is  Temu  and Why Should You Shop There?  Temu  is a one-stop online shopping destination that offers a vast selection of products at prices that are hard to beat. Whether you're purchasing for yourself or looking for gifts,  Temu  delivers a wide variety of high-quality products across different categories. From clothing to electronics, home essentials, beauty products, and much more,  Temu  has something for everyone. With its fast delivery, free shipping in over 67 countries, and discounts of up to 90% off, it’s no wonder why shoppers worldwide love this platform. Not only does  Temu  offer competitive prices, but their frequent promotions and coupon codes make shopping even more affordable. In this blog, we’ll focus on how you can save even more with  Temu  coupon codes, including the highly sought-after $100 OFF and 40% OFF codes. The Power of  Temu  Coupon Code $100 OFF → [acu639380] for Existing Customers If you're a  Temu  existing customer, you can unlock a fantastic $100 OFF by using the code [acu639380]. This coupon code provides a generous discount, allowing you to save big on your next purchase, whether it’s electronics, fashion, or home décor. Here’s why you should take advantage of this offer: Flat $100 off: This code gives you a flat $100 discount on your order. Available for Existing Users: If you've shopped with  Temu  before, this coupon code is for you! Unbeatable Deals: Use this coupon in combination with other ongoing sales for even bigger savings. Huge Selection: Apply the code across  Temu ’s massive inventory, from tech gadgets to everyday essentials.  Temu  Coupon Code $100 OFF → [acu639380] for New Users Are you new to  Temu ? You’re in luck!  Temu  has a special $100 off coupon code just for you. By using [acu639380], new users can enjoy a $100 discount on their first purchase. This is an excellent way to try out the platform without breaking the bank. Here’s how to make the most of your  Temu  coupon code as a new user: $100 Off Your First Order: If you’ve never shopped with  Temu  before, the [acu639380] code gets you $100 off your first purchase. Great for First-Time Shoppers: Explore  Temu 's range of trending items while saving money right from the start. Free Gifts: As a new user, you June also receive a special gift with your order as part of the ongoing promotions.  Temu  Coupon Code 40% Off → [acu639380] for Extra Savings Looking for even more savings? The 40% off coupon is an amazing deal that’s available for a limited time. By using the code [acu639380], you can enjoy an extra 40% off on selected items. Whether you're shopping for electronics, home goods, or fashion, this coupon code allows you to grab even better deals on top of existing discounts. 40% Extra Off: This discount can be applied to select categories and items, giving you incredible savings. Stack with Other Offers: Combine it with other promotions for unbeatable prices. Popular Items: Use the 40% off code to save on some of  Temu ’s hottest items of the season.  Temu  Coupon Bundle: Unlock Even More Savings When you use the  Temu  coupon bundle, you get even more benefits.  Temu  offers a $100 coupon bundle, which allows both new and existing users to save even more on a variety of products. Whether you're shopping for yourself or buying gifts for others, this bundle can help you save big. $100 Coupon Bundle: The  Temu  coupon bundle lets you apply multiple discounts at once, ensuring maximum savings. Available to All Users: Whether you’re a first-time shopper or a returning customer, the bundle is available for you to enjoy. Stacked Savings: When combined with other codes like the 40% off or the $100 off, you can save up to 90%.  Temu  Coupon Code June 2025: New Offers and Promotions If you're shopping in June 2025, you're in for a treat!  Temu  is offering a range of new offers and discount codes for the month. Whether you're shopping for electronics, clothing, or home décor, you’ll find discounts that will help you save a ton. Don’t miss out on the  Temu  promo code and  Temu  discount code that are available only for a limited time this month.  Temu  New User Coupon: New users can save up to $100 off their first order with the [acu639380] code.  Temu  Existing User Coupon: Existing users can unlock $100 off using the [acu639380] code.  Temu  Coupon Code for June 2025: Get discounts on select items with up to 40% off this June.  Temu  Coupon Code for Different Countries No matter where you live,  Temu  has something special for you! You can use  Temu  coupon codes tailored to your country to unlock great savings. Here’s a breakdown of how you can apply the [acu639380] coupon code in different regions:  Temu  Coupon Code $100 Off for USA: Use the [acu639380] code in the USA to save $100 off your order.  Temu  Coupon Code $100 Off for Canada: Canadians can enjoy $100 off using the [acu639380] code.  Temu  Coupon Code $100 Off for UK: British shoppers can save $100 with the [acu639380] code.  Temu  Coupon Code $100 Off for Japan: If you’re in Japan, apply the [acu639380] code to get $100 off.  Temu  Coupon Code 40% Off for Mexico: Mexican shoppers can get 40% off with the [acu639380] code.  Temu  Coupon Code 40% Off for Brazil: Brazil residents can save 40% by using the [acu639380] code. Why Shop with  Temu ?  Temu  isn’t just about the discounts; it’s about providing you with an exceptional shopping experience. Here’s why you should choose  Temu  for your next shopping spree: Huge Selection of Trending Items: From the latest tech gadgets to fashion and home essentials,  Temu  offers everything you need at amazing prices. Unbeatable Prices: With  Temu , you can shop for quality items at prices that are hard to match elsewhere. Fast Delivery: Enjoy fast and reliable delivery on all your orders. Free Shipping in Over 67 Countries: No matter where you are,  Temu  ensures you get your products without any extra shipping fees. Up to 90% Off: Take advantage of massive discounts on selected products, so you can get more for less. Conclusion: Maximize Your Savings with  Temu  Coupon Codes If you're looking for incredible deals, there’s no better time to shop at  Temu . With  Temu  coupon code $100 OFF for existing and new users, an extra 40% off, and amazing coupon bundles, there are plenty of ways to save big. Don’t forget to check out the  Temu  promo code for June 2025 and other exciting offers throughout the month. By using [acu639380], you can make the most of your shopping experience and enjoy unbeatable prices on all your favorite products. So, what are you waiting for? Start shopping with  Temu  today, and enjoy massive savings with the $100 off and 40% off coupon codes. Happy shopping!  Temu  Coupon Code Summary:  Temu  Coupon Code $100 Off → [acu639380]: Save $100 on your purchase.  Temu  Coupon Code $100 Off for New Users → [acu639380]: New users can get $100 off.  Temu  Coupon Code $100 Off for Existing Users → [acu639380]: Existing users can save $100.  Temu  Coupon Code 40% Off → [acu639380]: Enjoy 40% off select items.  Temu  Coupon Bundle: Access a $100 coupon bundle for even more savings.  Temu  Promo Code for June 2025: Latest deals for June 2025.  
    • Ultimate Guide to Temu Coupon Code $100 Off [acu639380] – June 2025 Deals Get ready to unlock massive savings with Temu coupon code (acu639380) this June 2025. Whether you're a new or existing user, this exclusive code delivers an incredible Temu coupon $100 off and much more. Temu has rapidly grown into a global favorite, offering unbeatable prices, trending items, free shipping in 67 countries, and discounts of up to 90%. With the Temu coupon for June 2025, you’re in for exclusive deals, exciting bonuses, and incredible bundles that transform the way you shop. Why Temu Is a Shopper’s Paradise Temu boasts a vast and frequently updated catalog, ranging from home essentials to tech gadgets and fashion. This June, Temu's latest offers bring deeper discounts and irresistible incentives for both new and returning users. What sets Temu apart is the blend of value, variety, and verified discounts. Whether you’re shopping for back-to-school supplies, seasonal fashion, or must-have gadgets, Temu has a curated collection just for you. Benefits of Using Temu Coupon Code (acu639380) Take advantage of these powerful benefits when you apply Temu coupon code (acu639380): $100 off for new users $100 off for existing users 40% extra off select products Free gift for new users $100 coupon bundle available to all users Highlighted Offers: Temu Promo Codes and Discounts Temu Coupon Code (acu639380) $100 Off Perfect for big-ticket items. This gives new users a direct $100 discount on their very first order. Temu Coupon Code (acu639380) 40% Off Score an additional 40% off eligible categories—from fashion and electronics to decor and more. Temu $100 Coupon Bundle Get a series of coupons totaling $100 to use across multiple purchases. Great for consistent shoppers looking to save more. Temu First-Time User Coupon Unlock generous discounts and enjoy a free surprise gift when you make your first purchase on Temu. Real Shopping, Real Savings: Why Customers Love Temu Customers don’t just visit Temu—they buy, save, and come back for more. Here’s why: Smart Savings: With coupon code (acu639380), users save up to $100 instantly. Huge Selection: Daily updates bring new trending products in every category. Verified Quality: Positive reviews praise product quality, delivery speed, and easy returns. Stackable Deals: Combine flash sales with Temu discount code (acu639380) for unmatched savings. Regional Benefits: Temu Coupons by Country Temu coupon code $100 off for USA – Use (acu639380) and save big on tech and lifestyle buys. Temu coupon code $100 off for Canada – Ideal for fashion, home, and gadgets. Temu coupon code $100 off for UK – New and existing users benefit in June 2025. Temu coupon code $100 off for Japan – Access regional deals and bundles. Temu coupon code 40% off for Mexico – Get deeper discounts with code (acu639380). Temu coupon code 40% off for Brazil – Slash prices even further on trending products. Temu promo code (acu639380) for June 2025 – Valid worldwide with universal perks. Temu discount code (acu639380) for June 2025 – Makes global shopping even more affordable. Why Use Temu Promo Code (acu639380) in June 2025? This isn’t just a promo code—it’s your gateway to smarter spending. As someone who’s always looking for value, I can tell you that Temu coupon code (acu639380) brings unbeatable deals. Here's what you unlock: Flat $100 off Up to 40% off select categories Exclusive $100 coupon bundle Free gifts for new users Free worldwide shipping What Makes Temu Stand Out? Enormous Catalog: From tech to beauty, thousands of items updated regularly Huge Savings: Prices reduced by up to 90% Fast Delivery: Ships quickly to 67+ countries Global Trust: Popular across North America, South America, Europe, and Asia How to Use Temu Coupon Code (acu639380) Visit Temu.com Browse and add your favorite items to your cart Proceed to checkout Enter acu639380 in the coupon field Confirm your discount and complete your order Explore additional keywords and deals: Temu coupon for June 2025 Temu coupons for new users Temu coupons for existing users Temu promo code (acu639380) for June 2025 Temu new offers in June 2025 Temu coupon code (acu639380) $100 off for new users Temu coupon code (acu639380) $100 off for existing users Temu has revolutionized online shopping with its incredible deals and generous coupons. Don’t miss the chance to apply Temu coupon code (acu639380) this month and make your shopping more rewarding than ever. Stay tuned—more insider deals and coupon secrets are on the way! Top-Ranked Temu Coupon Codes for June 2025 Temu coupon code (acu639380) $100 off for new users – Best overall for first-time shoppers Temu coupon code (acu639380) $100 off for existing users – Big savings for returning customers Temu coupon code (acu639380) 40% off – Great for everyday essentials Temu $100 coupon bundle – Ideal for those making multiple purchases Temu first-time user coupon – Save more and get a free gift Temu promo code (acu639380) for June 2025 – Verified, sitewide discount
  • Topics

×
×
  • Create New...

Important Information

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