Minecraft Maps / Other

Text To Block V0.8 [1.20.4 Java]

  • 939 views, 6 today
  • 53 downloads, 1 today
  • 4
  • 1
BlackeyeI's Avatar BlackeyeI
Level 34 : Artisan Creeper Hugger
17
Disclaimer
Use with caution since the stamp tool cannot detect collisions or cleanup blocks after placing them.

Summary
Text To Block is a utility map making tool aiming to reduce the time spent individually placing blocks for fonts and opening up new opportunities for dynamic artistic expression. Schematics are saved beforehand using structure blocks and cloned in 3D space across all directions after iterating over each input character. Only one stamp armour stand is allowed at any given time.

Some parts of this datapack are intended to be viewed or edited within a code editor.

Features
- Supports most ASCII characters including:
 - Control Characters: \n \t
 - Whitespaces: " "
 - Symbols: !,#,$,%,&,',(,),*,+,-,.,/,:,;,<,=,>,?,@,[,\,],^,_,`,{,|,},~
 - Numbers: 0,1,2,3,4,5,6,7,8,9
 - Uppercase Letters: A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z
 - Lowercase Letters: a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z
- Builds in all four cardinal directions (i.e., north, east, south, and west).
- Builds flat on the floor (horizontal) and erect in the air (vertical).
- Variable line height.
- Newlines and tabs.
- Axis flip tool allows easily swapping horizontal and vertical structure block measurements when it's south and in the bottom-right corner.

Book Controller
Use the stamp control book to issue commands, obtain it by either:
1) Clicking the give controller chat request when performing a factory reset.
2) Typing the command/function ttb:states/stages/2_idle/control/give_controller- Stamp commands are temporarily disabled while the program runs successfully.
- Stamp always clones characters 1 block in front of it and moves to the right.
- The controller book allows multiple users to interact with each copy.

Internal Script Guides (Read Only)
README:
ttb:READMEPreparing paste input:
ttb:states/stages/2_idle/control/input/set/paste_input_guidePreparing custom fonts:
ttb:fonts/custom_font_guide
Limitations:
- When creating new custom fonts since structure blocks cannot flip on the vertical axis it's necessary to swap axis measurements and manually adjust each file path axis (i.e., /h /v).
- Text Input is currently limited to typing arrays (JavaScript code is provided for convenience).
- Cannot detect collisions.
- Cannot cleanup blocks after placing them.
- Text is always right aligned.
- Words are split when performing a newline.

License:
This project uses an attribution-ShareAlike 4.0 International licence meaning everyone can use and modify the code in personal or commercial projects but they must maintain the same licence with independent releases and provide appropriate attribution.
Progress100% complete
Tags

1 Update Logs

Major Code Refactor : by BlackeyeI 03/09/2024 12:03:01 pmMar 9th

World
+ Updated the world version to 1.20.4
+ Set custom gamemode to creative.
+ Set default world spawn.

Code Refactor
+ Most code was refactored from scratch to remove redundancy and allow dynamic macros.
+ State machine implemented to keep code organized, address bugs faster, and make it easier to implement new features.
+ Idle loop slowed down to 8 ticks to reduce computations.
+ Set scores script divided for clarity.
+ Various scripts renamed for clarity.
+ Removed all triggers for simplicity.

Stamp
- Left text alignment removed in favour of constant right alignment to avoid errors.
+ Updated stamp control book styling for visual clarity and organization.
+ Uninstall updated to reflect new scoreboards and data.
+ Force stop allows the stamp to halt while running in case of emergencies or changing ones mind.
+ Chunk move limit allows adjusting when text wraps around.
+ Font axis now supports vertical characters.
+ Different commands teleport the player to the stamp when it's out of range to avoid errors.
+ Renamed call and goto commands for clarity.
+ Flags make detecting special processes easier.
+ Stamp particle preview area is now 3D and has an arrow to clarify the placement of schematics.
+ Stamp rotation relies on yaw not arbitrary numerical directions.
+ Scoreboard objectives prefixed with "Stamp" for clarity.

Fonts
+ All character IDs renumbered to more closely match ASCII order.
+ File paths are dynamically called with macros to significantly reduce the scripts required and make it easier to implement custom fonts.
+ charIDs now directly relate to testChar array indexing using macros instead of extracting chars from each subset.
+ Made minor structural changes to the pixel font to better distinguish the shape or enhance the aesthetics of some characters.
+ Removed line hyphenation to favour simplicity.
+ Fonts are dynamically called with macros and not fixed IDs for enhanced flexibility.
+ All characters no longer store widths individually as scores and instead unique widths overwrite a default value when requested to significantly save data.

Documentation
+ PlanetMinecraft documentation rewritten for clarity.
+ Internal documentation rewritten for clarity.
+ JavaScript code snippet for converting phrases to arrays now performs a comprehensive solution instead of requiring multiple websites.

Exceptions
+ Error handling expanded to all states to maintain code integrity.
+ User input range validation implemented to avoid errors.
+ Exceptions are depreciated for warnings.
+ Error handling uses macros to shorten initial calls.
+ All or most commands should no longer execute when the stamp is running.

Create an account or sign in to comment.

Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome