To understand more about the datapack, for future development.
Before continuing, it is considerable that the developers know how data is treated here.
It is known that dummy
objectives are just numbers and that the same variable can be used
to reference a data multiple times.
But to separate each type of data, a different approach is used to help developers read and
understand the code:
- Some C data types are "used", such as
int
,char
andbool
; ThisExample
orthis_example
is only meant to be used as tagging;thisExample
is a common variable naming;example
can be used, but discouraged;EXAMPLE
is seen when the variable is about to modify complex structures.
Global
-
int:
Basically a buffer integer. -
char:
Same asint
, but is meant to separateentity
count fromtimer
count. -
combinerStage:
TODO -
thirstCount:
Player's thirst count. -
toolDamage:
Damage of theplayer
tool.
Necessary for avoiding the tool being broken during the use.
Entity
-
posX, posY, posZ:
Coordinates of aentity
. -
rotY, rotZ:
Rotation of aentity
. -
oldPosX, oldPosY, oldPosZ:
Buffered coordinates of aentity
. -
oldRotY, oldRotZ:
Buffered rotation of aentity
. -
age:
Time that aentity
have in the world.
QUESTION: Really necessary?
Time
-
seconds, minutes, hours:
Real Time time. -
dayTime:
TODO
Type
-
boatType:
ID of a boat type. -
toolID:
General item ID.
Storage
- SLOT0 ... SLOT26:
Slots from a 3x9 GUI matrix.
Gameplay
-
GM_Player:
Currentplayer
gamemode. -
OP:
Check ifplayer
is operator.
Letplayer
to change their gamemode to other than survival. Also impact on behaviour.
- thirstBool:
Check ifplayer
can lose1
thirst point.
-
damageTaken:
Amount ofdamage
suffered from external source. -
bleedingLvl:
Level ofbleeding
spots onentity
body.
(Minecraft) Event
- HSS_Mined_Barrel:
Flag that detects ifplayer
broke abarrel
block.
-
killedIllusioner:
Flag that detects ifIllusioner
was killed by theplayer
.
It will apply the effects to theplayer
. -
hasKilled:
Flag that detects if theplayer
was killed. -
hungerCount:
Level ofhunger
ofentity
. -
isSneaking, isRunning, isDrinking, isGlowing:
Flag that detectsplayer
actions.
- eatenFlesh, eatenRabbit, eatenChicken, eatenMutton, eatenPorkchop, eatenBeef, eatenSpiderEye, eatenP_Pie, eatenP_Potato, eatenSalmon, eatenT_Fish, eatenPufferfish, eatenCod:
Flag that detects ifplayer
have eaten everyfood
.
Affects immunity.
-
usedW_Axe, usedG_Axe, usedS_Axe, usedI_Axe, usedD_Axe, usedN_Axe, usedW_Pickaxe, usedG_Pickaxe, usedS_Pickaxe, usedI_Pickaxe, usedD_Pickaxe, usedN_Pickaxe, usedW_Hoe, usedG_Hoe, usedS_Hoe, usedI_Hoe, usedD_Hoe, usedN_Hoe:
Flag that detects ifplayer
is using anytool
.
Applymining fatigue
when about to break. -
usedPearl:
Flag that detects ifplayer
have used aender pearl
.
If detected a duck/sneak,player
will teleport. -
usedScope:
Flag that detects ifplayer
have used aspyglass
.
Workaround toRubbish Weapons
function.
Modules
-
loadedGun:
Flag that detects ifplayer
have used acarrot_on_a_stick
Check if gun is loaded and not have a empty magazine. -
usedGun:
Flag that detects ifplayer
have used acrossbow
-
slotSection:
Hotbar count whereweapon
is being held. -
isNatoEmpty, isGaugeEmpty, is9mmEmpty, isSniperEmpty, isIglaEmpty:
Possibly deprecated. -
natoBullets, gaugeBullets, 9mmBullets, sniperBullets, iglaMissiles:
Projectile count by fired weapons. -
natoTiming, gaugeTiming, 9mmTiming, sniperTiming, iglaTiming:
Interval of shooting. -
natoAmmo, gaugeAmmo, 9mmAmmo, sniperAmmo, iglaAmmo:
Weapon's available munition. -
rowTime:
TODO
-
biohazardCount:
Amount of radiation aentity
have. -
hazardSuit:
Type of radioactive protection suit. -
hsMaterial:
Material of protection.
Developer
-
HSSVer:
Shows the version of the datapack. -
MCVer:
Shows the version of the Minecraft. Also setsvirtual_master
variable. Intended to be used for backward compatibility. -
debug:
Shows debug functions in chat.
Intended for modders. -
verbose:
Shows all functions in chat.
Intended for developers. -
b0 ... b8:
Binary memory slots. -
bM:
Binary memory mode. -
bT:
Binary memory address.
-
counter:
General datapack tick/time counter. -
tickCount:
Function tick counter (4 * counter).
Increase the time to load some functions to avoid overloading. -
potFarmer:
Tick used forPot Farmers
.
-
hss_function_loaded:
To avoid modules loading functions. -
hss_last_spot:
To spawn a waypoint for 1 minute teleport. -
entity_check, player_check:
To avoid running the same check to the same entity. -
placed:
Normally used to detect custom block placement. -
tree_fall, ultra_hoe, vein_mine:
Very laggyarea_effect_cloud
entities (temporary).
hss:acacia_related
hss:amethysts
hss:birch_related
hss:bullet_ricochet_transparent
hss:bullet_ricochet
hss:cannot_hold_gun
hss:corals
hss:dark_oak_related
hss:falling_blocks
hss:jungle_related
hss:leaves
hss:nato_can_break
hss:nato_can_ignore
hss:not_air
hss:oak_related
hss:ores
hss:spruce_related
hss:transparent_blockstate
hss:tree
hss:grass_break
hss:undead
hss:all_hyphaes
hss:all_leaves
hss:all_logs
hss:all_mushrooms
hss:all_planks
hss:all_rocks
hss:all_slabs
hss:all_stems
hss:all_stones
hss:all_woods
hss:all_wools
hss:arrow_handles
hss:axes
hss:combustible
hss:paper_craftable
hss:pressure_plates
hss:vegetation
hss:is_aglc
hss:is_fal
hss:is_gc_9mm
hss:is_igla
hss:is_m1014
hss:is_rubbish_weapons
Container | Chance | Items |
---|---|---|
lavarig_barrel | 1/8 | lava_bucket 1 - 45%, bucket 1 - 25%, ancient_debris 1 - 15% |
Container | Chance | Items |
---|---|---|
junkyard_cabin | 1/8 | cobweb 1~24 - 45%, vine 1~4 - 35%, moss_block 1~2 - 30%, radiationPills 1~8 - 25%, dirt 1~16 - 20%, coal 1~4 - 20%, iron_ingot 1~2 - 15%, magneticBar 1 - 1% |
lavarig_chest | 1/8 | lava_bucket 1 - 45%, radiationPills 1~8 - 40%, gold_ingot 1~4 - 35%, nether_star 1~4 - 30%, netherrack 1~64 - 20%, nether_brick 1~8 - 20%, netherite_ingot 1~2 - 15%, wrench 1 - 1% |
Fishing is one of the only ways to obtain Blueprints and Tomes.