no push (code)
-
If it's not troublesome, i need code for NoPush
-
-
@testnewtime depends on what you mean. Maybe velocity?
if so
//requires core onPacket: function(e) { if (e.getPacket() instanceof S12PacketEntityVelocity) e.cancelEvent(); }
But since that is already in liquidbounce I assume that you mean the push-away you get when you collide with an entity hitbox in mc-1.9+
-
@faaatpotato 1) Blocks, 2) Water, 3) Entity
-
@testnewtime In that case you need to use
PushOutEvent
that isn't available normally, but Core can make it usable using itsArtificial Eventsâ„¢
system .///api_version=2 (script = registerScript({ name: "NoPush", version: "1.0", authors: ["CzechHek"] })).import("Core.lib"); module = { onPushOut: function (e) { e.cancelEvent(); } }
(this event has no other properties and only extends cancellable event)
or you can just skid the implementation of that event if you can understand how it works in Core