Skip to content

LittleWhole/TextDF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 

Repository files navigation

TextDF

TextDF is a way of expressing the DiamondFire code system in text formatting.

Syntax

  • parameters - ()
  • grouping - {}
  • strings - ''
  • method class - []
  • target - <>
  • end statement - ;
  • seperate condition - ,
  • variable targets %%
  • NOT !!
  • comment /* */
PlayerEvent ['Join']
  PlayerAction ['GiveItems'] (Item(WATER_BUCKET), Item(LAVA_BUCKET), Item(MILK_BUCKET)) <%default_player%>;
  
PlayerEvent ['Quit']
  PlayerAction ['SendDialogue'] (Text('Goodbye %default%'), Number(1)) <%all_player%>;

NOT example:

PlayerEvent ['Join']
  IfPlayer [!'NameEquals'!] (Text('Jeremaster')) <%default_player%> {
    PlayerAction ['SendMessage'] (Text('Someone joined...')) <%all_player%>;
  } Else {
    PlayerAction ['GiveItems'] (Item(DIAMOND, 64)) <%all_player%>;
  }

Variable Targets

Variable targets are denoted using %target_class%.

  • default - %default%
  • all - %all%
  • selection - %selection%
  • attacker - %damager%
  • killer - %killer%
  • victim - %victim%
  • global - %global%
  • Bind _entity or _player to target a specific entity class or the default target for the method will be used.

Parameter Classes

  • Item - define item values
  • Text - defines string values
  • Number - define number values
  • Sound - sound values
  • Particle - define particle values
  • Var - define custom variables use a variable name instead of a text string to define nested variables
  • Value - internal variables
PlayerEvent ['Join']
  Var ['Set'] (Var('var1'), Text('example')) <%global%>;
  Var ['Set'] (Var(Var('var1')), Text('example2')) <%global%>;
  Var ['Set'] (Var(Var('var1')) + 'var1'), Text('example3')) <%global%>;
  PlayerAction ['SendMessage'] (Var(example)) <%all%>;

About

TextDF is a way to express DiamondFire code in text.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors