[1.12.2] Unsure of how to create colour overlay for block.
-
Recently Browsing
- No registered users viewing this page.
-
Posts
-
By GrimmsHollow · Posted
Its not open and i checked task manager i tried restarting and it still doesnt work same error? -
Thanks, this helped! I feel stupid because it was so easy
-
https://imgur.com/a/OlKHubc
-
This is the correct signature for an event. public static void setHeadacheWhenPlayerMountingOnBoat(EntityMountEvent event) { Not just players can mount boats. Many people use them for transporting animals or villagers. You need to check the entity mounting the boat is a player. You also need to check it is actually a boat being mounted. Entity passenger = event.getEntityMounting(); Entity vehicle = event.getEntityBeingMounted(); if (event.isMounting() && vehicle instanceof Boat && passenger instanceof Player player) { player.addEffect(new MobEffectInstance(KCEffect.HEADACHE.get(), 400)); } Why did you not share this error? Do you think we have psychic powers? 🙂
-
That has nothing to do with the item durability. It's the player's arm swinging when you use an item. 🙂 I think you can change this by subscribing to InputEvent.InteractionKeyMappingTriggered Then use something like (untested pseudo code) ItemStack itemStack = Minecraft.getInstance().player.getItemInHand(event.getHand()); if (itemStack.is(YOUR_ITEM.get())) { event.setSwingHand(false); }
-
-
Topics
Recommended Posts
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.