Welcome on MasterOf13FPS! MasterOf13FPS

Register today or sign up if you are already a member and never miss any cool content again :)

AutoBlock - Killaura

MasterOf13FPS

Administrator
Staff member
Administrator
MasterOf13FPS
Joined
Jul 11, 2020
Messages
0
Reaction score
25
Points
0
Hallo,

ich habe eine AutoBlock-Funktion in meiner Aura, allerdings wird es nicht als blockhit animiert obwohl ich das im ItemRenderer umgestellt habe.

Mein AutoBlock:
Code:
if(this.autoblock) {
  if(mc.thePlayer.getHeldItem() != null){
mc.thePlayer.ItemInUse = mc.thePlayer.getHeldItem() ;
}
}
 
In EntityPlayerSP gab es eine Methode, welche setItemInUse (oder anders, hängt von den Mappings ab) hieß, das sollte funktionieren.
 
@ImFrozen_ ich habs versucht es block aber es ist immernoch eine Krüppel Animation und nicht die die ich eingebaut habe. Die die ich eingebaut habe wird nur animiert wenn ich manuuell blocke
 
I'd improve it by adding getItemHeld().getItem instanceof ItemSword
so it doesn't block anything that isn't a sword.
 
shape1
shape2
shape3
shape4
shape5
shape6
Back
Top