Bitshift

Addon Bitshift 1.0.0

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

Supported Minecraft Versions
  1. 1.13
  2. 1.14
  3. 1.15
  4. 1.16
  5. 1.17
  6. 1.18
  7. 1.19
BitShift
Skript addon for more operators.

Requirements:

Syntax:
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
Bitwise Operators
Code:
%number% & %number% - Bitwise AND
%number% | %number% - Bitwise inclusive OR
%number% ^^ %number% - Bitwise exclusive OR
~%number% - Unary bitwise complement
Shift Operators
Code:
%number% << %number% - Signed left shift
%number% >> %number% - Signed right shift
%number% >>> %number% - Unsigned right shift
Unary Operators
Code:
!%boolean% - Inverts the value of a boolean
Bitshift also supports hexadecimal and binary number formats.
Code:
set {_result} to 0xFF - 0xAA
set {_result} to 0b1100 | 0b0011

GitHub repository for reporting issues here, happy Skripting! ♥
Author
pesekjan
Downloads
304
Views
611
First release
Last update
Rating
5.00 star(s) 2 ratings

More resources from pesekjan

Latest reviews

Something that is missing in the standard Skript. And a message to the reviewer before me - binary operations are possible with Skript-reflect, but trust me - it's not worth it :D. Great addon for Skript.
Finally binary operators something i was truely missing. Esspecialy because it whas not possible to do with reflect.
pesekjan
pesekjan
Thanks! :)