dfpyre 0.3.0__tar.gz → 0.3.3__tar.gz
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-0.3.0 → dfpyre-0.3.3}/PKG-INFO +1 -1
- dfpyre-0.3.3/dfpyre/data/data.json +1 -0
- {dfpyre-0.3.0 → dfpyre-0.3.3}/dfpyre/pyre.py +67 -41
- {dfpyre-0.3.0 → dfpyre-0.3.3}/dfpyre.egg-info/PKG-INFO +1 -1
- {dfpyre-0.3.0 → dfpyre-0.3.3}/dfpyre.egg-info/SOURCES.txt +2 -1
- {dfpyre-0.3.0 → dfpyre-0.3.3}/setup.py +2 -1
- {dfpyre-0.3.0 → dfpyre-0.3.3}/LICENSE +0 -0
- {dfpyre-0.3.0 → dfpyre-0.3.3}/README.md +0 -0
- {dfpyre-0.3.0 → dfpyre-0.3.3}/dfpyre/__init__.py +0 -0
- {dfpyre-0.3.0 → dfpyre-0.3.3}/dfpyre/items.py +0 -0
- {dfpyre-0.3.0 → dfpyre-0.3.3}/dfpyre.egg-info/dependency_links.txt +0 -0
- {dfpyre-0.3.0 → dfpyre-0.3.3}/dfpyre.egg-info/top_level.txt +0 -0
- {dfpyre-0.3.0 → dfpyre-0.3.3}/setup.cfg +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"player_action": {"GiveItems": [], "SetHotbar": [], "SetInventory": [], "SetSlotItem": [], "SetEquipment": [{"item": {"id": "bl_tag", "data": {"option": "Main hand", "tag": "Equipment Slot", "action": "SetEquipment", "block": "player_action"}}, "slot": 26}], "SetArmor": [], "ReplaceItems": [], "RemoveItems": [], "ClearItems": [], "ClearInv": [{"item": {"id": "bl_tag", "data": {"option": "True", "tag": "Clear Crafting and Cursor", "action": "ClearInv", "block": "player_action"}}, "slot": 25}, {"item": {"id": "bl_tag", "data": {"option": "Entire inventory", "tag": "Clear Mode", "action": "ClearInv", "block": "player_action"}}, "slot": 26}], "SetCursorItem": [], "SaveInv": [], "LoadInv": [], "SetItemCooldown": [], "SendMessage": [{"item": {"id": "bl_tag", "data": {"option": "Add spaces", "tag": "Text Value Merging", "action": "SendMessage", "block": "player_action"}}, "slot": 25}, {"item": {"id": "bl_tag", "data": {"option": "Regular", "tag": "Alignment Mode", "action": "SendMessage", "block": "player_action"}}, "slot": 26}], "SendMessageSeq": [], "SendHover": [], "SendTitle": [], "ActionBar": [{"item": {"id": "bl_tag", "data": {"option": "No spaces", "tag": "Text Value Merging", "action": "ActionBar", "block": "player_action"}}, "slot": 26}], "OpenBook": [], " SetBossBar ": [{"item": {"id": "bl_tag", "data": {"option": "None", "tag": "Sky Effect", "action": " SetBossBar ", "block": "player_action"}}, "slot": 24}, {"item": {"id": "bl_tag", "data": {"option": "Solid", "tag": "Bar Style", "action": " SetBossBar ", "block": "player_action"}}, "slot": 25}, {"item": {"id": "bl_tag", "data": {"option": "Purple", "tag": "Bar Color", "action": " SetBossBar ", "block": "player_action"}}, "slot": 26}], " RemoveBossBar ": [], "SendAdvancement": [{"item": {"id": "bl_tag", "data": {"option": "Advancement", "tag": "Toast Type", "action": "SendAdvancement", "block": "player_action"}}, "slot": 26}], "SetTabListInfo": [{"item": {"id": "bl_tag", "data": {"option": "Header", "tag": "Player List Field", "action": "SetTabListInfo", "block": "player_action"}}, "slot": 26}], "PlaySound": [{"item": {"id": "bl_tag", "data": {"option": "Master", "tag": "Sound Source", "action": "PlaySound", "block": "player_action"}}, "slot": 26}], "StopSound": [{"item": {"id": "bl_tag", "data": {"option": "Master", "tag": "Sound Source", "action": "StopSound", "block": "player_action"}}, "slot": 26}], "PlaySoundSeq": [], "ShowInv": [], "ExpandInv": [], "SetMenuItem": [], "SetInvName": [], "AddInvRow": [{"item": {"id": "bl_tag", "data": {"option": "Bottom row", "tag": "New Row Position", "action": "AddInvRow", "block": "player_action"}}, "slot": 26}], "RemoveInvRow": [{"item": {"id": "bl_tag", "data": {"option": "Bottom row", "tag": "Row to Remove", "action": "RemoveInvRow", "block": "player_action"}}, "slot": 26}], "CloseInv": [], "OpenBlockInv": [], "SetScoreObj": [], "SetSidebar": [{"item": {"id": "bl_tag", "data": {"option": "Enable", "tag": "Sidebar", "action": "SetSidebar", "block": "player_action"}}, "slot": 26}], "SetScore": [], "RemoveScore": [], "ClearScoreboard": [], "Damage": [], "Heal": [], "SetHealth": [], "SetMaxHealth": [{"item": {"id": "bl_tag", "data": {"option": "False", "tag": "Heal Player to Max Health", "action": "SetMaxHealth", "block": "player_action"}}, "slot": 26}], "SetAbsorption": [], "SetFoodLevel": [], "SetSaturation": [], "GiveExp": [{"item": {"id": "bl_tag", "data": {"option": "Points", "tag": "Give Experience", "action": "GiveExp", "block": "player_action"}}, "slot": 26}], "SetExp": [{"item": {"id": "bl_tag", "data": {"option": "Level", "tag": "Set Experience", "action": "SetExp", "block": "player_action"}}, "slot": 26}], "GivePotion": [{"item": {"id": "bl_tag", "data": {"option": "True", "tag": "Show Icon", "action": "GivePotion", "block": "player_action"}}, "slot": 24}, {"item": {"id": "bl_tag", "data": {"option": "True", "tag": "Overwrite Effect", "action": "GivePotion", "block": "player_action"}}, "slot": 25}, {"item": {"id": "bl_tag", "data": {"option": "Regular", "tag": "Effect Particles", "action": "GivePotion", "block": "player_action"}}, "slot": 26}], "RemovePotion": [], "ClearPotions": [], "SetSlot": [], "SetAtkSpeed": [], "SetFireTicks": [], "SetFreezeTicks": [{"item": {"id": "bl_tag", "data": {"option": "Disable", "tag": "Ticking Locked", "action": "SetFreezeTicks", "block": "player_action"}}, "slot": 26}], "SetAirTicks": [], "SetInvulTicks": [], "SetFallDistance": [], "SetSpeed": [{"item": {"id": "bl_tag", "data": {"option": "Ground speed", "tag": "Speed Type", "action": "SetSpeed", "block": "player_action"}}, "slot": 26}], "SurvivalMode": [], "AdventureMode": [], "CreativeMode": [], "SpectatorMode": [], "SetAllowFlight": [{"item": {"id": "bl_tag", "data": {"option": "Enable", "tag": "Allow Flight", "action": "SetAllowFlight", "block": "player_action"}}, "slot": 26}], "SetAllowPVP": [{"item": {"id": "bl_tag", "data": {"option": "Disable", "tag": "PVP", "action": "SetAllowPVP", "block": "player_action"}}, "slot": 26}], "SetDropsEnabled": [{"item": {"id": "bl_tag", "data": {"option": "Enable", "tag": "Spawn Death Drops", "action": "SetDropsEnabled", "block": "player_action"}}, "slot": 26}], "SetInventoryKept": [{"item": {"id": "bl_tag", "data": {"option": "Enable", "tag": "Inventory Kept", "action": "SetInventoryKept", "block": "player_action"}}, "slot": 26}], "SetCollidable": [{"item": {"id": "bl_tag", "data": {"option": "Disable", "tag": "Collision", "action": "SetCollidable", "block": "player_action"}}, "slot": 26}], "EnableBlocks": [], "DisableBlocks": [], "InstantRespawn": [{"item": {"id": "bl_tag", "data": {"option": "Enable", "tag": "Instant Respawn", "action": "InstantRespawn", "block": "player_action"}}, "slot": 26}], "SetReducedDebug": [{"item": {"id": "bl_tag", "data": {"option": "True", "tag": "Reduced Debug Info Enabled", "action": "SetReducedDebug", "block": "player_action"}}, "slot": 26}], "Teleport": [{"item": {"id": "bl_tag", "data": {"option": "False", "tag": "Keep Velocity", "action": "Teleport", "block": "player_action"}}, "slot": 25}, {"item": {"id": "bl_tag", "data": {"option": "False", "tag": "Keep Current Rotation", "action": "Teleport", "block": "player_action"}}, "slot": 26}], "LaunchUp": [{"item": {"id": "bl_tag", "data": {"option": "True", "tag": "Add to Current Velocity", "action": "LaunchUp", "block": "player_action"}}, "slot": 26}], "LaunchFwd": [{"item": {"id": "bl_tag", "data": {"option": "True", "tag": "Add to Current Velocity", "action": "LaunchFwd", "block": "player_action"}}, "slot": 25}, {"item": {"id": "bl_tag", "data": {"option": "Pitch and Yaw", "tag": "Launch Axis", "action": "LaunchFwd", "block": "player_action"}}, "slot": 26}], "LaunchToward": [{"item": {"id": "bl_tag", "data": {"option": "True", "tag": "Add to Current Velocity", "action": "LaunchToward", "block": "player_action"}}, "slot": 25}, {"item": {"id": "bl_tag", "data": {"option": "False", "tag": "Ignore Distance", "action": "LaunchToward", "block": "player_action"}}, "slot": 26}], "RideEntity": [], "SetFlying": [{"item": {"id": "bl_tag", "data": {"option": "Enable", "tag": "Flying", "action": "SetFlying", "block": "player_action"}}, "slot": 26}], "SetGliding": [{"item": {"id": "bl_tag", "data": {"option": "Enable", "tag": "Gliding", "action": "SetGliding", "block": "player_action"}}, "slot": 26}], "BoostElytra": [], "SetRotation": [], "FaceLocation": [], "SetVelocity": [{"item": {"id": "bl_tag", "data": {"option": "False", "tag": "Add to Current Velocity", "action": "SetVelocity", "block": "player_action"}}, "slot": 26}], "SpectateTarget": [], "SetSpawnPoint": [], "LaunchProj": [], "SetPlayerTime": [], "SetPlayerWeather": [{"item": {"id": "bl_tag", "data": {"option": "Downfall", "tag": "Weather", "action": "SetPlayerWeather", "block": "player_action"}}, "slot": 26}], "": [], "DisplayBlock": [], "DisplayFracture": [{"item": {"id": "bl_tag", "data": {"option": "True", "tag": "Overwrite Previous Fracture", "action": "DisplayFracture", "block": "player_action"}}, "slot": 26}], "DisplayBlockOpen": [{"item": {"id": "bl_tag", "data": {"option": "Open", "tag": "Container State", "action": "DisplayBlockOpen", "block": "player_action"}}, "slot": 26}], "DisplayGateway": [{"item": {"id": "bl_tag", "data": {"option": "Initial beam", "tag": "Animation Type", "action": "DisplayGateway", "block": "player_action"}}, "slot": 26}], "DisplaySignText": [{"item": {"id": "bl_tag", "data": {"option": "Black", "tag": "Text Color", "action": "DisplaySignText", "block": "player_action"}}, "slot": 25}, {"item": {"id": "bl_tag", "data": {"option": "Disable", "tag": "Glowing", "action": "DisplaySignText", "block": "player_action"}}, "slot": 26}], "DisplayHologram": [], "SetFogDistance": [], "SetWorldBorder": [], "ShiftWorldBorder": [], "RmWorldBorder": [], "DisplayPickup": [], "SetEntityHidden": [{"item": {"id": "bl_tag", "data": {"option": "Enable", "tag": "Hidden", "action": "SetEntityHidden", "block": "player_action"}}, "slot": 26}], "Particle": [], "ParticleLine": [], "ParticleLineA": [], "ParticleCircle": [], "ParticleCircleA": [], "ParticleCuboid": [{"item": {"id": "bl_tag", "data": {"option": "Wireframe", "tag": "Fill Type", "action": "ParticleCuboid", "block": "player_action"}}, "slot": 26}], "ParticleCuboidA": [{"item": {"id": "bl_tag", "data": {"option": "Wireframe", "tag": "Fill Type", "action": "ParticleCuboidA", "block": "player_action"}}, "slot": 26}], "ParticleSpiral": [], "ParticleSpiralA": [], "ParticleSphere": [], "ParticleRay": [], "DisplayLightning": [], "Vibration": [], "MobDisguise": [], "PlayerDisguise": [], "BlockDisguise": [], "SetDisguiseVisible": [{"item": {"id": "bl_tag", "data": {"option": "Disable", "tag": "Disguise Visible", "action": "SetDisguiseVisible", "block": "player_action"}}, "slot": 26}], "Undisguise": [], "SetChatTag": [], "ChatColor": [], "SetNameColor": [], "SetArrowsStuck": [], "SetStingsStuck": [], "SetVisualFire": [{"item": {"id": "bl_tag", "data": {"option": "True", "tag": "On Fire", "action": "SetVisualFire", "block": "player_action"}}, "slot": 26}], "AttackAnimation": [{"item": {"id": "bl_tag", "data": {"option": "Swing main arm", "tag": "Animation Arm", "action": "AttackAnimation", "block": "player_action"}}, "slot": 26}], "SendAnimation": [{"item": {"id": "bl_tag", "data": {"option": "Hurt animation", "tag": "Animation Type", "action": "SendAnimation", "block": "player_action"}}, "slot": 26}], "SetStatus": [], "SetSkin": [], "RollbackBlocks": [], "Kick": []}, "game_action": {"SpawnMob": [], "SpawnItem": [{"item": {"id": "bl_tag", "data": {"option": "True", "tag": "Apply Item Motion", "action": "SpawnItem", "block": "game_action"}}, "slot": 26}], "SpawnVehicle": [], "SpawnExpOrb": [], "Explosion": [], "SpawnTNT": [], "SpawnFangs": [], "Firework": [{"item": {"id": "bl_tag", "data": {"option": "False", "tag": "Instant", "action": "Firework", "block": "game_action"}}, "slot": 25}, {"item": {"id": "bl_tag", "data": {"option": "Upwards", "tag": "Movement", "action": "Firework", "block": "game_action"}}, "slot": 26}], "LaunchProj": [], "Lightning": [], "SpawnPotionCloud": [], "FallingBlock": [{"item": {"id": "bl_tag", "data": {"option": "True", "tag": "Reform on Impact", "action": "FallingBlock", "block": "game_action"}}, "slot": 25}, {"item": {"id": "bl_tag", "data": {"option": "False", "tag": "Hurt Hit Entities", "action": "FallingBlock", "block": "game_action"}}, "slot": 26}], "SpawnArmorStand": [{"item": {"id": "bl_tag", "data": {"option": "Visible", "tag": "Visibility", "action": "SpawnArmorStand", "block": "game_action"}}, "slot": 26}], "SpawnCrystal": [{"item": {"id": "bl_tag", "data": {"option": "True", "tag": "Show Bottom", "action": "SpawnCrystal", "block": "game_action"}}, "slot": 26}], "SpawnEnderEye": [{"item": {"id": "bl_tag", "data": {"option": "Random", "tag": "End of Lifespan", "action": "SpawnEnderEye", "block": "game_action"}}, "slot": 26}], "ShulkerBullet": [], " SetBlock ": [], "SetRegion": [], "CloneRegion": [{"item": {"id": "bl_tag", "data": {"option": "False", "tag": "Ignore Air", "action": "CloneRegion", "block": "game_action"}}, "slot": 25}, {"item": {"id": "bl_tag", "data": {"option": "True", "tag": "Clone Block Entities", "action": "CloneRegion", "block": "game_action"}}, "slot": 26}], "BreakBlock": [], "SetBlockData": [{"item": {"id": "bl_tag", "data": {"option": "False", "tag": "Overwrite Existing Data", "action": "SetBlockData", "block": "game_action"}}, "slot": 26}], "TickBlock": [], "BoneMeal": [{"item": {"id": "bl_tag", "data": {"option": "True", "tag": "Show Particles", "action": "BoneMeal", "block": "game_action"}}, "slot": 26}], "GenerateTree": [{"item": {"id": "bl_tag", "data": {"option": "Oak Tree", "tag": "Tree Type", "action": "GenerateTree", "block": "game_action"}}, "slot": 26}], "SetBlockGrowth": [{"item": {"id": "bl_tag", "data": {"option": "Growth Stage Number", "tag": "Growth Unit", "action": "SetBlockGrowth", "block": "game_action"}}, "slot": 26}], "FillContainer": [], "SetContainer": [], "SetItemInSlot": [], "ReplaceItems": [], "RemoveItems": [], "ClearItems": [], "ClearContainer": [], "SetContainerName": [], "LockContainer": [], "ChangeSign": [], "SignColor": [{"item": {"id": "bl_tag", "data": {"option": "Black", "tag": "Text Color", "action": "SignColor", "block": "game_action"}}, "slot": 25}, {"item": {"id": "bl_tag", "data": {"option": "Disable", "tag": "Glowing", "action": "SignColor", "block": "game_action"}}, "slot": 26}], "SetHead": [], "SetFurnaceSpeed": [], "SetCampfireItem": [{"item": {"id": "bl_tag", "data": {"option": "1", "tag": "Campfire Slot", "action": "SetCampfireItem", "block": "game_action"}}, "slot": 26}], "SetLecternBook": [], "CancelEvent": [], "UncancelEvent": [], "SetEventDamage": [], "SetEventHeal": [], "SetEventXP": [], "SetEventProj": [], "SetEventSound": [], "BlockDropsOn": [], "BlockDropsOff": [], "WebRequest": [{"item": {"id": "bl_tag", "data": {"option": "Post", "tag": "Request Method", "action": "WebRequest", "block": "game_action"}}, "slot": 25}, {"item": {"id": "bl_tag", "data": {"option": "text/plain", "tag": "Content Type", "action": "WebRequest", "block": "game_action"}}, "slot": 26}], "DiscordWebhook": []}, "entity_action": {"Heal": [], "SetHealth": [], "SetAbsorption": [], "SetMaxHealth": [{"item": {"id": "bl_tag", "data": {"option": "False", "tag": "Heal Mob to Max Health", "action": "SetMaxHealth", "block": "entity_action"}}, "slot": 26}], "Damage": [], "SetFireTicks": [], "SetFreezeTicks": [{"item": {"id": "bl_tag", "data": {"option": "Disable", "tag": "Ticking Locked", "action": "SetFreezeTicks", "block": "entity_action"}}, "slot": 26}], "SetInvulTicks": [], "GivePotion": [{"item": {"id": "bl_tag", "data": {"option": "True", "tag": "Overwrite Effect", "action": "GivePotion", "block": "entity_action"}}, "slot": 25}, {"item": {"id": "bl_tag", "data": {"option": "Regular", "tag": "Effect Particles", "action": "GivePotion", "block": "entity_action"}}, "slot": 26}], "RemovePotion": [], "ClearPotions": [], "SetAge": [{"item": {"id": "bl_tag", "data": {"option": "Don't change", "tag": "Age Lock", "action": "SetAge", "block": "entity_action"}}, "slot": 26}], "SetFallDistance": [], "SetCreeperFuse": [], "SetCreeperPower": [], "SetCloudRadius": [], "SetVillagerExp": [], "SetWitherInvul": [], "SetHorseJump": [], "SetPickupDelay": [], "SetFishingTime": [], "SetWardenAnger": [], "Teleport": [{"item": {"id": "bl_tag", "data": {"option": "False", "tag": "Keep Current Rotation", "action": "Teleport", "block": "entity_action"}}, "slot": 26}], "LaunchUp": [{"item": {"id": "bl_tag", "data": {"option": "True", "tag": "Add to Current Velocity", "action": "LaunchUp", "block": "entity_action"}}, "slot": 26}], "LaunchFwd": [{"item": {"id": "bl_tag", "data": {"option": "True", "tag": "Add to Current Velocity", "action": "LaunchFwd", "block": "entity_action"}}, "slot": 25}, {"item": {"id": "bl_tag", "data": {"option": "Pitch and Yaw", "tag": "Launch Axis", "action": "LaunchFwd", "block": "entity_action"}}, "slot": 26}], "LaunchToward": [{"item": {"id": "bl_tag", "data": {"option": "True", "tag": "Add to Current Velocity", "action": "LaunchToward", "block": "entity_action"}}, "slot": 25}, {"item": {"id": "bl_tag", "data": {"option": "False", "tag": "Ignore Distance", "action": "LaunchToward", "block": "entity_action"}}, "slot": 26}], "SetGliding": [{"item": {"id": "bl_tag", "data": {"option": "Enable", "tag": "Gliding", "action": "SetGliding", "block": "entity_action"}}, "slot": 26}], "SetGravity": [{"item": {"id": "bl_tag", "data": {"option": "Disable", "tag": "Gravity", "action": "SetGravity", "block": "entity_action"}}, "slot": 26}], "RideEntity": [], "AttachLead": [], "SetRotation": [], "SetVelocity": [{"item": {"id": "bl_tag", "data": {"option": "False", "tag": "Add to Current Velocity", "action": "SetVelocity", "block": "entity_action"}}, "slot": 26}], "SetName": [{"item": {"id": "bl_tag", "data": {"option": "False", "tag": "Hide Name Tag", "action": "SetName", "block": "entity_action"}}, "slot": 26}], "SetNameVisible": [{"item": {"id": "bl_tag", "data": {"option": "Enable", "tag": "Name Tag Visible", "action": "SetNameVisible", "block": "entity_action"}}, "slot": 26}], "SetNameColor": [], "SetAI": [{"item": {"id": "bl_tag", "data": {"option": "None", "tag": "AI", "action": "SetAI", "block": "entity_action"}}, "slot": 26}], "SetSilenced": [{"item": {"id": "bl_tag", "data": {"option": "Enable", "tag": "Silenced", "action": "SetSilenced", "block": "entity_action"}}, "slot": 26}], "SetDeathDrops": [{"item": {"id": "bl_tag", "data": {"option": "Enable", "tag": "Has Death Drops", "action": "SetDeathDrops", "block": "entity_action"}}, "slot": 26}], "SetCollidable": [{"item": {"id": "bl_tag", "data": {"option": "Disable", "tag": "Collision", "action": "SetCollidable", "block": "entity_action"}}, "slot": 26}], "SetInvulnerable": [{"item": {"id": "bl_tag", "data": {"option": "Enable", "tag": "Invulnerable", "action": "SetInvulnerable", "block": "entity_action"}}, "slot": 26}], "SetMobSitting": [{"item": {"id": "bl_tag", "data": {"option": "Enable", "tag": "Is Sitting", "action": "SetMobSitting", "block": "entity_action"}}, "slot": 26}], "SetBaby": [{"item": {"id": "bl_tag", "data": {"option": "Enable", "tag": "Baby", "action": "SetBaby", "block": "entity_action"}}, "slot": 26}], "SetSize": [], "SetSheepSheared": [{"item": {"id": "bl_tag", "data": {"option": "Enable", "tag": "Sheared", "action": "SetSheepSheared", "block": "entity_action"}}, "slot": 26}], "SetSaddle": [{"item": {"id": "bl_tag", "data": {"option": "Enable", "tag": "Saddle", "action": "SetSaddle", "block": "entity_action"}}, "slot": 26}], "SetCarryingChest": [{"item": {"id": "bl_tag", "data": {"option": "Enable", "tag": "Carrying Chest", "action": "SetCarryingChest", "block": "entity_action"}}, "slot": 26}], "ArmorStandSlots": [{"item": {"id": "bl_tag", "data": {"option": "Take, swap or place item", "tag": "Interactions", "action": "ArmorStandSlots", "block": "entity_action"}}, "slot": 25}, {"item": {"id": "bl_tag", "data": {"option": "All", "tag": "Equipment Slot", "action": "ArmorStandSlots", "block": "entity_action"}}, "slot": 26}], "SetMarker": [{"item": {"id": "bl_tag", "data": {"option": "Enable", "tag": "Marker", "action": "SetMarker", "block": "entity_action"}}, "slot": 26}], "SetAngry": [{"item": {"id": "bl_tag", "data": {"option": "Enable", "tag": "Angry", "action": "SetAngry", "block": "entity_action"}}, "slot": 26}], "SetRearing": [{"item": {"id": "bl_tag", "data": {"option": "Enable", "tag": "Rearing", "action": "SetRearing", "block": "entity_action"}}, "slot": 26}], "SetRiptiding": [{"item": {"id": "bl_tag", "data": {"option": "Enable", "tag": "Riptiding", "action": "SetRiptiding", "block": "entity_action"}}, "slot": 26}], "CreeperCharged": [{"item": {"id": "bl_tag", "data": {"option": "Enable", "tag": "Charged", "action": "CreeperCharged", "block": "entity_action"}}, "slot": 26}], "SetInvisible": [{"item": {"id": "bl_tag", "data": {"option": "Enable", "tag": "Invisible", "action": "SetInvisible", "block": "entity_action"}}, "slot": 26}], "SetGoatScreaming": [{"item": {"id": "bl_tag", "data": {"option": "Enable", "tag": "Screams", "action": "SetGoatScreaming", "block": "entity_action"}}, "slot": 26}], "SetGoatHorns": [{"item": {"id": "bl_tag", "data": {"option": "No Change", "tag": "Left Horn", "action": "SetGoatHorns", "block": "entity_action"}}, "slot": 25}, {"item": {"id": "bl_tag", "data": {"option": "No Change", "tag": "Right Horn", "action": "SetGoatHorns", "block": "entity_action"}}, "slot": 26}], "Tame": [], "EndCrystalBeam": [], "SetPandaGene": [{"item": {"id": "bl_tag", "data": {"option": "Both", "tag": "Set Gene", "action": "SetPandaGene", "block": "entity_action"}}, "slot": 25}, {"item": {"id": "bl_tag", "data": {"option": "Aggressive", "tag": "Gene Type", "action": "SetPandaGene", "block": "entity_action"}}, "slot": 26}], "SetProfession": [{"item": {"id": "bl_tag", "data": {"option": "Armorer", "tag": "Profession", "action": "SetProfession", "block": "entity_action"}}, "slot": 26}], "SetProjSource": [], "SetPersistent": [{"item": {"id": "bl_tag", "data": {"option": "Enable", "tag": "Persistent", "action": "SetPersistent", "block": "entity_action"}}, "slot": 26}], "MobDisguise": [], "PlayerDisguise": [], "BlockDisguise": [], "Undisguise": [], "SetGlowing": [{"item": {"id": "bl_tag", "data": {"option": "Enable", "tag": "Glowing", "action": "SetGlowing", "block": "entity_action"}}, "slot": 26}], "SetDyeColor": [{"item": {"id": "bl_tag", "data": {"option": "White", "tag": "Dye", "action": "SetDyeColor", "block": "entity_action"}}, "slot": 26}], "SetFishPattern": [{"item": {"id": "bl_tag", "data": {"option": "White", "tag": "Pattern Color", "action": "SetFishPattern", "block": "entity_action"}}, "slot": 24}, {"item": {"id": "bl_tag", "data": {"option": "White", "tag": "Body Color", "action": "SetFishPattern", "block": "entity_action"}}, "slot": 25}, {"item": {"id": "bl_tag", "data": {"option": "Kob", "tag": "Pattern", "action": "SetFishPattern", "block": "entity_action"}}, "slot": 26}], "SetRabbitType": [{"item": {"id": "bl_tag", "data": {"option": "Brown", "tag": "Skin Type", "action": "SetRabbitType", "block": "entity_action"}}, "slot": 26}], "SetCatType": [{"item": {"id": "bl_tag", "data": {"option": "Tabby", "tag": "Skin Type", "action": "SetCatType", "block": "entity_action"}}, "slot": 26}], "MooshroomType": [{"item": {"id": "bl_tag", "data": {"option": "Red", "tag": "Mooshroom Variant", "action": "MooshroomType", "block": "entity_action"}}, "slot": 26}], "SetFoxType": [{"item": {"id": "bl_tag", "data": {"option": "Red", "tag": "Fox Type", "action": "SetFoxType", "block": "entity_action"}}, "slot": 26}], "SetParrotColor": [{"item": {"id": "bl_tag", "data": {"option": "Red", "tag": "Parrot Color", "action": "SetParrotColor", "block": "entity_action"}}, "slot": 26}], "SetHorsePattern": [{"item": {"id": "bl_tag", "data": {"option": "Flaxen chestnut", "tag": "Horse Color", "action": "SetHorsePattern", "block": "entity_action"}}, "slot": 25}, {"item": {"id": "bl_tag", "data": {"option": "Stockings and blaze", "tag": "Horse Markings", "action": "SetHorsePattern", "block": "entity_action"}}, "slot": 26}], "SetAxolotlColor": [{"item": {"id": "bl_tag", "data": {"option": "Pink", "tag": "Axolotl Color", "action": "SetAxolotlColor", "block": "entity_action"}}, "slot": 26}], "SetLlamaColor": [{"item": {"id": "bl_tag", "data": {"option": "Brown", "tag": "Llama Color", "action": "SetLlamaColor", "block": "entity_action"}}, "slot": 26}], "SetFrogType": [{"item": {"id": "bl_tag", "data": {"option": "Temperate", "tag": "Frog Type", "action": "SetFrogType", "block": "entity_action"}}, "slot": 26}], "SetVillagerBiome": [{"item": {"id": "bl_tag", "data": {"option": "Desert", "tag": "Biome", "action": "SetVillagerBiome", "block": "entity_action"}}, "slot": 26}], "SnowmanPumpkin": [{"item": {"id": "bl_tag", "data": {"option": "Disable", "tag": "Pumpkin", "action": "SnowmanPumpkin", "block": "entity_action"}}, "slot": 26}], "SetEndermanBlock": [], "SetMinecartBlock": [], "ArmorStandParts": [{"item": {"id": "bl_tag", "data": {"option": "Enable", "tag": "Arms", "action": "ArmorStandParts", "block": "entity_action"}}, "slot": 25}, {"item": {"id": "bl_tag", "data": {"option": "Enable", "tag": "Base Plate", "action": "ArmorStandParts", "block": "entity_action"}}, "slot": 26}], "SetBeeNectar": [{"item": {"id": "bl_tag", "data": {"option": "Enable", "tag": "Has Nectar", "action": "SetBeeNectar", "block": "entity_action"}}, "slot": 26}], "ProjectileItem": [], "SetVisualFire": [{"item": {"id": "bl_tag", "data": {"option": "True", "tag": "On Fire", "action": "SetVisualFire", "block": "entity_action"}}, "slot": 26}], "SendAnimation": [{"item": {"id": "bl_tag", "data": {"option": "Hurt animation", "tag": "Animation Type", "action": "SendAnimation", "block": "entity_action"}}, "slot": 26}], "AttackAnimation": [{"item": {"id": "bl_tag", "data": {"option": "Swing main arm", "tag": "Animation Arm", "action": "AttackAnimation", "block": "entity_action"}}, "slot": 26}], "ArmorStandPose": [{"item": {"id": "bl_tag", "data": {"option": "Head", "tag": "Armor Stand Part", "action": "ArmorStandPose", "block": "entity_action"}}, "slot": 26}], " SetPose ": [{"item": {"id": "bl_tag", "data": {"option": "Standing", "tag": "Pose", "action": " SetPose ", "block": "entity_action"}}, "slot": 26}], "SetFoxLeaping": [{"item": {"id": "bl_tag", "data": {"option": "Enable", "tag": "Leaping", "action": "SetFoxLeaping", "block": "entity_action"}}, "slot": 26}], "SetArmsRaised": [{"item": {"id": "bl_tag", "data": {"option": "Enable", "tag": "Arms Raised", "action": "SetArmsRaised", "block": "entity_action"}}, "slot": 26}], "SetCatResting": [{"item": {"id": "bl_tag", "data": {"option": "Enable", "tag": "Resting", "action": "SetCatResting", "block": "entity_action"}}, "slot": 26}], "SetGlowSquidDark": [], "SetCelebrating": [{"item": {"id": "bl_tag", "data": {"option": "Enable", "tag": "Celebrate", "action": "SetCelebrating", "block": "entity_action"}}, "slot": 26}], "SetTarget": [], "MoveToLoc": [], "Jump": [], "Ram": [], "FrogEat": [], "SheepEat": [], "IgniteCreeper": [], "Explode": [], "FoxSleeping": [{"item": {"id": "bl_tag", "data": {"option": "Enable", "tag": "Sleeping", "action": "FoxSleeping", "block": "entity_action"}}, "slot": 26}], "SetDragonPhase": [{"item": {"id": "bl_tag", "data": {"option": "Flying", "tag": "Phase", "action": "SetDragonPhase", "block": "entity_action"}}, "slot": 26}], "SetBulletTarget": [], "UseItem": [{"item": {"id": "bl_tag", "data": {"option": "Main Hand", "tag": "Hand", "action": "UseItem", "block": "entity_action"}}, "slot": 25}, {"item": {"id": "bl_tag", "data": {"option": "Enable", "tag": "Use Item", "action": "UseItem", "block": "entity_action"}}, "slot": 26}], "Remove": [], "SetEquipment": [{"item": {"id": "bl_tag", "data": {"option": "Main hand", "tag": "Equipment Slot", "action": "SetEquipment", "block": "entity_action"}}, "slot": 26}], "SetArmor": [], "LaunchProj": [], "ShearSheep": [], "SetCustomTag": [], "GetCustomTag": [], "RemoveCustomTag": [], "SetItem": [], "SetDigging": [{"item": {"id": "bl_tag", "data": {"option": "Emerge", "tag": "Digging Type", "action": "SetDigging", "block": "entity_action"}}, "slot": 26}]}, "set_var": {"=": [], "RandomValue": [], "PurgeVars": [{"item": {"id": "bl_tag", "data": {"option": "Full word(s) in name", "tag": "Match Requirement", "action": "PurgeVars", "block": "set_var"}}, "slot": 25}, {"item": {"id": "bl_tag", "data": {"option": "False", "tag": "Ignore Case", "action": "PurgeVars", "block": "set_var"}}, "slot": 26}], "+": [], "-": [], "x": [], "/": [{"item": {"id": "bl_tag", "data": {"option": "Default", "tag": "Division Mode", "action": "/", "block": "set_var"}}, "slot": 26}], "%": [], "+=": [], "-=": [], "Exponent": [], "Root": [], "Logarithm": [], "ParseNumber": [], "AbsoluteValue": [], "ClampNumber": [], "WrapNumber": [], "Average": [], "RandomNumber": [{"item": {"id": "bl_tag", "data": {"option": "Whole number", "tag": "Rounding Mode", "action": "RandomNumber", "block": "set_var"}}, "slot": 26}], "RoundNumber": [{"item": {"id": "bl_tag", "data": {"option": "Nearest", "tag": "Round Mode", "action": "RoundNumber", "block": "set_var"}}, "slot": 26}], "NormalRandom": [{"item": {"id": "bl_tag", "data": {"option": "Normal", "tag": "Distribution", "action": "NormalRandom", "block": "set_var"}}, "slot": 26}], "Sine": [{"item": {"id": "bl_tag", "data": {"option": "Sine", "tag": "Sine Variant", "action": "Sine", "block": "set_var"}}, "slot": 25}, {"item": {"id": "bl_tag", "data": {"option": "Degrees", "tag": "Input", "action": "Sine", "block": "set_var"}}, "slot": 26}], "Cosine": [{"item": {"id": "bl_tag", "data": {"option": "Cosine", "tag": "Cosine Variant", "action": "Cosine", "block": "set_var"}}, "slot": 25}, {"item": {"id": "bl_tag", "data": {"option": "Degrees", "tag": "Input", "action": "Cosine", "block": "set_var"}}, "slot": 26}], "Tangent": [{"item": {"id": "bl_tag", "data": {"option": "Tangent", "tag": "Tangent Variant", "action": "Tangent", "block": "set_var"}}, "slot": 25}, {"item": {"id": "bl_tag", "data": {"option": "Degrees", "tag": "Input", "action": "Tangent", "block": "set_var"}}, "slot": 26}], "PerlinNoise": [{"item": {"id": "bl_tag", "data": {"option": "Brownian", "tag": "Fractal Type", "action": "PerlinNoise", "block": "set_var"}}, "slot": 26}], "VoronoiNoise": [{"item": {"id": "bl_tag", "data": {"option": "Euclidean", "tag": "Cell Edge Type", "action": "VoronoiNoise", "block": "set_var"}}, "slot": 26}], "WorleyNoise": [{"item": {"id": "bl_tag", "data": {"option": "Euclidean", "tag": "Cell Edge Type", "action": "WorleyNoise", "block": "set_var"}}, "slot": 25}, {"item": {"id": "bl_tag", "data": {"option": "Primary", "tag": "Distance Calculation", "action": "WorleyNoise", "block": "set_var"}}, "slot": 26}], "Bitwise": [{"item": {"id": "bl_tag", "data": {"option": "|", "tag": "Operator", "action": "Bitwise", "block": "set_var"}}, "slot": 26}], "Text": [{"item": {"id": "bl_tag", "data": {"option": "No spaces", "tag": "Text Value Merging", "action": "Text", "block": "set_var"}}, "slot": 26}], "ReplaceText": [{"item": {"id": "bl_tag", "data": {"option": "All occurrences", "tag": "Replacement Type", "action": "ReplaceText", "block": "set_var"}}, "slot": 25}, {"item": {"id": "bl_tag", "data": {"option": "Disable", "tag": "Regular Expressions", "action": "ReplaceText", "block": "set_var"}}, "slot": 26}], "RemoveText": [{"item": {"id": "bl_tag", "data": {"option": "Disable", "tag": "Regular Expressions", "action": "RemoveText", "block": "set_var"}}, "slot": 26}], "TrimText": [], "SplitText": [], "JoinText": [], "SetCase": [{"item": {"id": "bl_tag", "data": {"option": "UPPERCASE", "tag": "Capitalization Type", "action": "SetCase", "block": "set_var"}}, "slot": 26}], "TranslateColors": [{"item": {"id": "bl_tag", "data": {"option": "From & to color", "tag": "Translation Type", "action": "TranslateColors", "block": "set_var"}}, "slot": 26}], "TextLength": [], "RepeatText": [], "FormatTime": [{"item": {"id": "bl_tag", "data": {"option": "2020/08/17 17:20:54", "tag": "Format", "action": "FormatTime", "block": "set_var"}}, "slot": 26}], "GetCoord": [{"item": {"id": "bl_tag", "data": {"option": "Plot coordinate", "tag": "Coordinate Type", "action": "GetCoord", "block": "set_var"}}, "slot": 25}, {"item": {"id": "bl_tag", "data": {"option": "X", "tag": "Coordinate", "action": "GetCoord", "block": "set_var"}}, "slot": 26}], "SetCoord": [{"item": {"id": "bl_tag", "data": {"option": "Plot coordinate", "tag": "Coordinate Type", "action": "SetCoord", "block": "set_var"}}, "slot": 25}, {"item": {"id": "bl_tag", "data": {"option": "X", "tag": "Coordinate", "action": "SetCoord", "block": "set_var"}}, "slot": 26}], "SetAllCoords": [{"item": {"id": "bl_tag", "data": {"option": "Plot coordinate", "tag": "Coordinate Type", "action": "SetAllCoords", "block": "set_var"}}, "slot": 26}], "ShiftOnAxis": [{"item": {"id": "bl_tag", "data": {"option": "X", "tag": "Coordinate", "action": "ShiftOnAxis", "block": "set_var"}}, "slot": 26}], "ShiftAllAxes": [], "ShiftInDirection": [{"item": {"id": "bl_tag", "data": {"option": "Forward", "tag": "Direction", "action": "ShiftInDirection", "block": "set_var"}}, "slot": 26}], "ShiftAllDirections": [], "ShiftToward": [], "ShiftOnVector": [{"item": {"id": "bl_tag", "data": {"option": "False", "tag": "Add Location Rotation", "action": "ShiftOnVector", "block": "set_var"}}, "slot": 26}], "GetDirection": [], " SetDirection ": [], "ShiftRotation": [{"item": {"id": "bl_tag", "data": {"option": "Pitch", "tag": "Rotation Axis", "action": "ShiftRotation", "block": "set_var"}}, "slot": 26}], "FaceLocation": [{"item": {"id": "bl_tag", "data": {"option": "Toward location", "tag": "Face Direction", "action": "FaceLocation", "block": "set_var"}}, "slot": 26}], "AlignLoc": [{"item": {"id": "bl_tag", "data": {"option": "Keep rotation", "tag": "Rotation", "action": "AlignLoc", "block": "set_var"}}, "slot": 24}, {"item": {"id": "bl_tag", "data": {"option": "All coordinates", "tag": "Coordinates", "action": "AlignLoc", "block": "set_var"}}, "slot": 25}, {"item": {"id": "bl_tag", "data": {"option": "Block center", "tag": "Alignment Mode", "action": "AlignLoc", "block": "set_var"}}, "slot": 26}], "Distance": [{"item": {"id": "bl_tag", "data": {"option": "Distance 3D (X/Y/Z)", "tag": "Distance Type", "action": "Distance", "block": "set_var"}}, "slot": 26}], "GetCenterLoc": [], "RandomLoc": [], "GetItemType": [{"item": {"id": "bl_tag", "data": {"option": "Item ID (golden_apple)", "tag": "Return Value Type", "action": "GetItemType", "block": "set_var"}}, "slot": 26}], "SetItemType": [], "GetItemName": [], "SetItemName": [], "GetItemLore": [], "SetItemLore": [], "GetItemAmount": [], "SetItemAmount": [], "GetMaxItemAmount": [], "GetItemDura": [{"item": {"id": "bl_tag", "data": {"option": "Get Damage", "tag": "Durability Type", "action": "GetItemDura", "block": "set_var"}}, "slot": 26}], "SetItemDura": [{"item": {"id": "bl_tag", "data": {"option": "Set Damage", "tag": "Durability Type", "action": "SetItemDura", "block": "set_var"}}, "slot": 26}], "SetBreakability": [{"item": {"id": "bl_tag", "data": {"option": "Unbreakable", "tag": "Breakability", "action": "SetBreakability", "block": "set_var"}}, "slot": 26}], " GetItemEnchants ": [], " SetItemEnchants ": [], "AddItemEnchant": [], "RemItemEnchant": [], "GetHeadOwner": [{"item": {"id": "bl_tag", "data": {"option": "Owner Name", "tag": "Text Value", "action": "GetHeadOwner", "block": "set_var"}}, "slot": 26}], "SetHeadTexture": [], "GetBookText": [], "SetBookText": [], "GetItemTag": [], "GetAllItemTags": [], "SetItemTag": [], "RemoveItemTag": [], "SetModelData": [], "GetItemEffects": [], "SetItemEffects": [], "SetItemFlags": [{"item": {"id": "bl_tag", "data": {"option": "No Change", "tag": "Hide Color", "action": "SetItemFlags", "block": "set_var"}}, "slot": 20}, {"item": {"id": "bl_tag", "data": {"option": "No Change", "tag": "Hide Enchantments", "action": "SetItemFlags", "block": "set_var"}}, "slot": 21}, {"item": {"id": "bl_tag", "data": {"option": "No Change", "tag": "Hide Attributes", "action": "SetItemFlags", "block": "set_var"}}, "slot": 22}, {"item": {"id": "bl_tag", "data": {"option": "No Change", "tag": "Hide Unbreakable", "action": "SetItemFlags", "block": "set_var"}}, "slot": 23}, {"item": {"id": "bl_tag", "data": {"option": "No Change", "tag": "Hide Can Destroy", "action": "SetItemFlags", "block": "set_var"}}, "slot": 24}, {"item": {"id": "bl_tag", "data": {"option": "No Change", "tag": "Hide Can Place On", "action": "SetItemFlags", "block": "set_var"}}, "slot": 25}, {"item": {"id": "bl_tag", "data": {"option": "No Change", "tag": "Hide Potion Effects", "action": "SetItemFlags", "block": "set_var"}}, "slot": 26}], "SetCanPlaceOn": [], "SetCanDestroy": [], "GetItemRarity": [], "GetLodestoneLoc": [], "SetLodestoneLoc": [{"item": {"id": "bl_tag", "data": {"option": "False", "tag": "Require Lodestone at Location", "action": "SetLodestoneLoc", "block": "set_var"}}, "slot": 26}], "GetItemColor": [], "SetItemColor": [], "GetItemAttribute": [{"item": {"id": "bl_tag", "data": {"option": "Armor", "tag": "Attribute", "action": "GetItemAttribute", "block": "set_var"}}, "slot": 25}, {"item": {"id": "bl_tag", "data": {"option": "Any", "tag": "Active Equipment Slot", "action": "GetItemAttribute", "block": "set_var"}}, "slot": 26}], "AddItemAttribute": [{"item": {"id": "bl_tag", "data": {"option": "Armor", "tag": "Attribute", "action": "AddItemAttribute", "block": "set_var"}}, "slot": 24}, {"item": {"id": "bl_tag", "data": {"option": "Add number", "tag": "Operation", "action": "AddItemAttribute", "block": "set_var"}}, "slot": 25}, {"item": {"id": "bl_tag", "data": {"option": "Main hand", "tag": "Active Equipment Slot", "action": "AddItemAttribute", "block": "set_var"}}, "slot": 26}], "SetMapTexture": [], "CreateList": [], "AppendValue": [], "AppendList": [], "GetListValue": [], "SetListValue": [], "GetValueIndex": [{"item": {"id": "bl_tag", "data": {"option": "Ascending (first index)", "tag": "Search Order", "action": "GetValueIndex", "block": "set_var"}}, "slot": 26}], "ListLength": [], "InsertListValue": [], "RemoveListValue": [], "RemoveListIndex": [], "TrimList": [], "SortList": [{"item": {"id": "bl_tag", "data": {"option": "Ascending", "tag": "Sort Order", "action": "SortList", "block": "set_var"}}, "slot": 26}], "ReverseList": [], "RandomizeList": [], "CreateDict": [], "SetDictValue": [], "GetDictValue": [], "GetDictSize": [], "RemoveDictEntry": [], "ClearDict": [], "GetDictKeys": [], "GetDictValues": [], "AppendDict": [], "SortDict": [{"item": {"id": "bl_tag", "data": {"option": "Sort by Key", "tag": "Sorting Type", "action": "SortDict", "block": "set_var"}}, "slot": 25}, {"item": {"id": "bl_tag", "data": {"option": "Ascending", "tag": "Sorting Order", "action": "SortDict", "block": "set_var"}}, "slot": 26}], "GetParticleType": [], "SetParticleType": [], "GetParticleAmount": [], "SetParticleAmount": [], "GetParticleSprd": [{"item": {"id": "bl_tag", "data": {"option": "Horizontal", "tag": "Spread", "action": "GetParticleSprd", "block": "set_var"}}, "slot": 26}], "SetParticleSprd": [], "GetParticleSize": [], "SetParticleSize": [], "GetParticleMat": [], "SetParticleMat": [], "GetParticleColor": [], "SetParticleColor": [], "GetParticleMotion": [], "SetParticleMotion": [], "GetParticleRoll": [], "SetParticleRoll": [], "GetBlockType": [{"item": {"id": "bl_tag", "data": {"option": "Block ID (oak_log)", "tag": "Return Value Type", "action": "GetBlockType", "block": "set_var"}}, "slot": 26}], "GetBlockData": [], "GetAllBlockData": [{"item": {"id": "bl_tag", "data": {"option": "True", "tag": "Hide Default", "action": "GetAllBlockData", "block": "set_var"}}, "slot": 26}], "GetBlockGrowth": [{"item": {"id": "bl_tag", "data": {"option": "Growth stage number", "tag": "Growth Unit", "action": "GetBlockGrowth", "block": "set_var"}}, "slot": 26}], "GetBlockPower": [], "GetLight": [{"item": {"id": "bl_tag", "data": {"option": "Combined light", "tag": "Light Type", "action": "GetLight", "block": "set_var"}}, "slot": 26}], "GetSignText": [{"item": {"id": "bl_tag", "data": {"option": "1", "tag": "Sign Line", "action": "GetSignText", "block": "set_var"}}, "slot": 26}], "GetContainerName": [], "ContainerLock": [], "GetContainerItems": [{"item": {"id": "bl_tag", "data": {"option": "False", "tag": "Ignore Empty Slots", "action": "GetContainerItems", "block": "set_var"}}, "slot": 26}], "GetLecternBook": [], "GetLecternPage": [], "Raycast": [{"item": {"id": "bl_tag", "data": {"option": "False", "tag": "Entity Collision", "action": "Raycast", "block": "set_var"}}, "slot": 25}, {"item": {"id": "bl_tag", "data": {"option": "All blocks", "tag": "Block Collision", "action": "Raycast", "block": "set_var"}}, "slot": 26}], "GetPotionType": [], "SetPotionType": [], "GetPotionAmp": [], "SetPotionAmp": [], "GetPotionDur": [], "SetPotionDur": [], "GetSoundType": [], "SetSoundType": [], "GetSoundPitch": [{"item": {"id": "bl_tag", "data": {"option": "Pitch (number)", "tag": "Return Value Type", "action": "GetSoundPitch", "block": "set_var"}}, "slot": 26}], "SetSoundPitch": [], "GetSoundVolume": [], "SetSoundVolume": [], "RGBColor": [], "HSBColor": [], "HSLColor": [], "GetColorChannels": [{"item": {"id": "bl_tag", "data": {"option": "RGB", "tag": "Color Channels", "action": "GetColorChannels", "block": "set_var"}}, "slot": 26}], "Vector": [], "VectorBetween": [], "GetVectorComp": [{"item": {"id": "bl_tag", "data": {"option": "X", "tag": "Component", "action": "GetVectorComp", "block": "set_var"}}, "slot": 26}], "SetVectorComp": [{"item": {"id": "bl_tag", "data": {"option": "X", "tag": "Component", "action": "SetVectorComp", "block": "set_var"}}, "slot": 26}], "GetVectorLength": [{"item": {"id": "bl_tag", "data": {"option": "Length", "tag": "Length Type", "action": "GetVectorLength", "block": "set_var"}}, "slot": 26}], "SetVectorLength": [], "MultiplyVector": [], "AddVectors": [], "SubtractVectors": [], "AlignVector": [], "RotateAroundAxis": [{"item": {"id": "bl_tag", "data": {"option": "X", "tag": "Axis", "action": "RotateAroundAxis", "block": "set_var"}}, "slot": 25}, {"item": {"id": "bl_tag", "data": {"option": "Degrees", "tag": "Angle Units", "action": "RotateAroundAxis", "block": "set_var"}}, "slot": 26}], "RotateAroundVec": [{"item": {"id": "bl_tag", "data": {"option": "Degrees", "tag": "Angle Units", "action": "RotateAroundVec", "block": "set_var"}}, "slot": 26}], "ReflectVector": [], "CrossProduct": [], "DotProduct": [], "DirectionName": []}, "if_player": {"IsSneaking": [], "IsSprinting": [], "IsGliding": [], "IsFlying": [], "IsGrounded": [], "IsSwimming": [], "IsBlocking": [], "IsLookingAt": [{"item": {"id": "bl_tag", "data": {"option": "Ignore fluids", "tag": "Fluid Mode", "action": "IsLookingAt", "block": "if_player"}}, "slot": 26}], "StandingOn": [], "IsNear": [{"item": {"id": "bl_tag", "data": {"option": "Sphere", "tag": "Shape", "action": "PIsNear", "block": "if_player"}}, "slot": 26}], "InWorldBorder": [], "IsHolding": [{"item": {"id": "bl_tag", "data": {"option": "Either hand", "tag": "Hand Slot", "action": "IsHolding", "block": "if_player"}}, "slot": 26}], "HasItem": [{"item": {"id": "bl_tag", "data": {"option": "Has Any Item", "tag": "Check Mode", "action": "HasItem", "block": "if_player"}}, "slot": 26}], "IsWearing": [{"item": {"id": "bl_tag", "data": {"option": "Is Wearing Some", "tag": "Check Mode", "action": "PIsWearing", "block": "if_player"}}, "slot": 26}], "IsUsingItem": [], "NoItemCooldown": [], "HasSlotItem": [], "MenuSlotEquals": [], "CursorItem": [], "HasRoomForItem": [{"item": {"id": "bl_tag", "data": {"option": "Main inventory", "tag": "Checked Slots", "action": "PHasRoomForItem", "block": "if_player"}}, "slot": 25}, {"item": {"id": "bl_tag", "data": {"option": "Has Room for Any Item", "tag": "Check Mode", "action": "PHasRoomForItem", "block": "if_player"}}, "slot": 26}], "NameEquals": [], "SlotEquals": [], "HasPotion": [{"item": {"id": "bl_tag", "data": {"option": "None", "tag": "Check Properties", "action": "HasPotion", "block": "if_player"}}, "slot": 25}, {"item": {"id": "bl_tag", "data": {"option": "Has any effect", "tag": "Check Mode", "action": "HasPotion", "block": "if_player"}}, "slot": 26}], "IsRiding": [{"item": {"id": "bl_tag", "data": {"option": "Entity type", "tag": "Compare Text To", "action": "IsRiding", "block": "if_player"}}, "slot": 26}], "InvOpen": [{"item": {"id": "bl_tag", "data": {"option": "Any Inventory", "tag": "Inventory Type", "action": "InvOpen", "block": "if_player"}}, "slot": 26}], "HasPermission": [{"item": {"id": "bl_tag", "data": {"option": "Developer or builder", "tag": "Permission", "action": "HasPermission", "block": "if_player"}}, "slot": 26}]}, "if_entity": {"IsType": [], "NameEquals": [], "StandingOn": [], "IsGrounded": [], "IsNear": [{"item": {"id": "bl_tag", "data": {"option": "Sphere", "tag": "Shape", "action": "EIsNear", "block": "if_entity"}}, "slot": 26}], "IsRiding": [{"item": {"id": "bl_tag", "data": {"option": "Entity type", "tag": "Compare Text To", "action": "IsRiding", "block": "if_entity"}}, "slot": 26}], "HasPotion": [{"item": {"id": "bl_tag", "data": {"option": "None", "tag": "Check Properties", "action": "HasPotion", "block": "if_entity"}}, "slot": 25}, {"item": {"id": "bl_tag", "data": {"option": "Has any effect", "tag": "Check Mode", "action": "HasPotion", "block": "if_entity"}}, "slot": 26}], "IsMob": [], "IsProj": [], "IsVehicle": [], "IsItem": [], "Exists": [], "HasCustomTag": [], "IsSheared": []}, "if_game": {"BlockEquals": [], "BlockPowered": [{"item": {"id": "bl_tag", "data": {"option": "Direct power", "tag": "Redstone Power Mode", "action": "BlockPowered", "block": "if_game"}}, "slot": 26}], "ContainerHas": [], "ContainerHasAll": [], "HasRoomForItem": [{"item": {"id": "bl_tag", "data": {"option": "Has Room for Any Item", "tag": "Check Mode", "action": "HasRoomForItem", "block": "if_game"}}, "slot": 26}], "SignHasTxt": [{"item": {"id": "bl_tag", "data": {"option": "Contains", "tag": "Check Mode", "action": "SignHasTxt", "block": "if_game"}}, "slot": 25}, {"item": {"id": "bl_tag", "data": {"option": "All lines", "tag": "Sign Line", "action": "SignHasTxt", "block": "if_game"}}, "slot": 26}], "HasPlayer": [], "EventBlockEquals": [], "EventItemEquals": [{"item": {"id": "bl_tag", "data": {"option": "Ignore stack size/durability", "tag": "Comparison Mode", "action": "EventItemEquals", "block": "if_game"}}, "slot": 26}], "CommandEquals": [{"item": {"id": "bl_tag", "data": {"option": "True", "tag": "Ignore Case", "action": "CommandEquals", "block": "if_game"}}, "slot": 25}, {"item": {"id": "bl_tag", "data": {"option": "Check entire command", "tag": "Check Mode", "action": "CommandEquals", "block": "if_game"}}, "slot": 26}], "CmdArgEquals": [{"item": {"id": "bl_tag", "data": {"option": "True", "tag": "Ignore Case", "action": "CmdArgEquals", "block": "if_game"}}, "slot": 26}], "AttackIsCrit": [], "EventCancelled": []}, "if_var": {"=": [], "!=": [], ">": [], ">=": [], "<": [], "<=": [], "InRange": [], "LocIsNear": [{"item": {"id": "bl_tag", "data": {"option": "Sphere", "tag": "Shape", "action": "LocIsNear", "block": "if_var"}}, "slot": 26}], " TextMatches ": [{"item": {"id": "bl_tag", "data": {"option": "False", "tag": "Ignore Case", "action": " TextMatches ", "block": "if_var"}}, "slot": 25}, {"item": {"id": "bl_tag", "data": {"option": "Disable", "tag": "Regular Expressions", "action": " TextMatches ", "block": "if_var"}}, "slot": 26}], "Contains": [{"item": {"id": "bl_tag", "data": {"option": "False", "tag": "Ignore Case", "action": "Contains", "block": "if_var"}}, "slot": 26}], "StartsWith": [{"item": {"id": "bl_tag", "data": {"option": "False", "tag": "Ignore Case", "action": "StartsWith", "block": "if_var"}}, "slot": 26}], "EndsWith": [{"item": {"id": "bl_tag", "data": {"option": "False", "tag": "Ignore Case", "action": "EndsWith", "block": "if_var"}}, "slot": 26}], "VarExists": [], "VarIsType": [{"item": {"id": "bl_tag", "data": {"option": "Number", "tag": "Variable Type", "action": "VarIsType", "block": "if_var"}}, "slot": 26}], "ItemEquals": [{"item": {"id": "bl_tag", "data": {"option": "Exactly equals", "tag": "Comparison Mode", "action": "VItemEquals", "block": "if_var"}}, "slot": 26}], "ItemHasTag": [], "ListContains": [], "ListValueEq": [], "DictHasKey": [], "DictValueEquals": []}, "repeat": {"Forever": [], "Multiple": [], " Range ": [], "ForEach": [{"item": {"id": "bl_tag", "data": {"option": "True", "tag": "Allow List Changes", "action": "ForEach", "block": "repeat"}}, "slot": 26}], "ForEachEntry": [], "Grid": [], "Adjacent": [{"item": {"id": "bl_tag", "data": {"option": "False", "tag": "Change Location Rotation", "action": "Adjacent", "block": "repeat"}}, "slot": 24}, {"item": {"id": "bl_tag", "data": {"option": "False", "tag": "Include Origin Block", "action": "Adjacent", "block": "repeat"}}, "slot": 25}, {"item": {"id": "bl_tag", "data": {"option": "Adjacent (6 blocks)", "tag": "Pattern", "action": "Adjacent", "block": "repeat"}}, "slot": 26}], "Path": [{"item": {"id": "bl_tag", "data": {"option": "False", "tag": "Rotate Location", "action": "Path", "block": "repeat"}}, "slot": 26}], "Sphere": [{"item": {"id": "bl_tag", "data": {"option": "False", "tag": "Point Locations Inwards", "action": "Sphere", "block": "repeat"}}, "slot": 26}]}, "control": {"Wait": [{"item": {"id": "bl_tag", "data": {"option": "Ticks", "tag": "Time Unit", "action": "Wait", "block": "control"}}, "slot": 26}], "Return": [], "End": [], "Skip": [], "StopRepeat": []}, "select_obj": {"EventTarget": [{"item": {"id": "bl_tag", "data": {"option": "Default", "tag": "Event Target", "action": "EventTarget", "block": "select_obj"}}, "slot": 26}], "RandomPlayer": [], "LastEntity": [], "PlayerName": [], "EntityName": [], "AllPlayers": [], "AllEntities": [], "Invert": [], "FilterRandom": [], "FilterDistance": [{"item": {"id": "bl_tag", "data": {"option": "False", "tag": "Ignore Y-Axis", "action": "FilterDistance", "block": "select_obj"}}, "slot": 25}, {"item": {"id": "bl_tag", "data": {"option": "Nearest", "tag": "Compare Mode", "action": "FilterDistance", "block": "select_obj"}}, "slot": 26}], "FilterSort": [{"item": {"id": "bl_tag", "data": {"option": "Ascending", "tag": "Sort Order", "action": "FilterSort", "block": "select_obj"}}, "slot": 26}], "FilterRay": [{"item": {"id": "bl_tag", "data": {"option": "Solid blocks", "tag": "Block Collision", "action": "FilterRay", "block": "select_obj"}}, "slot": 26}], "Reset": []}, "extras": {"func": [{"item": {"id": "bl_tag","data": {"option": "False","tag": "Is Hidden","action": "dynamic","block": "func"}},"slot": 26}], "process": [{"item": {"id": "bl_tag","data": {"option": "False","tag": "Is Hidden","action": "dynamic","block": "process"}},"slot": 26}], "start_process": [{"item": {"id": "bl_tag","data": {"option": "Don't copy","tag": "Local Variables","action": "dynamic","block": "start_process"}},"slot": 25}, {"item": {"id": "bl_tag","data": {"option": "With current targets","tag": "Target Mode","action": "dynamic","block": "start_process"}},"slot": 26}], "call_function": [], "bracket": []}}
|
|
@@ -20,7 +20,7 @@ COL_RESET = '\x1b[0m'
|
|
|
20
20
|
COL_SUCCESS = '\x1b[32m'
|
|
21
21
|
COL_ERROR = '\x1b[31m'
|
|
22
22
|
|
|
23
|
-
CODEBLOCK_DATA_PATH = '
|
|
23
|
+
CODEBLOCK_DATA_PATH = os.path.join(os.path.dirname(__file__), 'data/data.json')
|
|
24
24
|
|
|
25
25
|
VARIABLE_TYPES = {'txt', 'num', 'item', 'loc', 'var', 'snd', 'part', 'pot', 'g_val', 'vec'}
|
|
26
26
|
TEMPLATE_STARTERS = {'event', 'entity_event', 'func', 'process'}
|
|
@@ -46,16 +46,39 @@ def _loadCodeblockData():
|
|
|
46
46
|
|
|
47
47
|
TAGDATA, TAGDATA_KEYS, TAGDATA_EXTRAS_KEYS = _loadCodeblockData()
|
|
48
48
|
|
|
49
|
-
def sendToDf(templateCode: str, name: str='Unnamed Template'):
|
|
49
|
+
def sendToDf(templateCode: str, name: str='Unnamed Template', author: str='pyre'):
|
|
50
50
|
"""
|
|
51
51
|
Sends a template to DiamondFire via recode item api.
|
|
52
52
|
|
|
53
|
-
:param str templateCode: The code for the template
|
|
53
|
+
:param str templateCode: The code for the template as a base64 string.
|
|
54
54
|
:param str name: The name of the template.
|
|
55
|
+
:param str author: The author of this template.
|
|
55
56
|
"""
|
|
57
|
+
templateData = f"""{{\
|
|
58
|
+
Count:1b,\
|
|
59
|
+
id:"minecraft:yellow_shulker_box",\
|
|
60
|
+
tag:{{\
|
|
61
|
+
display:{{\
|
|
62
|
+
Name:'{{"extra":[{{"italic":false,"color":"#FF5C00","text":">> "}},{{"italic":false,"color":"#FFC700","text":"{name}"}}],"text":""}}',\
|
|
63
|
+
Lore:[
|
|
64
|
+
'{{"extra":[{{"italic":false,"color":"gray","text":"This template was generated by "}},{{"italic":false,"color":"gold","text":"pyre"}},{{"italic":false,"color":"gray","text":"."}}],"text":""}}',\
|
|
65
|
+
'{{"extra":[{{"italic":false,"color":"gray","text":"https://github.com/Amp63/pyre"}},{{"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false,"color":"gray","text":""}}],"text":""}}'\
|
|
66
|
+
]\
|
|
67
|
+
}},\
|
|
68
|
+
PublicBukkitValues:{{\
|
|
69
|
+
"hypercube:codetemplatedata":'{{\
|
|
70
|
+
"author":"{author}",\
|
|
71
|
+
"name":"{name}",\
|
|
72
|
+
"version":1,\
|
|
73
|
+
"code":"{templateCode}"\
|
|
74
|
+
}}'\
|
|
75
|
+
}}\
|
|
76
|
+
}}\
|
|
77
|
+
}}\
|
|
78
|
+
"""
|
|
56
79
|
itemName = 'pyre Template - ' + name
|
|
57
|
-
|
|
58
|
-
|
|
80
|
+
data = {'type': 'nbt', 'source': itemName, 'data': templateData}
|
|
81
|
+
|
|
59
82
|
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
|
60
83
|
try:
|
|
61
84
|
s.connect(('127.0.0.1', 31372))
|
|
@@ -64,7 +87,7 @@ def sendToDf(templateCode: str, name: str='Unnamed Template'):
|
|
|
64
87
|
s.close()
|
|
65
88
|
return
|
|
66
89
|
|
|
67
|
-
s.send((str(data) + '\n').encode())
|
|
90
|
+
s.send((str(data) + '\n').encode('utf_8'))
|
|
68
91
|
received = json.loads(s.recv(1024).decode())
|
|
69
92
|
status = received['status']
|
|
70
93
|
if status == 'success':
|
|
@@ -72,18 +95,28 @@ def sendToDf(templateCode: str, name: str='Unnamed Template'):
|
|
|
72
95
|
else:
|
|
73
96
|
error = received['error']
|
|
74
97
|
print(f'{COL_ERROR}Error sending template: {error}{COL_RESET}')
|
|
98
|
+
|
|
75
99
|
s.close()
|
|
76
100
|
time.sleep(0.5)
|
|
77
101
|
|
|
78
102
|
|
|
103
|
+
class CodeBlock:
|
|
104
|
+
def __init__(self, name: str, *args, target: str='Default', data={}):
|
|
105
|
+
self.name = name
|
|
106
|
+
self.args = args
|
|
107
|
+
self.target = target
|
|
108
|
+
self.data = data
|
|
109
|
+
|
|
110
|
+
|
|
79
111
|
class DFTemplate:
|
|
80
112
|
"""
|
|
81
113
|
Represents a DiamondFire code template.
|
|
82
114
|
"""
|
|
83
|
-
def __init__(self):
|
|
84
|
-
self.
|
|
115
|
+
def __init__(self, name=None):
|
|
116
|
+
self.codeBlocks = []
|
|
85
117
|
self.closebracket = None
|
|
86
118
|
self.definedVars = {}
|
|
119
|
+
self.name = name
|
|
87
120
|
|
|
88
121
|
|
|
89
122
|
def build(self) -> Tuple[str, str]:
|
|
@@ -93,7 +126,7 @@ class DFTemplate:
|
|
|
93
126
|
:return: Tuple containing compressed template code and template name.
|
|
94
127
|
"""
|
|
95
128
|
mainDict = {'blocks': []}
|
|
96
|
-
for cmd in self.
|
|
129
|
+
for cmd in self.codeBlocks:
|
|
97
130
|
block = {'args': {'items': []}}
|
|
98
131
|
|
|
99
132
|
# add keys from cmd.data
|
|
@@ -101,7 +134,7 @@ class DFTemplate:
|
|
|
101
134
|
block[key] = cmd.data[key]
|
|
102
135
|
|
|
103
136
|
# bracket data
|
|
104
|
-
if cmd.data.get('direct')
|
|
137
|
+
if cmd.data.get('direct') is not None:
|
|
105
138
|
block['direct'] = cmd.data['direct']
|
|
106
139
|
block['type'] = cmd.data['type']
|
|
107
140
|
|
|
@@ -146,8 +179,10 @@ class DFTemplate:
|
|
|
146
179
|
print(f'{COL_SUCCESS}Template built successfully.{COL_RESET}')
|
|
147
180
|
|
|
148
181
|
templateName = 'Unnamed'
|
|
149
|
-
if
|
|
182
|
+
if mainDict['blocks'][0]['block'] not in TEMPLATE_STARTERS:
|
|
150
183
|
_warn('Template does not start with an event, function, or process.')
|
|
184
|
+
elif self.name is not None:
|
|
185
|
+
templateName = self.name
|
|
151
186
|
else:
|
|
152
187
|
try:
|
|
153
188
|
templateName = mainDict['blocks'][0]['block'] + '_' + mainDict['blocks'][0]['action']
|
|
@@ -194,29 +229,29 @@ class DFTemplate:
|
|
|
194
229
|
|
|
195
230
|
def _openbracket(self, btype: str='norm'):
|
|
196
231
|
bracket = CodeBlock('Bracket', data={'id': 'bracket', 'direct': 'open', 'type': btype})
|
|
197
|
-
self.
|
|
232
|
+
self.codeBlocks.append(bracket)
|
|
198
233
|
self.closebracket = btype
|
|
199
234
|
|
|
200
235
|
|
|
201
236
|
# command methods
|
|
202
237
|
def playerEvent(self, name: str):
|
|
203
238
|
cmd = CodeBlock(name, data={'id': 'block', 'block': 'event', 'action': name})
|
|
204
|
-
self.
|
|
239
|
+
self.codeBlocks.append(cmd)
|
|
205
240
|
|
|
206
241
|
|
|
207
242
|
def entityEvent(self, name: str):
|
|
208
243
|
cmd = CodeBlock(name, data={'id': 'block', 'block': 'entity_event', 'action': name})
|
|
209
|
-
self.
|
|
244
|
+
self.codeBlocks.append(cmd)
|
|
210
245
|
|
|
211
246
|
|
|
212
247
|
def function(self, name: str):
|
|
213
248
|
cmd = CodeBlock('function', data={'id': 'block', 'block': 'func', 'data': name})
|
|
214
|
-
self.
|
|
249
|
+
self.codeBlocks.append(cmd)
|
|
215
250
|
|
|
216
251
|
|
|
217
252
|
def process(self, name: str):
|
|
218
253
|
cmd = CodeBlock('process', data={'id': 'block', 'block': 'process', 'data': name})
|
|
219
|
-
self.
|
|
254
|
+
self.codeBlocks.append(cmd)
|
|
220
255
|
|
|
221
256
|
|
|
222
257
|
def callFunction(self, name: str, parameters={}):
|
|
@@ -225,63 +260,63 @@ class DFTemplate:
|
|
|
225
260
|
self.setVariable('=', var(key, scope='local'), parameters[key])
|
|
226
261
|
|
|
227
262
|
cmd = CodeBlock('call_func', data={'id': 'block', 'block': 'call_func', 'data': name})
|
|
228
|
-
self.
|
|
263
|
+
self.codeBlocks.append(cmd)
|
|
229
264
|
|
|
230
265
|
|
|
231
266
|
def startProcess(self, name: str):
|
|
232
267
|
cmd = CodeBlock('start_process', data={'id': 'block', 'block': 'start_process', 'data': name})
|
|
233
|
-
self.
|
|
268
|
+
self.codeBlocks.append(cmd)
|
|
234
269
|
|
|
235
270
|
|
|
236
271
|
def playerAction(self, name: str, *args, target: str='Default'):
|
|
237
272
|
args = self._convertDataTypes(args)
|
|
238
273
|
cmd = CodeBlock(name, args, target=target, data={'id': 'block', 'block': 'player_action', 'action': name})
|
|
239
|
-
self.
|
|
274
|
+
self.codeBlocks.append(cmd)
|
|
240
275
|
|
|
241
276
|
|
|
242
277
|
def gameAction(self, name: str, *args):
|
|
243
278
|
args = self._convertDataTypes(args)
|
|
244
279
|
cmd = CodeBlock(name, args, data={'id': 'block', 'block': 'game_action', 'action': name})
|
|
245
|
-
self.
|
|
280
|
+
self.codeBlocks.append(cmd)
|
|
246
281
|
|
|
247
282
|
|
|
248
283
|
def entityAction(self, name: str, *args):
|
|
249
284
|
args = self._convertDataTypes(args)
|
|
250
285
|
cmd = CodeBlock(name, args, data={'id': 'block', 'block': 'entity_action', 'action': name})
|
|
251
|
-
self.
|
|
286
|
+
self.codeBlocks.append(cmd)
|
|
252
287
|
|
|
253
288
|
|
|
254
289
|
def ifPlayer(self, name: str, *args, target: str='Default'):
|
|
255
290
|
args = self._convertDataTypes(args)
|
|
256
291
|
cmd = CodeBlock(name, args, target=target, data={'id': 'block', 'block': 'if_player', 'action': name})
|
|
257
|
-
self.
|
|
292
|
+
self.codeBlocks.append(cmd)
|
|
258
293
|
self._openbracket()
|
|
259
294
|
|
|
260
295
|
|
|
261
296
|
def ifVariable(self, name: str, *args):
|
|
262
297
|
args = self._convertDataTypes(args)
|
|
263
298
|
cmd = CodeBlock(name, args, data={'id': 'block', 'block': 'if_var', 'action': name})
|
|
264
|
-
self.
|
|
299
|
+
self.codeBlocks.append(cmd)
|
|
265
300
|
self._openbracket()
|
|
266
301
|
|
|
267
302
|
|
|
268
303
|
def ifGame(self, name: str, *args):
|
|
269
304
|
args = self._convertDataTypes(args)
|
|
270
305
|
cmd = CodeBlock(name, args, data={'id': 'block', 'block': 'if_game', 'action': name})
|
|
271
|
-
self.
|
|
306
|
+
self.codeBlocks.append(cmd)
|
|
272
307
|
self._openbracket()
|
|
273
308
|
|
|
274
309
|
|
|
275
310
|
def ifEntity(self, name: str, *args):
|
|
276
311
|
args = self._convertDataTypes(args)
|
|
277
312
|
cmd = CodeBlock(name, args, data={'id': 'block', 'block': 'if_entity', 'action': name})
|
|
278
|
-
self.
|
|
313
|
+
self.codeBlocks.append(cmd)
|
|
279
314
|
self._openbracket()
|
|
280
315
|
|
|
281
316
|
|
|
282
317
|
def else_(self):
|
|
283
318
|
cmd = CodeBlock('else', data={'id': 'block', 'block': 'else'})
|
|
284
|
-
self.
|
|
319
|
+
self.codeBlocks.append(cmd)
|
|
285
320
|
self._openbracket()
|
|
286
321
|
|
|
287
322
|
|
|
@@ -291,35 +326,34 @@ class DFTemplate:
|
|
|
291
326
|
if subAction is not None:
|
|
292
327
|
data['subAction'] = subAction
|
|
293
328
|
cmd = CodeBlock(name, args, data=data)
|
|
294
|
-
self.
|
|
329
|
+
self.codeBlocks.append(cmd)
|
|
295
330
|
self._openbracket('repeat')
|
|
296
331
|
|
|
297
332
|
|
|
298
333
|
def bracket(self, *args):
|
|
299
334
|
args = self._convertDataTypes(args)
|
|
300
335
|
cmd = CodeBlock('Bracket', data={'id': 'bracket', 'direct': 'close', 'type': self.closebracket})
|
|
301
|
-
self.
|
|
336
|
+
self.codeBlocks.append(cmd)
|
|
302
337
|
|
|
303
338
|
|
|
304
339
|
def control(self, name: str, *args):
|
|
305
340
|
args = self._convertDataTypes(args)
|
|
306
341
|
cmd = CodeBlock(name, args, data={'id': 'block', 'block': 'control', 'action': name})
|
|
307
|
-
self.
|
|
342
|
+
self.codeBlocks.append(cmd)
|
|
308
343
|
|
|
309
344
|
|
|
310
345
|
def selectObject(self, name: str, *args):
|
|
311
346
|
args = self._convertDataTypes(args)
|
|
312
347
|
cmd = CodeBlock(name, args, data={'id': 'block', 'block': 'select_obj', 'action': name})
|
|
313
|
-
self.
|
|
348
|
+
self.codeBlocks.append(cmd)
|
|
314
349
|
|
|
315
350
|
|
|
316
351
|
def setVariable(self, name: str, *args):
|
|
317
352
|
args = self._convertDataTypes(args)
|
|
318
353
|
cmd = CodeBlock(name, args, data={'id': 'block', 'block': 'set_var', 'action': name})
|
|
319
|
-
self.
|
|
354
|
+
self.codeBlocks.append(cmd)
|
|
320
355
|
|
|
321
356
|
|
|
322
|
-
# extra methods
|
|
323
357
|
def return_(self, returndata={}):
|
|
324
358
|
for key in returndata:
|
|
325
359
|
self.setVariable('=', var(key, scope='local'), returndata[key])
|
|
@@ -329,12 +363,4 @@ class DFTemplate:
|
|
|
329
363
|
def define_(self, name: str, value=0, scope: str='unsaved', createSetVar: bool=True):
|
|
330
364
|
if createSetVar:
|
|
331
365
|
self.setVariable('=', var(name, scope=scope), value)
|
|
332
|
-
self.definedVars[name] = var(name, scope=scope)
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
class CodeBlock:
|
|
336
|
-
def __init__(self, name: str, *args, target: str='Default', data={}):
|
|
337
|
-
self.name = name
|
|
338
|
-
self.args = args
|
|
339
|
-
self.target = target
|
|
340
|
-
self.data = data
|
|
366
|
+
self.definedVars[name] = var(name, scope=scope)
|
|
@@ -2,11 +2,12 @@ from setuptools import setup, find_packages
|
|
|
2
2
|
|
|
3
3
|
setup(
|
|
4
4
|
name='dfpyre',
|
|
5
|
-
version='0.3.
|
|
5
|
+
version='0.3.3',
|
|
6
6
|
description='A package for externally creating code templates for the DiamondFire Minecraft server.',
|
|
7
7
|
author='Amp',
|
|
8
8
|
url='https://github.com/Amp63/pyre',
|
|
9
9
|
license='MIT',
|
|
10
10
|
keywords=['diamondfire', 'minecraft'],
|
|
11
11
|
packages=find_packages(),
|
|
12
|
+
package_data={'dfpyre': ['data/data.json']}
|
|
12
13
|
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|