Skip to content

Commit

Permalink
Update feature/registration-rework branch nightly docs to SkriptLang/…
Browse files Browse the repository at this point in the history
  • Loading branch information
Nightly Docs Bot committed Nov 27, 2024
1 parent 6428dab commit c42cde7
Show file tree
Hide file tree
Showing 13 changed files with 162 additions and 79 deletions.
2 changes: 1 addition & 1 deletion docs/nightly/feature/registration-rework/classes.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/nightly/feature/registration-rework/conditions.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/nightly/feature/registration-rework/docs.html

Large diffs are not rendered by default.

215 changes: 149 additions & 66 deletions docs/nightly/feature/registration-rework/docs.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"skriptVersion": "2.9.4-nightly-8a69e33",
"skriptVersion": "2.9.4-nightly-ea854db",
"conditions": [
{
"id": "CondAlphanumeric-2",
Expand Down Expand Up @@ -773,6 +773,25 @@
"%displays%'[s] text (doesn't|does not|do not|don't) have [a] (drop|text) shadow"
]
},
{
"id": "CondIsPressingKey-2",
"name": "Is Pressing Key",
"since": "INSERT VERSION",
"description": [
"Checks if a player is pressing a certain input key."
],
"examples": [
"on player input:",
"\tif player is pressing forward movement key:",
"\t\tsend \"You are moving forward!\""
],
"patterns": [
"%players% (is|are) pressing %inputkeys%",
"%players% (isn't|is not|aren't|are not) pressing %inputkeys%",
"%players% (was|were) pressing %inputkeys%",
"%players% (wasn't|was not|weren't|were not) pressing %inputkeys%"
]
},
{
"id": "CondCanBuild-2",
"name": "Can Build",
Expand Down Expand Up @@ -1932,22 +1951,6 @@
"%locations% (isn't|is not|aren't|are not) within %number% (block|metre|meter)[s] (around|of) %locations%"
]
},
{
"id": "CondTextDisplaySeeThroughBlocks-2",
"name": "Text Display Visible Through Blocks",
"since": "INSERT VERSION",
"description": [
"Returns whether text displays can be seen through blocks or not."
],
"examples": [
"if last spawned text display is visible through walls:",
"\tprevent last spawned text display from being visible through walls"
],
"patterns": [
"%displays% (is|are) visible through (blocks|walls)",
"%displays% (isn't|is not|aren't|are not) visible through (blocks|walls)"
]
},
{
"id": "CondCanAge-2",
"name": "Can Age",
Expand Down Expand Up @@ -2033,6 +2036,22 @@
"%livingentities% (isn't|is not|aren't|are not) in lov(e|ing) [state|mode]"
]
},
{
"id": "CondTextDisplaySeeThroughBlocks-2",
"name": "Text Display Visible Through Blocks",
"since": "INSERT VERSION",
"description": [
"Returns whether text displays can be seen through blocks or not."
],
"examples": [
"if last spawned text display is visible through walls:",
"\tprevent last spawned text display from being visible through walls"
],
"patterns": [
"%displays% (is|are) visible through (blocks|walls)",
"%displays% (isn't|is not|aren't|are not) visible through (blocks|walls)"
]
},
{
"id": "CondCompare-2",
"name": "Comparison",
Expand Down Expand Up @@ -3783,42 +3802,6 @@
"rotate %quaternions/displays% by x %number%, y %number%(, [and]| and) z %number%"
]
},
{
"id": "EffTextDisplayDropShadow-2",
"name": "Text Display Drop Shadow",
"since": "INSERT VERSION",
"description": [
"Applies or removes drop shadow from the displayed text on a text display."
],
"examples": [
"apply drop shadow to last spawned text display",
"if {_display} has drop shadow:",
"\tremove drop shadow from the text of {_display}"
],
"patterns": [
"(apply|add) (drop|text) shadow to [[the] text of] %displays%",
"(apply|add) (drop|text) shadow to %displays%'[s] text",
"(remove|clear) (drop|text) shadow from [[the] text of] %displays%",
"(remove|clear) (drop|text) shadow from %displays%'[s] text"
]
},
{
"id": "EffTextDisplaySeeThroughBlocks-2",
"name": "Text Display See Through Blocks",
"since": "INSERT VERSION",
"description": [
"Forces a text display to either be or not be visible through blocks."
],
"examples": [
"force last spawned text display to be visible through walls",
"prevent all text displays from being visible through walls"
],
"patterns": [
"make %displays% visible through (blocks|walls)",
"force %displays% to be visible through (blocks|walls)",
"(prevent|block) %displays% from being (visible|seen) through (blocks|walls)"
]
},
{
"id": "EffAllowAging-2",
"name": "Allow Aging",
Expand Down Expand Up @@ -3873,6 +3856,42 @@
"make %livingentities% [a[n]] (adult|:baby)",
"force %livingentities% to be[come] a[n] (adult|:baby)"
]
},
{
"id": "EffTextDisplayDropShadow-2",
"name": "Text Display Drop Shadow",
"since": "INSERT VERSION",
"description": [
"Applies or removes drop shadow from the displayed text on a text display."
],
"examples": [
"apply drop shadow to last spawned text display",
"if {_display} has drop shadow:",
"\tremove drop shadow from the text of {_display}"
],
"patterns": [
"(apply|add) (drop|text) shadow to [[the] text of] %displays%",
"(apply|add) (drop|text) shadow to %displays%'[s] text",
"(remove|clear) (drop|text) shadow from [[the] text of] %displays%",
"(remove|clear) (drop|text) shadow from %displays%'[s] text"
]
},
{
"id": "EffTextDisplaySeeThroughBlocks-2",
"name": "Text Display See Through Blocks",
"since": "INSERT VERSION",
"description": [
"Forces a text display to either be or not be visible through blocks."
],
"examples": [
"force last spawned text display to be visible through walls",
"prevent all text displays from being visible through walls"
],
"patterns": [
"make %displays% visible through (blocks|walls)",
"force %displays% to be visible through (blocks|walls)",
"(prevent|block) %displays% from being (visible|seen) through (blocks|walls)"
]
}
],
"expressions": [
Expand Down Expand Up @@ -6811,6 +6830,23 @@
"%inventories%'[s] anvil [inventory] (rename|text) input"
]
},
{
"id": "ExprARGB-2",
"name": "Alpha/Red/Green/Blue Color Value",
"since": "INSERT VERSION",
"description": [
"The alpha, red, green, or blue value of colors. Ranges from 0 to 255.",
"Alpha represents opacity."
],
"examples": [
"broadcast red value of rgb(100, 0, 50) # sends '100'",
"set {_red} to red's red value + 10"
],
"patterns": [
"[the] (:alpha|:red|:green|:blue) (value|component) of %colors%",
"%colors%'[s] (:alpha|:red|:green|:blue) (value|component)"
]
},
{
"id": "ExprArmorSlot-2",
"name": "Armour Slot",
Expand Down Expand Up @@ -8334,16 +8370,20 @@
{
"id": "ExprMaxStack-2",
"name": "Maximum Stack Size",
"since": "2.1",
"since": "2.1, INSERT VERSION (changeable, inventories)",
"description": [
"The maximum stack size of the specified material, e.g. 64 for torches, 16 for buckets, and 1 for swords."
"The maximum stack size of an item (e.g. 64 for torches, 16 for buckets, 1 for swords, etc.) or inventory.",
"In 1.20.5+, the maximum stack size of items can be changed to any integer from 1 to 99, and stacked up to the maximum stack size of the inventory they're in."
],
"examples": [
"send \"You can only pick up %max stack size of player's tool% of %type of (player's tool)%\" to player"
"send \"You can hold %max stack size of player's tool% of %type of player's tool% in a slot.\" to player",
"set the maximum stack size of inventory of all players to 16",
"add 8 to the maximum stack size of player's tool",
"reset the maximum stack size of {_gui}"
],
"patterns": [
"[the] max[imum] stack[[ ]size] of %itemtype%",
"%itemtype%'[s] max[imum] stack[[ ]size]"
"[the] max[imum] stack[[ ]size] of %itemtypes/inventories%",
"%itemtypes/inventories%'[s] max[imum] stack[[ ]size]"
]
},
{
Expand Down Expand Up @@ -9685,6 +9725,23 @@
"%displays%'[s] text[s]"
]
},
{
"id": "ExprLoveTime-2",
"name": "Love Time",
"since": "INSERT VERSION",
"description": [
"The amount of time the animals have been in love for. Using a value of 30 seconds is equivalent to using an item to breed them.",
"Only works on animals that can be bred and returns '0 seconds' for animals that can't be bred."
],
"examples": [
"on right click:",
"\tsend \"%event-entity% has been in love for %love time of event-entity% more than you!\" to player"
],
"patterns": [
"[the] love[d] time of %livingentities%",
"%livingentities%'[s] love[d] time"
]
},
{
"id": "ExprDisplayBillboard-2",
"name": "Display Billboard",
Expand Down Expand Up @@ -9921,20 +9978,18 @@
]
},
{
"id": "ExprLoveTime-2",
"name": "Love Time",
"id": "ExprCurrentInputKeys-2",
"name": "Player Input Keys",
"since": "INSERT VERSION",
"description": [
"The amount of time the animals have been in love for. Using a value of 30 seconds is equivalent to using an item to breed them.",
"Only works on animals that can be bred and returns '0 seconds' for animals that can't be bred."
"Get the current input keys of a player."
],
"examples": [
"on right click:",
"\tsend \"%event-entity% has been in love for %love time of event-entity% more than you!\" to player"
"broadcast \"%player% is pressing %current input keys of player%\""
],
"patterns": [
"[the] love[d] time of %livingentities%",
"%livingentities%'[s] love[d] time"
"[the] [current] (inputs|input keys) of %players%",
"%players%'[s] [current] (inputs|input keys)"
]
},
{
Expand Down Expand Up @@ -12696,6 +12751,23 @@
"[entity] love mode [enter]"
]
},
{
"id": "player_input-2",
"name": "On Player Input",
"since": "INSERT VERSION",
"description": [
"Called when a player sends an updated input to the server.",
"Note: The input keys event value is the set of keys the player is currently pressing, not the keys that were pressed or released."
],
"examples": [
"on any input key press:",
"\tsend \"You are pressing: %event-inputkeys%\" to player"
],
"patterns": [
"[player] (toggle|toggling|1:press[ing]|2:release|2:releasing) of (%-inputkeys%|(an|any) input key)",
"([player] %-inputkeys%|[an|any [player]] input key) (toggle|toggling|1:press[ing]|2:release|2:releasing)"
]
},
{
"id": "region_enterleave-2",
"name": "On Region Enter/Leave",
Expand Down Expand Up @@ -13461,6 +13533,17 @@
"first person left handed, left handed in first person, right handed in third person, first person left hand, no transform, the ground, third person right hand, third person right handed, right handed in first person, menu, head, third person left hand, first person right handed, first person right hand, fixed position, left handed in third person, gui, ground, fixed, third person left handed"
]
},
{
"id": "inputkey",
"name": "Input Key",
"since": "INSERT VERSION",
"description": [
"Represents a movement input key that is pressed by a player."
],
"patterns": [
"left movement key, forward movement key, right movement key, backward key, left key, sprint key, forward key, right key, jumping key, sneaking key, jump key, sneak key, sprinting key, backward movement key"
]
},
{
"id": "money",
"name": "Money",
Expand Down
2 changes: 1 addition & 1 deletion docs/nightly/feature/registration-rework/effects.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/nightly/feature/registration-rework/events.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/nightly/feature/registration-rework/expressions.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/nightly/feature/registration-rework/functions.html

Large diffs are not rendered by default.

Loading

0 comments on commit c42cde7

Please sign in to comment.