Hytale Asset ReferenceUnofficial
Versions / 0.5.3 / Item / Items / _Debug / Debug_Raycast.json

Debug_Raycast

Server/Item/Items/_Debug/Debug_Raycast.json, 3.7 KB

Fields

FieldType
TranslationPropertiesobject
Categoriesarray[0]
Iconstring
IconPropertiesobject
Qualitystring
ItemLevelnumber
Modelstring
Texturestring
PlayerAnimationsIdstring
Weaponobject
Interactionsobject
Utilityobject
Tagsobject

Source

{
  "TranslationProperties": {
    "Name": "server.items.Debug_Raycast.name"
  },
  "Categories": [],
  "Icon": "Icons/ItemsGenerated/Weapon_Shield_Iron.png",
  "IconProperties": {
    "Scale": 0.35,
    "Translation": [
      -2.91,
      1.29
    ],
    "Rotation": [
      315,
      270,
      0
    ]
  },
  "Quality": "Debug",
  "ItemLevel": 40,
  "Model": "Items/Weapons/Shield/Iron.blockymodel",
  "Texture": "Items/Weapons/Shield/Iron_Texture.png",
  "PlayerAnimationsId": "Shield",
  "Weapon": {},
  "Interactions": {
    "Primary": {
      "Interactions": [
        {
          "Type": "Selector",
          "Selector": {
            "Id": "Raycast",
            "Offset": {
              "Y": 1.6
            },
            "Distance": 5,
            "BlockTag": "Type=Cloth"
          },
          "HitEntityRules": [
            {
              "Matchers": [
                {
                  "Type": "Vulnerable"
                },
                {
                  "Type": "Player"
                }
              ],
              "Next": {
                "Interactions": [
                  {
                    "Type": "SendMessage",
                    "Message": "Matched Player"
                  }
                ]
              }
            },
            {
              "Matchers": [
                {
                  "Type": "Vulnerable"
                },
                {
                  "Type": "Player",
                  "Invert": true
                }
              ],
              "Next": {
                "Interactions": [
                  {
                    "Type": "SendMessage",
                    "Message": "Matched non-Player"
                  }
                ]
              }
            }
          ],
          "HitEntity": {
            "Interactions": [
              {
                "Type": "SendMessage",
                "Message": "Hit entity"
              },
              {
                "Type": "ApplyEffect",
                "Entity": "Target",
                "EffectId": "Red_Flash"
              },
              {
                "Type": "DamageEntity",
                "DamageCalculator": {
                  "BaseDamage": {
                    "Physical": 6
                  }
                },
                "DamageEffects": {
                  "Knockback": {
                    "Type": "Point",
                    "VelocityConfig": {
                      "AirResistance": 0.97,
                      "AirResistanceMax": 0.96,
                      "GroundResistance": 0.94,
                      "GroundResistanceMax": 0.3,
                      "Threshold": 3.0,
                      "Style": "Exp"
                    },
                    "Force": 6.5,
                    "VelocityType": "Set"
                  },
                  "WorldSoundEventId": "SFX_Sword_T2_Impact",
                  "LocalSoundEventId": "SFX_Sword_T2_Impact",
                  "WorldParticles": [
                    {
                      "SystemId": "Impact_Sword_Basic"
                    }
                  ]
                }
              }
            ]
          },
          "HitBlock": {
            "Interactions": [
              {
                "Type": "SendMessage",
                "Message": "Hit block"
              },
              {
                "Type": "ChangeBlock",
                "Changes": {
                  "Cloth_Block_Wool_Blue": "Cloth_Block_Wool_Red",
                  "Cloth_Block_Wool_Red": "Cloth_Block_Wool_Blue"
                }
              }
            ]
          }
        }
      ]
    }
  },
  "Utility": {
    "Usable": true,
    "Compatible": true
  },
  "Tags": {
    "Type": [
      "Debug"
    ]
  }
}