This repository was archived by the owner on May 5, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
The Event Block
a1qs edited this page Dec 25, 2024
·
3 revisions
The Event Block is a Creative-only invisible block that aims to provide users with information regarding current VaultAdditions Events [Link to the VaultAdditions page], alongside displaying the next scheduled event
If an event is currently active, it displays these lines:
-
Event active until: {days}d {hours}h {minutes}m {seconds}se.gEvent active until: 2d 20h 5m 49s {The given Event Display message configured in the vaultadditions_event.json config}- (if the event is a Crystal Submission Event)
Submitted Crystals: {submittedCrystals}/{requiredCrystals}

Otherwise it displays these lines:
- (if theres an event scheduled)
Next Event in: {days}d {hours}h {minutes}m {seconds}se.gNext event in: 2d 20h 5m 49s - (if theres no event scheduled)
Next Event in: No upcoming events!

- The text on the Event Block refreshes every 20 ingame ticks (1 second at 20TPS)
- The text is hardcoded, it cannot be modified while also persisting, for that theres the FloatingTextComponent Block from the Vault mod.
- The Event block uses a BlockEntityRenderer to display the text to players visually, following the players camera orientation
- The Voxelshape is the same of a Structure Void, holding the Event Block in your hand will display a Barrier Block particle effect at its position.
- The Block works very similar to the FloatingTextComponent from the Vault mod