dfpyre 0.6.2__py3-none-any.whl → 0.7.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of dfpyre might be problematic. Click here for more details.

dfpyre/scriptgen.py CHANGED
@@ -1,6 +1,7 @@
1
1
  import dataclasses
2
2
  import re
3
3
  from dfpyre.items import *
4
+ from dfpyre.actiondump import get_default_tags
4
5
 
5
6
  SCRIPT_START = '''from dfpyre import *
6
7
  t = DFTemplate()
@@ -96,7 +97,7 @@ def argument_item_to_string(flags: GeneratorFlags, arg_item: object) -> str:
96
97
  if arg_item.optional:
97
98
  param_args.append('optional=True')
98
99
  if arg_item.default_value is not None:
99
- param_args.append(f'default_value={argument_item_to_string(arg_item.default_value)}')
100
+ param_args.append(f'default_value={argument_item_to_string(flags, arg_item.default_value)}')
100
101
  if arg_item.description:
101
102
  param_args.append(f'description="{arg_item.description}"')
102
103
  if arg_item.note:
@@ -114,6 +115,7 @@ def add_script_line(flags: GeneratorFlags, script_lines: list[str], indent_level
114
115
  script_lines.append(added_line)
115
116
 
116
117
 
118
+ # TODO: add tag values if not default
117
119
  def generate_script(template, flags: GeneratorFlags) -> str:
118
120
  indent_level = 0
119
121
  script_lines = []
@@ -140,7 +142,13 @@ def generate_script(template, flags: GeneratorFlags) -> str:
140
142
  method_args.extend(codeblock_args)
141
143
  if method_name in TARGET_CODEBLOCKS and codeblock.target.name != 'SELECTION':
142
144
  method_args.append(f'target=Target.{codeblock.target.name}')
145
+ if codeblock.tags:
146
+ print(codeblock.tags)
147
+ default_tags = get_default_tags(codeblock.data.get('block'), codeblock.name)
148
+ written_tags = {t: o for t, o in codeblock.tags.items() if default_tags[t] != o}
149
+ if written_tags:
150
+ method_args.append(f'tags={str(written_tags)}')
143
151
 
144
152
  line = f't.{method_name}({", ".join(method_args)})'
145
153
  add_script_line(flags, script_lines, indent_level, line)
146
- return SCRIPT_START + '\n'.join(script_lines)
154
+ return SCRIPT_START + '\n'.join(script_lines)
dfpyre/util.py ADDED
@@ -0,0 +1,28 @@
1
+ import base64
2
+ import gzip
3
+
4
+
5
+ COL_WARN = '\x1b[33m'
6
+ COL_RESET = '\x1b[0m'
7
+ COL_SUCCESS = '\x1b[32m'
8
+ COL_ERROR = '\x1b[31m'
9
+
10
+
11
+ class PyreException(Exception):
12
+ pass
13
+
14
+
15
+ def warn(message: str):
16
+ print(f'{COL_WARN}! WARNING ! {message}{COL_RESET}')
17
+
18
+
19
+ def df_encode(json_string: str) -> str:
20
+ """
21
+ Encodes a stringified json.
22
+ """
23
+ encoded_string = gzip.compress(json_string.encode('utf-8'))
24
+ return base64.b64encode(encoded_string).decode('utf-8')
25
+
26
+
27
+ def df_decode(encoded_string: str) -> str:
28
+ return gzip.decompress(base64.b64decode(encoded_string)).decode('utf-8')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dfpyre
3
- Version: 0.6.2
3
+ Version: 0.7.0
4
4
  Summary: A package for creating and modifying code templates for the DiamondFire Minecraft server.
5
5
  Home-page: https://github.com/Amp63/pyre
6
6
  License: MIT
@@ -70,6 +70,7 @@ pip install dfpyre
70
70
 
71
71
  ## Extras
72
72
 
73
+ - [Editing Tags](#editing-tags)
73
74
  - [Importing from Code](#importing-from-code)
74
75
  - [Script Generation](#script-generation)
75
76
  - [Method List](#method-list)
@@ -374,7 +375,7 @@ t.player_action('SendMessage', 'Hello, ', var('name', 'line'))
374
375
 
375
376
  ### Conditionals and Brackets
376
377
 
377
- A list of conditionals and loops can be found [here](#commands).
378
+ A list of conditionals and loops can be found [here](#method-list).
378
379
 
379
380
  A specific syntax must be followed when creating conditionals and loops. Each conditional statement must be followed by a `bracket()` method, which will contain code. Here's an example:
380
381
 
@@ -404,7 +405,6 @@ t.else_()
404
405
  t.bracket(
405
406
  t.player_action('ActionBar', 'in the air')
406
407
  )
407
- t.build()
408
408
  ```
409
409
 
410
410
  ### Loops
@@ -444,6 +444,19 @@ t = DFTemplate()
444
444
  t.player_event('Join')
445
445
  t.call_function('doStuff')
446
446
  ```
447
+
448
+ ### Editing Tags
449
+ You can edit an action's tags by passing the `tags` argument to a template method:
450
+
451
+ ```py
452
+ from dfpyre import *
453
+ t = DFTemplate()
454
+ t.player_event('Join')
455
+ t.player_action('SendMessage', 'hello', tags={'Alignment Mode': 'Centered'})
456
+ ```
457
+
458
+ If you choose not to modify a specific tag, its default value will be used.
459
+ Order does not matter when adding multiple tag entries.
447
460
 
448
461
  ### Importing from Code
449
462
 
@@ -0,0 +1,12 @@
1
+ dfpyre/__init__.py,sha256=apPsSxJ1Tztfl71MoORoSmDfX7LyKLYlLwOGeLQUitw,25
2
+ dfpyre/actiondump.py,sha256=1MrZfH3m9FdwLGjEHZ14h8J6mAbAvFUVt9-UubSt6KY,2338
3
+ dfpyre/data/actiondump_min.json,sha256=OOSlKqWffFf9dJbY7Kj8uCRz3d6CZPMEWkSpX2-Avqs,1785020
4
+ dfpyre/items.py,sha256=94-TM8NY6GyGkx4KeMGy3BUluQUcWXjGcLHKwzDfDWE,11260
5
+ dfpyre/pyre.py,sha256=JHxB4ILWUhyd2U1tdol3MJCR-3H3nsD2nllTD7wgngs,18149
6
+ dfpyre/scriptgen.py,sha256=s2zmBuGFtKGfq8oVKcWMHC9rBh9d5_oa2zwGi2b719E,5997
7
+ dfpyre/style.py,sha256=mLW1CFvvi8_9fk8JaH10I5S4WI0YBdQIXHtI3G_4sR8,980
8
+ dfpyre/util.py,sha256=gHIPPVD0dcLPAaN1M5EnNgxenarwlxfRKN4xno1YJHM,582
9
+ dfpyre-0.7.0.dist-info/LICENSE,sha256=_vuDskB0ja2c-Fgm7Gt8Q8cO9NsLNpZAVyvmZwX7E6o,1060
10
+ dfpyre-0.7.0.dist-info/METADATA,sha256=xB34ssdHq_fLqmWpjr-iZ4UviWUsweOZoLU4dFHG340,11754
11
+ dfpyre-0.7.0.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
12
+ dfpyre-0.7.0.dist-info/RECORD,,
dfpyre/data/data.json DELETED
@@ -1 +0,0 @@
1
- {"meta":{"version":"4.1.0","df_patch":"6.1","updated":"2024/1/2"},"player_action":{"GiveItems":[],"SetHotbar":[],"SetInventory":[],"SetSlotItem":[],"SetEquipment":[{"option":"Main hand","tag":"Equipment Slot","slot":26}],"SetArmor":[],"ReplaceItems":[],"RemoveItems":[],"ClearItems":[],"ClearInv":[{"option":"True","tag":"Clear Crafting and Cursor","slot":25},{"option":"Entire inventory","tag":"Clear Mode","slot":26}],"SetCursorItem":[],"SaveInv":[],"LoadInv":[],"SetItemCooldown":[],"SendMessage":[{"option":"True","tag":"Inherit Styles","slot":24},{"option":"Add spaces","tag":"Text Value Merging","slot":25},{"option":"Regular","tag":"Alignment Mode","slot":26}],"SendMessageSeq":[{"option":"Regular","tag":"Alignment Mode","slot":26}],"SendTitle":[],"ActionBar":[{"option":"True","tag":"Inherit Styles","slot":25},{"option":"No spaces","tag":"Text Value Merging","slot":26}],"OpenBook":[]," SetBossBar ":[{"option":"None","tag":"Sky Effect","slot":24},{"option":"Solid","tag":"Bar Style","slot":25},{"option":"Purple","tag":"Bar Color","slot":26}]," RemoveBossBar ":[],"SendAdvancement":[{"option":"Advancement","tag":"Toast Type","slot":26}],"SetTabListInfo":[{"option":"True","tag":"Inherit Styles","slot":24},{"option":"No spaces","tag":"Text Value Merging","slot":25},{"option":"Header","tag":"Player List Field","slot":26}],"PlaySound":[{"option":"Master","tag":"Sound Source","slot":26}],"StopSound":[{"option":"Master","tag":"Sound Source","slot":26}],"PlaySoundSeq":[{"option":"Master","tag":"Sound Source","slot":26}],"PlayEntitySound":[{"option":"True","tag":"Ignore Formatting","slot":25},{"option":"Master","tag":"Sound Source","slot":26}],"ShowInv":[],"ExpandInv":[],"SetMenuItem":[]," SetInvName ":[],"AddInvRow":[{"option":"Bottom row","tag":"New Row Position","slot":26}],"RemoveInvRow":[{"option":"Bottom row","tag":"Row to Remove","slot":26}],"CloseInv":[],"OpenBlockInv":[],"SetScoreObj":[],"SetSidebar":[{"option":"Enable","tag":"Sidebar","slot":26}],"SetScore":[],"RemoveScore":[],"ClearScoreboard":[],"Damage":[{"option":"True","tag":"Ignore Formatting","slot":26}],"Heal":[],"SetHealth":[],"SetMaxHealth":[{"option":"False","tag":"Heal Player to Max Health","slot":26}],"SetAbsorption":[],"SetFoodLevel":[],"GiveFood":[],"SetSaturation":[],"GiveSaturation":[],"GiveExp":[{"option":"Points","tag":"Give Experience","slot":26}],"SetExp":[{"option":"Level","tag":"Set Experience","slot":26}],"GivePotion":[{"option":"True","tag":"Show Icon","slot":24},{"option":"True","tag":"Overwrite Effect","slot":25},{"option":"Regular","tag":"Effect Particles","slot":26}],"RemovePotion":[],"ClearPotions":[],"SetSlot":[],"SetAtkSpeed":[],"SetFireTicks":[],"SetFreezeTicks":[{"option":"Disable","tag":"Ticking Locked","slot":26}],"SetAirTicks":[],"SetInvulTicks":[],"SetFallDistance":[],"SetSpeed":[{"option":"Ground speed","tag":"Speed Type","slot":26}],"SurvivalMode":[],"AdventureMode":[],"CreativeMode":[],"SpectatorMode":[],"SetAllowFlight":[{"option":"Enable","tag":"Allow Flight","slot":26}],"SetAllowPVP":[{"option":"Disable","tag":"PVP","slot":26}],"SetDropsEnabled":[{"option":"Enable","tag":"Spawn Death Drops","slot":26}],"SetInventoryKept":[{"option":"Enable","tag":"Inventory Kept","slot":26}],"SetCollidable":[{"option":"Disable","tag":"Collision","slot":26}],"EnableBlocks":[],"DisableBlocks":[],"InstantRespawn":[{"option":"Enable","tag":"Instant Respawn","slot":26}],"SetReducedDebug":[{"option":"True","tag":"Reduced Debug Info Enabled","slot":26}],"SetHandCrafting":[{"option":"Disable","tag":"Allow Hand Crafting","slot":26}],"Teleport":[{"option":"False","tag":"Keep Velocity","slot":25},{"option":"False","tag":"Keep Current Rotation","slot":26}],"LaunchUp":[{"option":"True","tag":"Add to Current Velocity","slot":26}],"LaunchFwd":[{"option":"True","tag":"Add to Current Velocity","slot":25},{"option":"Pitch and Yaw","tag":"Launch Axis","slot":26}],"LaunchToward":[{"option":"True","tag":"Add to Current Velocity","slot":25},{"option":"False","tag":"Ignore Distance","slot":26}],"RideEntity":[{"option":"True","tag":"Ignore Formatting","slot":26}],"SetFlying":[{"option":"Enable","tag":"Flying","slot":26}],"SetGliding":[{"option":"Enable","tag":"Gliding","slot":26}],"BoostElytra":[],"SetRotation":[],"FaceLocation":[],"SetVelocity":[{"option":"False","tag":"Add to Current Velocity","slot":26}],"SpectateTarget":[{"option":"True","tag":"Ignore Formatting","slot":26}],"SetSpawnPoint":[],"SpectatorCollision":[{"option":"Enable","tag":"Spectator Collision","slot":26}],"LaunchProj":[],"ResourcePack":[],"SetPlayerTime":[],"SetPlayerWeather":[{"option":"Downfall","tag":"Weather","slot":26}],"SetRainLevel":[],"SetCompass":[],"DisplayBlock":[],"DisplayFracture":[{"option":"True","tag":"Overwrite Previous Fracture","slot":26}],"DisplayBlockOpen":[{"option":"Open","tag":"Container State","slot":26}],"DisplayGateway":[{"option":"Initial beam","tag":"Animation Type","slot":26}],"DisplaySignText":[{"option":"Front","tag":"Sign Side","slot":24},{"option":"Black","tag":"Text Color","slot":25},{"option":"Disable","tag":"Glowing","slot":26}],"DisplayHologram":[],"SetFogDistance":[],"SetWorldBorder":[],"ShiftWorldBorder":[],"RmWorldBorder":[],"DisplayPickup":[{"option":"True","tag":"Ignore Formatting","slot":26}],"SetEntityHidden":[{"option":"True","tag":"Ignore Formatting","slot":25},{"option":"Enable","tag":"Hidden","slot":26}],"Particle":[],"ParticleLine":[],"ParticleLineA":[],"ParticleCircle":[],"ParticleCircleA":[],"ParticleCuboid":[{"option":"Wireframe","tag":"Fill Type","slot":26}],"ParticleCuboidA":[{"option":"Wireframe","tag":"Fill Type","slot":26}],"ParticleSpiral":[],"ParticleSpiralA":[],"ParticleSphere":[],"ParticleRay":[],"DisplayLightning":[],"Vibration":[],"MobDisguise":[],"PlayerDisguise":[],"BlockDisguise":[],"SetDisguiseVisible":[{"option":"Disable","tag":"Disguise Visible","slot":26}],"Undisguise":[],"SetChatTag":[],"ChatStyle":[],"SetNameColor":[{"option":"Black","tag":"Name Color","slot":26}],"SetNameVisible":[{"option":"Disable","tag":"Name Tag Visible","slot":26}],"SetNamePrefix":[{"option":"Prefix","tag":"Text Type","slot":26}],"SetArrowsStuck":[],"SetStingsStuck":[],"SetVisualFire":[{"option":"True","tag":"On Fire","slot":26}],"AttackAnimation":[{"option":"Swing main arm","tag":"Animation Arm","slot":26}],"HurtAnimation":[],"WakeUpAnimation":[],"SetStatus":[],"SetSkin":[],"SetShoulder":[{"option":"Remove","tag":"Type","slot":25},{"option":"Left","tag":"Shoulder","slot":26}],"RollbackBlocks":[],"SendToPlot":[],"Kick":[]},"entity_action":{"Heal":[],"SetHealth":[],"SetAbsorption":[],"SetMaxHealth":[{"option":"False","tag":"Heal Mob to Max Health","slot":26}],"Damage":[{"option":"True","tag":"Ignore Formatting","slot":26}],"SetFireTicks":[],"SetFreezeTicks":[{"option":"Disable","tag":"Ticking Locked","slot":26}],"SetInvulTicks":[],"GivePotion":[{"option":"True","tag":"Overwrite Effect","slot":25},{"option":"Regular","tag":"Effect Particles","slot":26}],"RemovePotion":[],"ClearPotions":[],"SetAge":[{"option":"Don't change","tag":"Age Lock","slot":26}],"SetFallDistance":[],"SetCreeperFuse":[],"SetCreeperPower":[],"SetCloudRadius":[],"SetVillagerExp":[],"SetWitherInvul":[],"SetHorseJump":[],"SetPickupDelay":[],"SetFishingTime":[],"SetWardenAnger":[{"option":"True","tag":"Ignore Formatting","slot":26}],"MobDisguise":[],"PlayerDisguise":[],"BlockDisguise":[],"Undisguise":[],"SetGlowing":[{"option":"Enable","tag":"Glowing","slot":26}],"SetDyeColor":[{"option":"White","tag":"Dye","slot":26}],"SetFishPattern":[{"option":"White","tag":"Pattern Color","slot":24},{"option":"White","tag":"Body Color","slot":25},{"option":"Kob","tag":"Pattern","slot":26}],"SetRabbitType":[{"option":"Brown","tag":"Skin Type","slot":26}],"SetCatType":[{"option":"Tabby","tag":"Skin Type","slot":26}],"MooshroomType":[{"option":"Red","tag":"Mooshroom Variant","slot":26}],"SetFoxType":[{"option":"Red","tag":"Fox Type","slot":26}],"SetParrotColor":[{"option":"Red","tag":"Parrot Color","slot":26}],"SetHorsePattern":[{"option":"Flaxen chestnut","tag":"Horse Color","slot":25},{"option":"Stockings and blaze","tag":"Horse Markings","slot":26}],"SetAxolotlColor":[{"option":"Pink","tag":"Axolotl Color","slot":26}],"SetLlamaColor":[{"option":"Brown","tag":"Llama Color","slot":26}],"SetFrogType":[{"option":"Temperate","tag":"Frog Type","slot":26}],"SetVillagerBiome":[{"option":"Desert","tag":"Biome","slot":26}],"SnowmanPumpkin":[{"option":"Disable","tag":"Pumpkin","slot":26}],"SetEndermanBlock":[],"SetMinecartBlock":[],"ArmorStandParts":[{"option":"Enable","tag":"Arms","slot":25},{"option":"Enable","tag":"Base Plate","slot":26}],"SetBeeNectar":[{"option":"Enable","tag":"Has Nectar","slot":26}],"ProjectileItem":[],"SetVisualFire":[{"option":"True","tag":"On Fire","slot":26}],"SendAnimation":[{"option":"Hurt animation","tag":"Animation Type","slot":26}],"AttackAnimation":[{"option":"Swing main arm","tag":"Animation Arm","slot":26}],"ArmorStandPose":[{"option":"Head","tag":"Armor Stand Part","slot":26}]," SetPose ":[{"option":"Standing","tag":"Pose","slot":26}],"SetFoxLeaping":[{"option":"Enable","tag":"Leaping","slot":26}],"SetArmsRaised":[{"option":"Enable","tag":"Arms Raised","slot":26}],"SetCatResting":[{"option":"Enable","tag":"Resting","slot":26}],"SetGlowSquidDark":[],"Teleport":[{"option":"False","tag":"Keep Current Rotation","slot":26}],"LaunchUp":[{"option":"True","tag":"Add to Current Velocity","slot":26}],"LaunchFwd":[{"option":"True","tag":"Add to Current Velocity","slot":25},{"option":"Pitch and Yaw","tag":"Launch Axis","slot":26}],"LaunchToward":[{"option":"True","tag":"Add to Current Velocity","slot":25},{"option":"False","tag":"Ignore Distance","slot":26}],"SetGliding":[{"option":"Enable","tag":"Gliding","slot":26}],"SetGravity":[{"option":"Disable","tag":"Gravity","slot":26}],"RideEntity":[{"option":"True","tag":"Ignore Formatting","slot":26}],"AttachLead":[{"option":"True","tag":"Ignore Formatting","slot":26}],"SetRotation":[],"SetVelocity":[{"option":"False","tag":"Add to Current Velocity","slot":26}],"SetName":[{"option":"False","tag":"Hide Name Tag","slot":26}],"SetNameVisible":[{"option":"Enable","tag":"Name Tag Visible","slot":26}],"SetNameColor":[{"option":"Black","tag":"Name Color","slot":26}],"SetAI":[{"option":"None","tag":"AI","slot":26}],"SetSilenced":[{"option":"Enable","tag":"Silenced","slot":26}],"SetDeathDrops":[{"option":"Enable","tag":"Has Death Drops","slot":26}],"SetCollidable":[{"option":"Disable","tag":"Collision","slot":26}],"SetInvulnerable":[{"option":"Enable","tag":"Invulnerable","slot":26}],"SetMobSitting":[{"option":"Enable","tag":"Is Sitting","slot":26}],"SetBaby":[{"option":"Enable","tag":"Baby","slot":26}],"SetSize":[],"SetSheepSheared":[{"option":"Enable","tag":"Sheared","slot":26}],"SetSaddle":[{"option":"Enable","tag":"Saddle","slot":26}],"SetCarryingChest":[{"option":"Enable","tag":"Carrying Chest","slot":26}],"ArmorStandSlots":[{"option":"Take, swap or place item","tag":"Interactions","slot":25},{"option":"All","tag":"Equipment Slot","slot":26}],"SetMarker":[{"option":"Enable","tag":"Marker","slot":26}],"SetAngry":[{"option":"Enable","tag":"Angry","slot":26}],"SetRearing":[{"option":"Enable","tag":"Rearing","slot":26}],"SetRiptiding":[{"option":"Enable","tag":"Riptiding","slot":26}],"CreeperCharged":[{"option":"Enable","tag":"Charged","slot":26}],"SetInvisible":[{"option":"Enable","tag":"Invisible","slot":26}],"SetGoatScreaming":[{"option":"Enable","tag":"Screams","slot":26}],"SetGoatHorns":[{"option":"No Change","tag":"Left Horn","slot":25},{"option":"No Change","tag":"Right Horn","slot":26}],"Tame":[],"EndCrystalBeam":[],"SetPandaGene":[{"option":"Both","tag":"Set Gene","slot":25},{"option":"Aggressive","tag":"Gene Type","slot":26}],"SetProfession":[{"option":"Armorer","tag":"Profession","slot":26}],"SetProjSource":[{"option":"True","tag":"Ignore Formatting","slot":26}],"SetPersistent":[{"option":"Enable","tag":"Persistent","slot":26}],"InteractionSize":[],"InteractResponse":[{"option":"Enable","tag":"Responsive","slot":26}],"SetCelebrating":[{"option":"Enable","tag":"Celebrate","slot":26}],"SetTarget":[{"option":"True","tag":"Ignore Formatting","slot":26}],"MoveToLoc":[],"Jump":[],"Ram":[{"option":"True","tag":"Ignore Formatting","slot":26}],"FrogEat":[{"option":"True","tag":"Ignore Formatting","slot":26}],"SheepEat":[],"IgniteCreeper":[],"Explode":[],"FoxSleeping":[{"option":"Enable","tag":"Sleeping","slot":26}],"SetDragonPhase":[{"option":"Flying","tag":"Phase","slot":26}],"SetBulletTarget":[{"option":"True","tag":"Ignore Formatting","slot":26}],"UseItem":[{"option":"Main Hand","tag":"Hand","slot":25},{"option":"Enable","tag":"Use Item","slot":26}],"SetAllayDancing":[{"option":"Enable","tag":"Dancing","slot":26}],"SnifferState":[{"option":"Idle","tag":"Behavior","slot":26}],"DisplayViewRange":[],"DisplayBillboard":[{"option":"Fixed","tag":"Billboard Type","slot":26}],"DisplayShadow":[],"DisplayBrightness":[],"DispInterpolation":[],"DisplayCullingSize":[],"TDisplayText":[{"option":"True","tag":"Inherit Styles","slot":25},{"option":"No spaces","tag":"Text Value Merging","slot":26}],"TDisplayLineWidth":[],"TDisplayOpacity":[],"TDisplayAlign":[{"option":"Center","tag":"Text Alignment","slot":26}],"TDisplayShadow":[{"option":"Enable","tag":"Text Shadow","slot":26}],"TDisplaySeeThru":[{"option":"Enable","tag":"See-through","slot":26}],"TDispBackground":[],"DisplayGlowColor":[],"IDisplayItem":[],"IDisplayModelType":[{"option":"None","tag":"Model Type","slot":26}],"BDisplayBlock":[],"DisplayMatrix":[],"DispRotationEuler":[{"option":"Left Rotation","tag":"Rotation Type","slot":26}],"DispRotAxisAngle":[{"option":"Left Rotation","tag":"Rotation Type","slot":26}],"DispTranslation":[],"DisplayScale":[],"Remove":[],"SetEquipment":[{"option":"Main hand","tag":"Equipment Slot","slot":26}],"SetArmor":[],"LaunchProj":[],"ShearSheep":[],"SetCustomTag":[],"GetCustomTag":[],"RemoveCustomTag":[],"SetItem":[],"SetDigging":[{"option":"Emerge","tag":"Digging Type","slot":26}]},"game_action":{"SpawnMob":[],"SpawnItem":[{"option":"True","tag":"Apply Item Motion","slot":26}],"SpawnVehicle":[],"SpawnExpOrb":[],"Explosion":[],"SpawnTNT":[],"SpawnFangs":[],"Firework":[{"option":"False","tag":"Instant","slot":25},{"option":"Upwards","tag":"Movement","slot":26}],"LaunchProj":[],"Lightning":[],"SpawnPotionCloud":[],"FallingBlock":[{"option":"True","tag":"Reform on Impact","slot":25},{"option":"False","tag":"Hurt Hit Entities","slot":26}],"SpawnArmorStand":[{"option":"Visible","tag":"Visibility","slot":26}],"SpawnCrystal":[{"option":"True","tag":"Show Bottom","slot":26}],"SpawnEnderEye":[{"option":"Random","tag":"End of Lifespan","slot":26}],"ShulkerBullet":[],"SpawnTextDisplay":[{"option":"True","tag":"Inherit Styles","slot":25},{"option":"No spaces","tag":"Text Value Merging","slot":26}],"SpawnItemDisp":[],"SpawnBlockDisp":[],"SpawnInteraction":[{"option":"Disable","tag":"Responsive","slot":26}]," SetBlock ":[],"SetRegion":[],"CloneRegion":[{"option":"False","tag":"Ignore Air","slot":25},{"option":"True","tag":"Clone Block Entities","slot":26}],"BreakBlock":[],"SetBlockData":[{"option":"False","tag":"Overwrite Existing Data","slot":26}],"TickBlock":[],"BoneMeal":[{"option":"True","tag":"Show Particles","slot":26}],"GenerateTree":[{"option":"Oak Tree","tag":"Tree Type","slot":26}],"SetBlockGrowth":[{"option":"Growth Stage Number","tag":"Growth Unit","slot":26}],"FillContainer":[],"SetContainer":[],"SetItemInSlot":[],"ReplaceItems":[],"RemoveItems":[],"ClearItems":[],"ClearContainer":[],"SetContainerName":[],"LockContainer":[],"ChangeSign":[{"option":"Front","tag":"Sign Side","slot":26}],"SignColor":[{"option":"Front","tag":"Sign Side","slot":24},{"option":"Black","tag":"Text Color","slot":25},{"option":"Disable","tag":"Glowing","slot":26}],"SetHead":[],"SetFurnaceSpeed":[],"SetCampfireItem":[{"option":"1","tag":"Campfire Slot","slot":26}],"SetLecternBook":[],"SetBrushableItem":[],"CancelEvent":[],"UncancelEvent":[],"SetEventDamage":[],"SetEventHeal":[],"SetEventXP":[],"SetEventProj":[],"SetEventSound":[],"BlockDropsOn":[],"BlockDropsOff":[],"WebRequest":[{"option":"Post","tag":"Request Method","slot":25},{"option":"text/plain","tag":"Content Type","slot":26}],"DiscordWebhook":[]},"set_var":{"=":[],"RandomValue":[],"PurgeVars":[{"option":"Full word(s) in name","tag":"Match Requirement","slot":25},{"option":"False","tag":"Ignore Case","slot":26}],"+":[],"-":[],"x":[],"/":[{"option":"Default","tag":"Division Mode","slot":26}],"%":[{"option":"Remainder","tag":"Remainder Mode","slot":26}],"+=":[],"-=":[],"Exponent":[],"Root":[],"Logarithm":[],"ParseNumber":[],"AbsoluteValue":[],"ClampNumber":[],"WrapNum":[],"Average":[],"RandomNumber":[{"option":"Whole number","tag":"Rounding Mode","slot":26}]," RoundNumber ":[{"option":"Nearest","tag":"Round Mode","slot":26}],"MinNumber":[],"MaxNumber":[],"NormalRandom":[{"option":"Normal","tag":"Distribution","slot":26}],"Sine":[{"option":"Sine","tag":"Sine Variant","slot":25},{"option":"Degrees","tag":"Input","slot":26}],"Cosine":[{"option":"Cosine","tag":"Cosine Variant","slot":25},{"option":"Degrees","tag":"Input","slot":26}],"Tangent":[{"option":"Tangent","tag":"Tangent Variant","slot":25},{"option":"Degrees","tag":"Input","slot":26}],"PerlinNoise":[{"option":"Brownian","tag":"Fractal Type","slot":26}],"VoronoiNoise":[{"option":"Euclidean","tag":"Cell Edge Type","slot":26}],"WorleyNoise":[{"option":"Euclidean","tag":"Cell Edge Type","slot":25},{"option":"Primary","tag":"Distance Calculation","slot":26}],"Bitwise":[{"option":"|","tag":"Operator","slot":26}],"String":[{"option":"No spaces","tag":"Text Value Merging","slot":26}],"ReplaceString":[{"option":"All occurrences","tag":"Replacement Type","slot":25},{"option":"Disable","tag":"Regular Expressions","slot":26}],"RemoveString":[{"option":"Disable","tag":"Regular Expressions","slot":26}],"TrimString":[],"SplitString":[],"JoinString":[],"SetCase":[{"option":"UPPERCASE","tag":"Capitalization Type","slot":26}],"StringLength":[],"RepeatString":[],"FormatTime":[{"option":"2020/08/17 17:20:54","tag":"Format","slot":26}],"TranslateColors":[{"option":"From & to color","tag":"Translation Type","slot":26}],"StyledText":[{"option":"True","tag":"Inherit Styles","slot":25},{"option":"No spaces","tag":"Text Value Merging","slot":26}],"ClearFormatting":[],"GetMiniMessageExpr":[],"ParseMiniMessageExpr":[{"option":"False","tag":"Parse Legacy Color Codes","slot":25},{"option":"Style Only","tag":"Allowed Tags","slot":26}],"TrimStyledText":[],"ContentLength":[],"GetCoord":[{"option":"Plot coordinate","tag":"Coordinate Type","slot":25},{"option":"X","tag":"Coordinate","slot":26}],"SetCoord":[{"option":"Plot coordinate","tag":"Coordinate Type","slot":25},{"option":"X","tag":"Coordinate","slot":26}],"SetAllCoords":[{"option":"Plot coordinate","tag":"Coordinate Type","slot":26}],"ShiftOnAxis":[{"option":"X","tag":"Coordinate","slot":26}],"ShiftAllAxes":[],"ShiftInDirection":[{"option":"Forward","tag":"Direction","slot":26}],"ShiftAllDirections":[],"ShiftToward":[],"ShiftOnVector":[{"option":"False","tag":"Add Location Rotation","slot":26}],"GetDirection":[]," SetDirection ":[],"ShiftRotation":[{"option":"Pitch","tag":"Rotation Axis","slot":26}],"FaceLocation":[{"option":"Toward location","tag":"Face Direction","slot":26}],"AlignLoc":[{"option":"Keep rotation","tag":"Rotation","slot":24},{"option":"All coordinates","tag":"Coordinates","slot":25},{"option":"Block center","tag":"Alignment Mode","slot":26}],"Distance":[{"option":"Distance 3D (X/Y/Z)","tag":"Distance Type","slot":26}],"GetCenterLoc":[],"RandomLoc":[],"GetItemType":[{"option":"Item ID (golden_apple)","tag":"Return Value Type","slot":26}],"SetItemType":[]," GetItemName ":[]," SetItemName ":[]," GetItemLore ":[],"GetLoreLine":[]," SetItemLore ":[],"GetItemAmount":[],"SetItemAmount":[],"GetMaxItemAmount":[],"GetItemDura":[{"option":"Get Damage","tag":"Durability Type","slot":26}],"SetItemDura":[{"option":"Set Damage","tag":"Durability Type","slot":26}],"SetBreakability":[{"option":"Unbreakable","tag":"Breakability","slot":26}]," GetItemEnchants ":[]," SetItemEnchants ":[],"AddItemEnchant":[],"RemItemEnchant":[],"GetHeadOwner":[{"option":"Owner Name","tag":"Text Value","slot":26}],"SetHeadTexture":[]," GetBookText ":[],"SetBookText":[],"GetItemTag":[],"GetAllItemTags":[],"SetItemTag":[],"RemoveItemTag":[],"ClearItemTag":[],"SetModelData":[],"GetItemEffects":[],"SetItemEffects":[],"SetItemFlags":[{"option":"No Change","tag":"Hide Armor Trim","slot":19},{"option":"No Change","tag":"Hide Color","slot":20},{"option":"No Change","tag":"Hide Enchantments","slot":21},{"option":"No Change","tag":"Hide Attributes","slot":22},{"option":"No Change","tag":"Hide Unbreakable","slot":23},{"option":"No Change","tag":"Hide Can Destroy","slot":24},{"option":"No Change","tag":"Hide Can Place On","slot":25},{"option":"No Change","tag":"Hide Potion Effects","slot":26}],"GetCanPlaceOn":[],"SetCanPlaceOn":[],"GetCanDestroy":[],"SetCanDestroy":[],"GetItemRarity":[],"GetLodestoneLoc":[],"SetLodestoneLoc":[{"option":"False","tag":"Require Lodestone at Location","slot":26}],"SetArmorTrim":[{"option":"None","tag":"Trim Pattern","slot":25},{"option":"Amethyst","tag":"Trim Material","slot":26}],"GetItemColor":[],"SetItemColor":[],"GetItemAttribute":[{"option":"Armor","tag":"Attribute","slot":25},{"option":"Any","tag":"Active Equipment Slot","slot":26}],"AddItemAttribute":[{"option":"Armor","tag":"Attribute","slot":24},{"option":"Add number","tag":"Operation","slot":25},{"option":"Main hand","tag":"Active Equipment Slot","slot":26}],"SetMapTexture":[],"CreateList":[],"AppendValue":[],"AppendList":[],"GetListValue":[],"PopListValue":[],"SetListValue":[],"GetValueIndex":[{"option":"Ascending (first index)","tag":"Search Order","slot":26}],"ListLength":[],"InsertListValue":[],"RemoveListValue":[],"RemoveListIndex":[],"DedupList":[],"TrimList":[],"SortList":[{"option":"Ascending","tag":"Sort Order","slot":26}],"ReverseList":[],"RandomizeList":[],"FlattenList":[],"CreateDict":[],"SetDictValue":[],"GetDictValue":[],"GetDictSize":[],"RemoveDictEntry":[],"ClearDict":[],"GetDictKeys":[],"GetDictValues":[],"AppendDict":[],"SortDict":[{"option":"Sort by Key","tag":"Sorting Type","slot":25},{"option":"Ascending","tag":"Sorting Order","slot":26}],"GetBlockType":[{"option":"Block ID (oak_log)","tag":"Return Value Type","slot":26}],"GetBlockData":[],"GetAllBlockData":[{"option":"True","tag":"Hide Default","slot":26}],"GetBlockGrowth":[{"option":"Growth stage number","tag":"Growth Unit","slot":26}],"GetBlockPower":[],"GetLight":[{"option":"Combined light","tag":"Light Type","slot":26}]," GetSignText ":[{"option":"Front","tag":"Sign Side","slot":25},{"option":"1","tag":"Sign Line","slot":26}],"ContainerName":[],"ContainerLock":[],"GetContainerItems":[{"option":"False","tag":"Ignore Empty Slots","slot":26}],"GetLecternBook":[],"GetLecternPage":[],"Raycast":[{"option":"False","tag":"Entity Collision","slot":25},{"option":"All blocks","tag":"Block Collision","slot":26}],"GetParticleType":[],"SetParticleType":[],"GetParticleAmount":[],"SetParticleAmount":[],"GetParticleSprd":[{"option":"Horizontal","tag":"Spread","slot":26}],"SetParticleSprd":[],"GetParticleSize":[],"SetParticleSize":[],"GetParticleMat":[],"SetParticleMat":[],"GetParticleColor":[],"SetParticleColor":[],"GetParticleMotion":[],"SetParticleMotion":[],"GetParticleRoll":[],"SetParticleRoll":[],"Vector":[],"VectorBetween":[],"GetVectorComp":[{"option":"X","tag":"Component","slot":26}],"SetVectorComp":[{"option":"X","tag":"Component","slot":26}],"GetVectorLength":[{"option":"Length","tag":"Length Type","slot":26}],"SetVectorLength":[],"MultiplyVector":[],"AddVectors":[],"SubtractVectors":[],"AlignVector":[],"RotateAroundAxis":[{"option":"X","tag":"Axis","slot":25},{"option":"Degrees","tag":"Angle Units","slot":26}],"RotateAroundVec":[{"option":"Degrees","tag":"Angle Units","slot":26}],"ReflectVector":[],"CrossProduct":[],"DotProduct":[],"DirectionName":[],"GetPotionType":[],"SetPotionType":[],"GetPotionAmp":[],"SetPotionAmp":[],"GetPotionDur":[],"SetPotionDur":[],"GetSoundType":[],"SetSoundType":[],"GetSoundVariant":[],"SetSoundVariant":[],"GetCustomSound":[],"SetCustomSound":[],"GetSoundPitch":[{"option":"Pitch (number)","tag":"Return Value Type","slot":26}],"SetSoundPitch":[],"GetSoundVolume":[],"SetSoundVolume":[],"BlockHardness":[],"BlockResistance":[],"RGBColor":[],"HSBColor":[],"HSLColor":[],"GetColorChannels":[{"option":"RGB","tag":"Color Channels","slot":26}]},"if_player":{"IsSneaking":[],"IsSprinting":[],"IsGliding":[],"IsFlying":[],"IsGrounded":[],"IsSwimming":[],"IsBlocking":[],"UsingPack":[],"IsLookingAt":[{"option":"Ignore fluids","tag":"Fluid Mode","slot":26}]," StandingOn ":[],"IsNear":[{"option":"Sphere","tag":"Shape","slot":26}],"InWorldBorder":[],"IsHolding":[{"option":"Either hand","tag":"Hand Slot","slot":26}],"HasItem":[{"option":"Has Any Item","tag":"Check Mode","slot":26}],"IsWearing":[{"option":"Is Wearing Some","tag":"Check Mode","slot":26}],"IsUsingItem":[],"NoItemCooldown":[],"HasSlotItem":[],"MenuSlotEquals":[],"CursorItem":[],"HasRoomForItem":[{"option":"Main inventory","tag":"Checked Slots","slot":25},{"option":"Has Room for Any Item","tag":"Check Mode","slot":26}],"NameEquals":[],"SlotEquals":[],"HasPotion":[{"option":"None","tag":"Check Properties","slot":25},{"option":"Has any effect","tag":"Check Mode","slot":26}]," IsRiding ":[{"option":"True","tag":"Ignore Formatting","slot":26}],"InvOpen":[{"option":"Any Inventory","tag":"Inventory Type","slot":26}],"HasPermission":[{"option":"Developer or builder","tag":"Permission","slot":26}],"IsInGameMode":[{"option":"Survival","tag":"Game Mode","slot":26}]},"if_entity":{"IsType":[],"NameEquals":[{"option":"True","tag":"Ignore Formatting","slot":26}]," StandingOn ":[],"IsGrounded":[],"IsNear":[{"option":"Sphere","tag":"Shape","slot":26}]," IsRiding ":[{"option":"True","tag":"Ignore Formatting","slot":26}],"HasPotion":[{"option":"None","tag":"Check Properties","slot":25},{"option":"Has any effect","tag":"Check Mode","slot":26}],"IsMob":[],"IsProj":[],"IsVehicle":[],"IsItem":[],"Exists":[],"HasCustomTag":[],"IsSheared":[]},"if_game":{"BlockEquals":[],"BlockPowered":[{"option":"Direct power","tag":"Redstone Power Mode","slot":26}],"ContainerHas":[],"ContainerHasAll":[],"HasRoomForItem":[{"option":"Has Room for Any Item","tag":"Check Mode","slot":26}]," SignHasTxt ":[{"option":"Contains","tag":"Check Mode","slot":24},{"option":"Front","tag":"Sign Side","slot":25},{"option":"All lines","tag":"Sign Line","slot":26}],"HasPlayer":[],"EventBlockEquals":[],"EventItemEquals":[{"option":"Ignore stack size/durability","tag":"Comparison Mode","slot":26}],"CommandEquals":[{"option":"True","tag":"Ignore Case","slot":25},{"option":"Check entire command","tag":"Check Mode","slot":26}],"CmdArgEquals":[{"option":"True","tag":"Ignore Case","slot":26}],"AttackIsCrit":[],"EventCancelled":[]},"if_var":{"=":[],"!=":[],">":[],">=":[],"<":[],"<=":[]," InRange ":[{"option":"Exact","tag":"Location Handling","slot":26}],"LocIsNear":[{"option":"Sphere","tag":"Shape","slot":26}],"StringMatches":[{"option":"False","tag":"Ignore Case","slot":25},{"option":"Disable","tag":"Regular Expressions","slot":26}],"Contains":[{"option":"False","tag":"Ignore Case","slot":26}],"StartsWith":[{"option":"False","tag":"Ignore Case","slot":26}],"EndsWith":[{"option":"False","tag":"Ignore Case","slot":26}],"VarExists":[],"VarIsType":[{"option":"Number","tag":"Variable Type","slot":26}],"ItemEquals":[{"option":"Exactly equals","tag":"Comparison Mode","slot":26}],"ItemHasTag":[],"ListContains":[{"option":"Has Any Value","tag":"Check Mode","slot":26}],"ListValueEq":[],"DictHasKey":[],"DictValueEquals":[]},"repeat":{"Forever":[],"While":[],"Multiple":[]," Range ":[],"ForEach":[{"option":"True","tag":"Allow List Changes","slot":26}],"ForEachEntry":[],"Grid":[],"Adjacent":[{"option":"False","tag":"Change Location Rotation","slot":24},{"option":"False","tag":"Include Origin Block","slot":25},{"option":"Adjacent (6 blocks)","tag":"Pattern","slot":26}],"Path":[{"option":"False","tag":"Rotate Location","slot":26}],"Sphere":[{"option":"False","tag":"Point Locations Inwards","slot":26}]},"select_obj":{"EventTarget":[{"option":"Default","tag":"Event Target","slot":26}],"RandomPlayer":[],"LastEntity":[],"PlayerName":[],"EntityName":[{"option":"True","tag":"Ignore Formatting","slot":26}],"AllPlayers":[],"AllEntities":[],"PlayersCond":[],"EntitiesCond":[],"Invert":[],"FilterCondition":[],"FilterRandom":[],"FilterDistance":[{"option":"False","tag":"Ignore Y-Axis","slot":25},{"option":"Nearest","tag":"Compare Mode","slot":26}],"FilterSort":[{"option":"Ascending","tag":"Sort Order","slot":26}],"FilterRay":[{"option":"Solid blocks","tag":"Block Collision","slot":26}],"Reset":[]},"control":{"Wait":[{"option":"Ticks","tag":"Time Unit","slot":26}],"Return":[],"End":[],"Skip":[],"StopRepeat":[]},"event":{"Join":[],"Leave":[],"Command":[],"RightClick":[],"LeftClick":[],"ClickEntity":[],"ClickPlayer":[],"PlaceBlock":[],"BreakBlock":[],"SwapHands":[],"ChangeSlot":[],"TameEntity":[],"Walk":[],"Jump":[],"Sneak":[],"Unsneak":[],"StartSprint":[],"StopSprint":[],"StartFly":[],"StopFly":[],"Riptide":[],"Dismount":[],"HorseJump":[],"VehicleJump":[],"ClickMenuSlot":[],"ClickInvSlot":[],"PickUpItem":[],"DropItem":[],"Consume":[],"BreakItem":[],"CloseInv":[],"Fish":[],"PlayerTakeDmg":[],"PlayerDmgPlayer":[],"DamageEntity":[],"EntityDamagePlayer":[],"PlayerHeal":[],"ShootBow":[],"ShootProjectile":[],"ProjHit":[],"ProjDmgPlayer":[],"CloudImbuePlayer":[],"Death":[],"KillPlayer":[],"PlayerResurrect":[],"KillMob":[],"MobKillPlayer":[],"Respawn":[],"PackLoad":[],"PackDecline":[],"LoadCrossbow":[]},"entity_event":{"EntityDmgEntity":[],"EntityKillEntity":[],"EntityDmg":[],"ProjDmgEntity":[],"ProjKillEntity":[],"EntityDeath":[],"EntityExplode":[],"VehicleDamage":[],"BlockFall":[],"FallingBlockLand":[],"EntityResurrect":[],"RegrowWool":[]},"extras":{"func":[{"option":"False","tag":"Is Hidden","action":"dynamic","slot":26}],"process":[{"option":"False","tag":"Is Hidden","action":"dynamic","slot":26}],"start_process":[{"option":"Don't copy","tag":"Local Variables","action":"dynamic","slot":25},{"option":"With current targets","tag":"Target Mode","action":"dynamic","slot":26}],"call_func":[],"bracket":[],"else":[]}}
@@ -1,10 +0,0 @@
1
- dfpyre/__init__.py,sha256=apPsSxJ1Tztfl71MoORoSmDfX7LyKLYlLwOGeLQUitw,25
2
- dfpyre/data/data.json,sha256=M4EHXKkh7Cx7y3BQ6c3csvmNmSqP2oE4txLI9MZcDDA,30347
3
- dfpyre/items.py,sha256=ZL8bqRIzIGRCVOcF-KEY41SDnuLeVgkLQ1NAuhgobng,9225
4
- dfpyre/pyre.py,sha256=non7jsEZQGE77bi5pRxdozyvupapkdzJB4g3FLsbS74,17614
5
- dfpyre/scriptgen.py,sha256=TG_qYp2GChkwCD0f9WVCJOORDDL4RueuJeRkddB4YJw,5568
6
- dfpyre/style.py,sha256=mLW1CFvvi8_9fk8JaH10I5S4WI0YBdQIXHtI3G_4sR8,980
7
- dfpyre-0.6.2.dist-info/LICENSE,sha256=_vuDskB0ja2c-Fgm7Gt8Q8cO9NsLNpZAVyvmZwX7E6o,1060
8
- dfpyre-0.6.2.dist-info/METADATA,sha256=MiZUI08sBfME-FIUMIZehvParMxtG2LetdR31aBxHgM,11346
9
- dfpyre-0.6.2.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
10
- dfpyre-0.6.2.dist-info/RECORD,,
File without changes