Files
mc/mods/pala/elements/FakeWaterMobplayerCollidesBlock.mod.json

7 lines
1.6 KiB
JSON

{
"_fv": 18,
"_type": "procedure",
"definition": {
"procedurexml": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?><xml xmlns=\"https://developers.google.com/blockly/xml\"><block deletable=\"false\" type=\"event_trigger\" x=\"491\" y=\"180\"><field name=\"trigger\">no_ext_trigger</field><next><block type=\"controls_if\"><comment h=\"68\" pinned=\"false\" w=\"294\">This example will test if the current entity type is the player. If it is true, then it will run whatever you place in the \"do\" section of the if statement.</comment><value name=\"IF0\"><block type=\"logic_entity_compare\"><field name=\"entity\">EntityPlayer</field><value name=\"compareTo\"><block type=\"entity_from_deps\"/></value></block></value><statement name=\"DO0\"><block type=\"controls_if\"><comment h=\"85\" pinned=\"false\" w=\"293\">This example will test if the random number is less than 0.7 (70%). Random numbers range between (0.0 and 1.0). If it is true, then it will run what is in the \"do\" section of the if statement.</comment><value name=\"IF0\"><block type=\"math_binary_ops\"><field name=\"OP\">LT</field><value name=\"A\"><block type=\"math_java_constants\"><field name=\"CONSTANT\">RANDOM</field></block></value><value name=\"B\"><block type=\"math_number\"><field name=\"NUM\">0.5</field></block></value></block></value><statement name=\"DO0\"><block type=\"deal_damage\"><field name=\"damagesource\">GENERIC</field><value name=\"amount\"><block type=\"math_number\"><field name=\"NUM\">1.5</field></block></value><value name=\"entity\"><block type=\"entity_from_deps\"/></value></block></statement></block></statement></block></next></block></xml>"
}
}