- check_circle Advancements
- check_circle Functions
- check_circle Loot Tables
- check_circle Predicates
- 3,376 views, 1 today
- 120 downloads, 0 today
53
fafik77 main.Lib
Also connects my mods with my datapacks:
Data Command Plus (mod by fafik77) server side mod to make some commands more performant
Events
Events fired: for more details open up ".zip/data/fafik77/tags/functions/fafik77_main"
Event/ | |
player_changed_name migrate_player | player joined with new user name (but is not a new player) |
player_new | new player joined |
player_log_in | player logged in |
player_died | player died |
player_avoided_death used_totem | player used a totem to escape death |
player_respawned | player respawned after death |
player_data player_data_off player_data_any | (each tick for each player) iterates data storage to access this players data (use Data Command Plus to increase performace) |
world_spawn_changed | /setworldspawn command was used |
inventory_manager/ | |
slot | hook into inventory_manager |
personal_upgrade_manager/ | |
add_item | add effects of the item to player |
add_item-finish | all items have been added |
add_item-start | |
remove_echest_tags | player stepped away from ender chest (when editing items) |
remove_item | remove single item |
remove_items | remove all items |
./ | |
load | after fafik77 main Lib/load |
tick | after fafik77 main Lib/tick |
print_installed print_installed_adds | register a datapack, that reports its existance only when admin chooses to see this list |
print_installed-main |
Functions
Usable functions: for more details open up ".zipdatafafik77functionsfafik77_main"
inventory_manager/
swap_mainhand_slot | swap old mainhand slot with new mainhand slot |
replace/all | merges new inventory onto old one |
restore/overlapping_give | restores items twat were overwritten by replace/all |
Usage
".zip/-auto/inventory_manager/data structure and usage.json"
- /data remove storage minecraft:fafik77 Data.InventoryManager
- set storage minecraft:fafik77 Data.InventoryManager.old.Inventory from entity @s Inventory
- set storage minecraft:fafik77 Data.InventoryManager.new.Inventory value [{ new player inventory items array }]
- run /function fafik77:fafik77_main/inventory_manager/main_calc
- /function fafik77:fafik77_main/inventory_manager/replace/ OPTION
- ** /function fafik77:fafik77_main/inventory_manager/restore/overlapping_ METHOD
- /data remove storage minecraft:fafik77 Data.InventoryManager
json_parser/
rng/
for minecraft 1.20.2+ use the /random command, or use loot table to set item count
shulkers/
villager_recipe-table_parser/
Tags & Data
Usefull tags and data
Tags | |
f77_main_alive | player is alive now |
f77_main_newPlayerT | new player joined in this tick (connect to #fafik77:fafik77_main/tick) |
fafik77_player_log_in | player joined in this tick (connect to #fafik77:fafik77_main/tick) |
Scores | |
f77_playerId | stores each player their id |
_VersionMainLib f77_main_TMP | version of fafik77 main lib, in format yyyyMMdd |
_mcVersion f77_main_TMP | (1).20.4 = 2004 |
Data Storage | |
storage minecraft:fafik77 Data.current_player[-1] storageplayer $s (Data Command Plus) | stores each player data |
!!! pack modifies "loot_table/blocks"
- shulker_box its the only way to give modified items back to player (where they belong) pre 1.18?
- child advacements are placed under this tab (a child can NOT exist without its parent root)
Compatibility | Minecraft 1.15 |
to | Minecraft 1.20 |
Tags |
9 Update Logs
v2022-04-30 : by fafik77 04/30/2022 3:21:27 pmApr 30th, 2022
updated to support 1.18
LOAD MORE LOGS
4533489
119
Create an account or sign in to comment.
and perhaps you did read "shulker" instead of "shulker_box" which is the pocked chest and not the alive Monster