From c3fe3530cc269bd73abd49c82ad4fe895aaf97b3 Mon Sep 17 00:00:00 2001 From: Nameless-123 <53367549+Nameless-123@users.noreply.github.com> Date: Fri, 24 Apr 2020 16:29:40 +0200 Subject: [PATCH] Updatd docs --- docs/scarpet/Full.md | 13 +++++++++++++ docs/scarpet/api/Entities.md | 13 +++++++++++++ 2 files changed, 26 insertions(+) diff --git a/docs/scarpet/Full.md b/docs/scarpet/Full.md index 45d8eb9e..0290668a 100644 --- a/docs/scarpet/Full.md +++ b/docs/scarpet/Full.md @@ -2712,6 +2712,19 @@ and `true`. If no duration is specified, or it is null or 0, the effect is remov Sets AI to stay around the home position, within `distance` blocks from it. `distance` defaults to 16 blocks. `null` removes it. _May_ not work fully with mobs that have this AI built in, like Villagers. +### `modify(e, 'gamemode', gamemode?), modify(e, 'gamemode',gamemode_id?)` + +Modifies gamemode of player to whatever string (case-insensitive) or number you put in. + +* 0: survival +* 1: creative +* 2: adventure +* 3: spectator + +### `modify(e, 'jumping', true/false?)` + +Will make the entity constantly jump if set to true, and will stop the entity from jumping if set to false. No current way to make it jump once only. + ## Entity Events There is a number of events that happen to entities that you can attach your own code to in the form of event handlers. diff --git a/docs/scarpet/api/Entities.md b/docs/scarpet/api/Entities.md index 3bd7634f..a6555441 100644 --- a/docs/scarpet/api/Entities.md +++ b/docs/scarpet/api/Entities.md @@ -455,6 +455,19 @@ and `true`. If no duration is specified, or it is null or 0, the effect is remov Sets AI to stay around the home position, within `distance` blocks from it. `distance` defaults to 16 blocks. `null` removes it. _May_ not work fully with mobs that have this AI built in, like Villagers. +### `modify(e, 'gamemode', gamemode?), modify(e, 'gamemode',gamemode_id?)` + +Modifies gamemode of player to whatever string (case-insensitive) or number you put in. + +* 0: survival +* 1: creative +* 2: adventure +* 3: spectator + +### `modify(e, 'jumping', true/false?)` + +Will make the entity constantly jump if set to true, and will stop the entity from jumping if set to false. No current way to make it jump once only. + ## Entity Events There is a number of events that happen to entities that you can attach your own code to in the form of event handlers.