How do you damage yourself?
-
@plumer-man said in How do you damage yourself?:
var C04PacketPlayerPosition = Java.type("net.minecraft.network.play.client.C03PacketPlayer.C04PacketPlayerPosition")
okay
-
@plumer-man is there another way to increase your speed that doesn't flag as much as strafe?
-
@plumer-man vulcan
-
@plumer-man hycraft's vulcan though
-
@plumer-man I have another question because im making settings for a module and fsr the settings won't register with the module when you change them. Im pretty sure module.settings.(setting).get() will be the settings value, but this is not working for me.
-
@xunder you need to add the settings to the module not just make them
like this
this.addValues = function(values) { values.add(cmode); values.add(pulsehue); values.add(indexmultiplier); values.add(cduration); values.add(arrayspace); };
-
@plumer-man that code only applies to scriptapi v1 smh
-
@plumer-man I did but its not working
-
@xunder fixed your script, its working now
-
i forgot to add the ; to some lines but meh
-
@suicidemouse33 thx
-
@suicidemouse33 I don't really understand tho when I change parts of the script the settings die again and changing the values does nothing
-
@suicidemouse33 like they don't work
-
Example script
/// api_version=2 var script = registerScript({ name: "ExapmleScript", version: "1.0", authors: ["As丶One"] }); script.on("enable", function () {}); script.on("disable", function () {}); script.on("load", function () {}); script.registerModule({ name: "ExapmleModule", description: "ExapmleModule By As丶One", category: "Fun", tag: "I am a tag", settings: { Boolean: Setting.boolean({ name: "BooleanValue", default: true }), Integer: Setting.integer({ name: "IntegerValue", default: 5, min: 0, max: 10 }), Float: Setting.float({ name: "FloatValue", default: 3.24, min: 0.01, max: 6.25 }), Text: Setting.text({ name: "TextValue", default: "TextValue" }), Block: Setting.block({ name: "BlockValue", default: 26 }), List: Setting.list({ name: "ListValue", values: ["Hi", "Hello"], default: "Hello" }) } }, function (module) { module.on("enable", function () { module.settings.Text.set("Hi,I am enabled") module.tag = "Enabled" chat.print(module.settings.Text.get()) }); module.on("disable", function () { module.settings.Text.set("Hi,I am disabled") module.tag = "Disabled" chat.print(module.settings.Text.get()) }); module.on("update", function () {}); module.on("motion", function (event) { var eventState = event.getEventState() }); module.on("render2D", function (event) { var partialTicks = event.getPartialTicks() }); module.on("render3D", function (event) { var partialTicks = event.getPartialTicks() }); module.on("packet", function (event) { //event.cancelEvent() //event.isCancelled() var packet = event.getPacket() }); module.on("jump", function (event) { /* event.cancelEvent() event.isCancelled() var motion = event.getMotion() event.setMotion(0.42) */ }); module.on("attack", function (event) { var targetEntity = event.getTargetEntity() }); module.on("key", function (event) { var pressedKey = event.getKey() }); module.on("move", function (event) { /* var x = event.getX() var y = event.getY() var z = event.getZ() var isSafeWalk = event.isSafeWalk() event.setX(0) event.setY(0) event.setZ(0) event.setSafeWalk(true) event.zero() event.zeroXZ() event.cancelEvent() */ }); module.on("step", function (event) { var stepHeight = event.getStepHeight() }); module.on("stepConfirm", function () {}); module.on("world", function (event) { var worldClient = event.getWorldClient() }); module.on("session", function (event) {}); module.on("clickBlock", function (event) { var clickedBlock = event.getClickedBlock(); var enumFacing = event.getEnumFacing() }); module.on("strafe", function (event) { var strafe = event.getStrafe(); var forward = event.getForward(); var friction = event.getFriction(); //event.cancelEvent() }); module.on("slowDown", function (event) { var strafe = event.getStrafe(); var forward = event.getForward(); //event.setForward(1); //event.setStrafe(1); }); });