-
Notifications
You must be signed in to change notification settings - Fork 0
Home
SFort edited this page Sep 10, 2022
·
15 revisions
This mod uses scripting on top of a standard config system to allow for insane levels of customazation
While the normal config file is not extensive it should still be looked at, as it contains important features
Possibly a simpler explanation
normal configs: config/SurvivalFlight/general.conf
scripting files:
config/SurvivalFlight/creative_flight.script
config/SurvivalFlight/elytra_flight.script
config/SurvivalFlight/elytra_boost.script
Note that any spacing used in the script is removed when loading so feel free to spam space or not
(also the available conditions on the wiki are slightly outdated and don't include any embedable info for now using the ui is advised)
Syntax | Operation |
---|---|
!Condition:value | NOT |
(Condition; Condition:value; ..) | OR |
[Condition; Condition:value; ..] | AND |
{Condition; Condition:value; ..} | XOR |
Key | Description | Value |
---|---|---|
level | Minimum required player level | int |
age | Minimum ticks the player must have existed | int |
armor | Minimum required armor | int |
max_air | Minimum required max air | int |
air | Minimum required air | int |
stinger_count | Minimum amount of stingers | int |
stuck_arrow_count | Minimum amount of arrows stuck in entity | int |
air | Minimum required air | int |
frozen_ticks | Minimum ticks the entity must have been freezing for | int |
hand | Require item in main hand | ItemID |
offhand | Require item in off hand | ItemID |
helm | Require item as helmet | ItemID |
chest | Require item as chestplate | ItemID |
legs | Require item as leggings | ItemID |
boots | Require item as boots | ItemID |
advancement | Require advancement unlocked | AdvancementID |
dimension | Require being in dimension: overworld, the_nether, the_end | DimensionID |
effect | Require potion effect | EffectID |
biome | Require player in biome | BiomeID |
precipitation | Require player in biome with either: rain, snow, none (snow might be buggy) | BiomePrecipitationID |
catagory | Require player in biome catagorized as | BiomeCatagoryID |
in_block | Require being in specified block | BlockID |
food | Minimum required food | float |
health | Minimum required heath | float |
attack | Minimum ticked passed since player attacked | float |
attacked | Minimum ticks passed since player was attacked | float |
tempeture | Require player to be in biome warmer then this | float |
local_difficulty | Minimum required regional/local difficulty | float |
movement_speed | Require going at this speed | float |
sideways_speed | Require going sideways at this speed | float |
forward_speed | Require going forward at this speed | float |
upward_speed | Require going up at this speed | float |
max_health | Minimum required max heath | float |
respawn_distance | Require player to be nearby their respawn (usually a bed) | double |
x | Minimum required player y height | double |
y | Minimum required player y height | double |
z | Minimum required player y height | double |
inhabited | Minimum time players have loaded the chunk in ticks | long |
full_hp | Require full health | |
sprinting | Require Sprinting | |
blocking | Require Blocking | |
in_lava | Require being in lava | |
on_fire | Require being on fire | |
using | Require using items | |
wet | Require being wet | |
beacon | Require active beacon nerby | |
dim_natural | Require natural dimension | |
dim_ultrawarn | Require ultra warm dimension | |
dim_piglin_safe | Require piglin safe dimension | |
dim_does_bed_work | Require dimension where beds don't blow | |
dim_does_anchor_work | Require dimension where respawn anchors work | |
is_thundering | Require thunder | |
is_raining | Require rain | |
is_day | Require daytime | |
fire_immune | Require being immune to fire | |
freezing | Require to be freezing | |
glowing | Require to be glowing | |
explosion_immune | Require being immune to explosions | |
invisible | Require being invisible | |
is_touching_water_or_rain | Require touching water or rain | |
is_block_breaking_restricted | Require player gamemode to prevent breaking blocks | |
is_touching_water | Require touching water | |
is_survival_like | Require player gamemode to be survival or adventure | |
full_air | Require having full air | |
has_player_rider | Require being a vehicle to a player | |
is_inside_wall | Requite being inside a solid block | |
is_silent | Require being silent | |
is_submerged_in_water | Require being submerged in water | |
has_no_gravity | Require having no gravity | |
has_passengers | Require being a vehicle | |
true | ||
false |
on_fire
hand:minecraft:feather
(hand:minecraft:feather; offhand:minecraft:feather)
!(hand:minecraft:feather; offhand:minecraft:feather)
[[helm:empty;chest:empty;legs:empty;boots:empty]; !y:65]
- wear a creeper or dragon head
- wear a elytra or netherite chestplate
- wear any leggings
- wear no boots
- have gone to the end
- drink a strength potion
- be near a beacon
[
(helm:minecraft:creeper_head;helm:minecraft:dragon_head);
(
chest: elytra;
chest: minecraft:netherite_chestplate
);
!legs: empty;
boots: empty;
effect: strength;
advancement: end/root;
beacon
]
- require sharpness enchantment in hand
~hand:enchant:sharpness
- require iron sword with sharpness enchantment in hand
~hand:[enchant:sharpness; item:iron_sword]
- require iron sword or sharpness enchantment or dirt in hand
~hand:(enchant:sharpness; item:iron_sword; item:dirt)