Jump to content
Search In
  • More options...
Find results that contain...
Find results in...


  • Content Count

  • Joined

  • Last visited

Community Reputation

2 Neutral

About Skyriis

  • Rank
    Stone Miner


  • Gender
  • Location

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Do you mean that pull request? https://github.com/MinecraftForge/MinecraftForge/pull/6858
  2. So i would have to manage the whole pose control using the player tick events if i want to prevent using mixin. Is that correct?
  3. I tried using the setForcePose method within the PlayerTickEvent (set the pose on pre tick event and remove the pose on post tick event) but somehow it's bugging between both poses. I guess the source of my problem is that Entity.getBoundingBoxForPose returns a bounding box for the default EntityType.PLAYER which is not what i need since i'm resizing the player inside of the EntityEvent.Size event. #Entity.class public EntitySize getDimensions(Pose p_213305_1_) { return this.type.getDimensions(); } protected AxisAlignedBB getBoundingBoxForPose(Pose p_213321_1_) {
  4. @Mixin(Entity.class) public abstract class MixinEntity { @Shadow public abstract EntityType<?> getType(); @Shadow public World level; @Shadow public abstract int getId(); @Inject(method = "getBoundingBoxForPose", at = @At(value = "INVOKE_ASSIGN", target = "Lnet/minecraft/entity/Entity;getDimensions(Lnet/minecraft/entity/Pose;)Lnet/minecraft/entity/EntitySize;"), cancellable = true) private void getBoundingBoxForPose(Pose pose, CallbackInfoReturnable<AxisAlignedBB> cir) { if (!this.getType().equals(EntityType.PLAYER)) return; Entity
  5. Hi, i wrote a mod which can grow and shrink the player but if the player is shrinked they crawl if they are inside a 1 block gap or if they jump inside a 2 block gap. How can i prevent them from doing that? I tried using the EntityEvent.Size and check if the event.getPose is Swimming (since this is the pose the player is using while crawling) but the entity isn't inside water. But it doesn't seems to work. Any ideas?
  6. I tried new Thread(() -> { while (ClientModLoader.isLoading()) { try { TimeUnit.SECONDS.sleep(1); } catch (InterruptedException e) { e.printStackTrace(); } } Minecraft.getInstance().enqueue(() -> SyncHandler.applyKeybindings()); }).start(); and it would "work" but since GameSettings is not threadsafe it would be a bad idea to use this correct?
  7. I could also start a new Thread at FMLClientSetupEvent which could wait for the loadup and instandly apply the Keybindings but i'm not sure if that would be a good way since the new Thread would have to check ClientModLoader.isLoading until it's false...
  8. The loaded Keybindings only should be applied to the running instance at startup (or exactly after startup). The Goal is to make a Mod which sets your favorite keybinds on the first load and sync changed (favorite) keybinds to other instances so you don't have to set them manually anymore.
  9. The GameSettings.setKeyBindingCode() Method should call the saveOptions() Method which should save the Keybindings to the options.txt file. But the Keybindings only apply if there is no options.txt before startup. If the options.txt has been generated, the loaded Keybindings don't apply to the started instance anymore. Even if i load the options.txt again using the loadOptions() Method, the Keybinds won't be there. Edit: i guess the if (net.minecraftforge.fml.client.ClientModLoader.isLoading()) return; part inside of the saveOptions() chould be the
  10. I'm trying to load already changed keybindings from other Profiles to the current instance so the keybindings are already set if you start playing. This only applies to keybindings which where marked in the original Profile and should sync to other Profiles.
  11. Hi Guys, i'm trying to change the input key of a keybinding if the keybinding is contained by a HashMap (which also contains the new input key). Here is what i'm calling at the FMLClientSetupEvent. KeyBinding[] keyBindings = Minecraft.getInstance().gameSettings.keyBindings.clone(); for (KeyBinding keyBinding : keyBindings) { if (SyncedKeyBindings.containsKey(keyBinding.getKeyDescription())) { KeyData data = SyncedKeyBindings.get(keyBinding.getKeyDescription()); keyBinding.setKeyModifierAndCode(data.getModifier(),
  12. I more or less found the problem. There is a event listender on the left side of the screen which was blocking the button. I just moved the button to another place because i could not find the listender. Now everything works like it should.
  13. Now the added Button (btnSyncToCloud) isn't clickable but hoverable. All other buttons are clickable and work how the should. Changed KeyBindingListReplacement.KeyEntry.class @OnlyIn(Dist.CLIENT) public class KeyEntryReplacement extends KeyBindingList.Entry { /** * The keybinding specified for this KeyEntry */ private final KeyBinding keybinding; /** * The localized key description for this KeyEntry */ private final ITextComponent keyDesc; private final Button btnChangeKeyBinding; priva
  14. I'll work on that Thanks. I'll remove those lines.
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.