Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Procedure blocks from ManyOptions plugin (part 1/3) #245

Merged
merged 3 commits into from
Sep 24, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(${input$entity}.isAlive())
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(${input$entity}.isInvisible())
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(${input$entity}.isInvulnerable())
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(${input$entity}.isNonBoss())
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(${input$entity}.isAlive())
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(${input$entity}.isInvisible())
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(${input$entity}.isInvulnerable())
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(${input$entity}.isNonBoss())
20 changes: 20 additions & 0 deletions plugins/mcreator-core/procedures/entity_isalive.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"args0": [
{
"type": "input_value",
"name": "entity",
"check": "Entity"
}
],
"output": "Boolean",
"colour": "%{BKY_LOGIC_HUE}",
"mcreator": {
"toolbox_id": "entitymanagement",
"toolbox_init": [
"<value name=\"entity\"><block type=\"entity_from_deps\"></block></value>"
],
"inputs": [
"entity"
]
}
}
20 changes: 20 additions & 0 deletions plugins/mcreator-core/procedures/entity_isinvisible.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"args0": [
{
"type": "input_value",
"name": "entity",
"check": "Entity"
}
],
"output": "Boolean",
"colour": "%{BKY_LOGIC_HUE}",
"mcreator": {
"toolbox_id": "entitymanagement",
"toolbox_init": [
"<value name=\"entity\"><block type=\"entity_from_deps\"></block></value>"
],
"inputs": [
"entity"
]
}
}
20 changes: 20 additions & 0 deletions plugins/mcreator-core/procedures/entity_isinvulnerable.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"args0": [
{
"type": "input_value",
"name": "entity",
"check": "Entity"
}
],
"output": "Boolean",
"colour": "%{BKY_LOGIC_HUE}",
"mcreator": {
"toolbox_id": "entitymanagement",
"toolbox_init": [
"<value name=\"entity\"><block type=\"entity_from_deps\"></block></value>"
],
"inputs": [
"entity"
]
}
}
20 changes: 20 additions & 0 deletions plugins/mcreator-core/procedures/entity_isnonboss.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"args0": [
{
"type": "input_value",
"name": "entity",
"check": "Entity"
}
],
"output": "Boolean",
"colour": "%{BKY_LOGIC_HUE}",
"mcreator": {
"toolbox_id": "entitymanagement",
"toolbox_init": [
"<value name=\"entity\"><block type=\"entity_from_deps\"></block></value>"
],
"inputs": [
"entity"
]
}
}
4 changes: 4 additions & 0 deletions plugins/mcreator-localization/lang/texts.properties
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,10 @@ blockly.block.item_istool=Is %1 tooltype %2
blockly.block.item_show_totemlike_animation=Show %1 totem-like animation %2
blockly.block.get_localized_text=Get localized text for key %1 %2
blockly.block.console_log=Log %1 with log level %2
blockly.block.entity_isinvisible=Is %1 invisible
blockly.block.entity_isinvulnerable=Is %1 invulnerable
blockly.block.entity_isalive=Is %1 alive
blockly.block.entity_isnonboss=Is %1 non-boss
dialog.vcs.switch_branch_fail.push_fail.title=Failed to switch the branch
dialog.vcs.switch_branch_fail.message=<html>Failed to switch branch to {0}<br>Reason: {1}
dialog.vcs.switch_branch.title=Switch branch
Expand Down