- Supported Minecraft Versions
- 1.13
- 1.14
- 1.15
- 1.16
- 1.17
- 1.18
- 1.19
BitShift
Skript addon for more operators.
Skript addon for more operators.
Requirements:
- Skript (2.6+)
Conditions
Code:
<condition> && <condition> - Conditional-AND operator
<condition> || <condition> - Conditional-OR operator
!<condition> - Inverts the result of a condition
%booleans%? - Checks if all booleans are true
Code:
%number% & %number% - Bitwise AND
%number% | %number% - Bitwise inclusive OR
%number% ^^ %number% - Bitwise exclusive OR
~%number% - Unary bitwise complement
Code:
%number% << %number% - Signed left shift
%number% >> %number% - Signed right shift
%number% >>> %number% - Unsigned right shift
Code:
!%boolean% - Inverts the value of a boolean
Code:
set {_result} to 0xFF - 0xAA
set {_result} to 0b1100 | 0b0011
GitHub repository for reporting issues here, happy Skripting! ♥