forked from MCreator/MCreator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added some entity procedures (MCreator#4221)
* Added some entity procedures * Fix * Fix * eliminated "entity is on rails" procedure * Improved the text of the procedure "is the entity attackable?" Co-authored-by: Max094Reikeb <[email protected]> * Added "get percent frozen" procedure block instead of entity is fully frozen * Dropped support for "entity is ignoring block triggers" procedure block * Fix * Fix * Fix * Fix * applied the changes suggested by Klemen * Slight text change --------- Co-authored-by: Max094Reikeb <[email protected]> Co-authored-by: KlemenDEV <[email protected]>
- Loading branch information
1 parent
8d4e94e
commit 3f40575
Showing
10 changed files
with
69 additions
and
0 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
plugins/generator-1.19.4/forge-1.19.4/procedures/entity_get_percent_frozen.java.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/*@float*/(${input$entity}.getPercentFrozen() * 100) |
1 change: 1 addition & 0 deletions
1
plugins/generator-1.19.4/forge-1.19.4/procedures/entity_is_attackable.java.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
(${input$entity}.isAttackable()) |
1 change: 1 addition & 0 deletions
1
plugins/generator-1.19.4/forge-1.19.4/procedures/entity_is_underwater.java.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
(${input$entity}.isUnderWater()) |
1 change: 1 addition & 0 deletions
1
plugins/generator-1.20.1/forge-1.20.1/procedures/entity_get_percent_frozen.java.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/*@float*/(${input$entity}.getPercentFrozen() * 100) |
1 change: 1 addition & 0 deletions
1
plugins/generator-1.20.1/forge-1.20.1/procedures/entity_is_attackable.java.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
(${input$entity}.isAttackable()) |
1 change: 1 addition & 0 deletions
1
plugins/generator-1.20.1/forge-1.20.1/procedures/entity_is_underwater.java.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
(${input$entity}.isUnderWater()) |
20 changes: 20 additions & 0 deletions
20
plugins/mcreator-core/procedures/entity_get_percent_frozen.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"args0": [ | ||
{ | ||
"type": "input_value", | ||
"name": "entity", | ||
"check": "Entity" | ||
} | ||
], | ||
"output": "Number", | ||
"colour": "%{BKY_MATH_HUE}", | ||
"mcreator": { | ||
"toolbox_id": "entitydata", | ||
"toolbox_init": [ | ||
"<value name=\"entity\"><block type=\"entity_from_deps\"></block></value>" | ||
], | ||
"inputs": [ | ||
"entity" | ||
] | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
plugins/mcreator-core/procedures/entity_is_attackable.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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": "entitydata", | ||
"toolbox_init": [ | ||
"<value name=\"entity\"><block type=\"entity_from_deps\"></block></value>" | ||
], | ||
"inputs": [ | ||
"entity" | ||
] | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
plugins/mcreator-core/procedures/entity_is_underwater.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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": "entitydata", | ||
"toolbox_init": [ | ||
"<value name=\"entity\"><block type=\"entity_from_deps\"></block></value>" | ||
], | ||
"inputs": [ | ||
"entity" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters