• • 4/30/22 3:21 pm • 10 logs
- 3.7k views • 0 today
- save_alt 123 downloads
- Compatibility
- Minecraft 1.15
- to version
- Minecraft 1.21
- Changes include
- Advancements
- Functions
- Loot Tables
- Predicates
54
fafik77 main.Lib 2
Also connects my mods with my datapacks:
Data Command Plus (mod by fafik77) server side mod to make some commands more performant
/reload
executing /reloadwill show a single line of interactive text
Reloading !
fafik77 DataPacks installed List 7 Config
if datapack is configurable its name in the List will be clickable
fafik77 DataPacks installed List 7 Config
| List | 7 | Config |
| Click: Lists all fafik77 datapacks,shows the current version of "fafik77 main.Lib" and Resource Pack in viewed language en_us. | Shows how many fafik77 datapacks have been reported | Click: Lists all datapacks that are configurable |
Joining the world
When a player joins the world
if they join for the first time "event/player_new" will notify all listeners of that, and a new player id will be assigned to them.
also by default everytime they join:
ResourcePack fafik77 LanguagePack date: 2024-09-11 (1)
will be shown, with the obvious date of the resource pack.
the mysterious (1) is the player id, if you know it its much easier to use eg. Tpr Tpa
also by default everytime they join:
ResourcePack fafik77 LanguagePack date: 2024-09-11 (1)
will be shown, with the obvious date of the resource pack.
the mysterious (1) is the player id, if you know it its much easier to use eg. Tpr Tpa
Events
Events fired: for more details open up ".zip/data/fafik77/tags/functions/fafik77_main"
Event/ | |
| awaits_player | any player joined the game to show them the error code |
| 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 | Since 1.21+ moved to Data Command Plus (each tick for each player) iterates data storage to access this players data |
| 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_config_list | add an entry to Config List, shown on /reload Config |
| foreach_player | ticks for @a players in uniform fassion |
Functions
Usable functions: for more details open up ".zip/data/fafik77/tags/functions/fafik77_main"
inventory_manager/
Manipulates slots in player inventory| 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/
all functions that are in this folder are usable (if Mod Data Command Plus is installed)rng/
rand -can return numbers in configured rangefor minecraft 1.20.2+ use the /random command, or use loot table to set item countshulkers/
set_shulker(2) has to be followed by unset_shulker(2), its usefull for placing a temporary shulker box at #this location and restoring the block when unsetnow uses /loot .. inventory from DCPvillager_recipe-table_parser/ 1.21
parse -used by Book Loving Villagers datapack, can be used to generate trades from loot tableTags & 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 |
Advacements root:
- child advacements are placed under this tab (a child can NOT exist without its parent root)
Old Downloads
10 Update Logs
2025-01-25 updated to 1.21.4+ : by fafik77 01/25/2025 8:53:05 amJanuary 25, 2025 @ 1:53 pm UTC
updated to 1.21.4+
LOAD MORE LOGS
More like this
4533489
119


Have something to say?
and perhaps you did read "shulker" instead of "shulker_box" which is the pocked chest and not the alive Monster
*since 1.21.0 this datapack uses DCP mod, and it no longer modifies any loot_table
*Edit. i give up this is worse than word