This repository has been archived by the owner on Dec 8, 2024. It is now read-only.
generated from FabricMC/fabric-example-mod
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Key Pressed with continuous keys.
- Loading branch information
1 parent
deb16cb
commit 79e1ece
Showing
4 changed files
with
61 additions
and
8 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,2 +1,4 @@ | ||
## Bugfixes | ||
- Fixed `damage_nearby_x_hit` power type running attacker, target bientity conditions without an attacker. ([toomanyorigins#87](https://github.com/MerchantPug/toomanyorigins/issues/87)) | ||
- Fixed `damage_nearby_x_hit` power type running attacker, target bientity conditions without an attacker. ([toomanyorigins#87](https://github.com/MerchantPug/toomanyorigins/issues/87)) | ||
- Fixed Explosion Sync packet desync. Which should affect the `apugli:explode` and `explosion_raycast` entity action types, and the `rocket_jump` power type. | ||
- Fixed `key_pressed` entity condition type not functioning properly with `continuous` keys. |
54 changes: 54 additions & 0 deletions
54
Common/src/test/resources/data/apugli/powers/bugfix/key_pressed.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,54 @@ | ||
{ | ||
"type": "apoli:action_over_time", | ||
"interval": 1, | ||
"entity_action": { | ||
"type": "apugli:explode", | ||
"power": 5, | ||
"damage_self": false | ||
}, | ||
"condition": { | ||
"type": "apoli:and", | ||
"conditions": [ | ||
{ | ||
"type": "apoli:or", | ||
"conditions": [ | ||
{ | ||
"type": "apoli:block_collision", | ||
"offset_x": 1.5 | ||
}, | ||
{ | ||
"type": "apoli:block_collision", | ||
"offset_x": -1.5 | ||
}, | ||
{ | ||
"type": "apoli:block_collision", | ||
"offset_y": 1.5 | ||
}, | ||
{ | ||
"type": "apoli:block_collision", | ||
"offset_y": -1.5 | ||
}, | ||
{ | ||
"type": "apoli:block_collision", | ||
"offset_z": 1.5 | ||
}, | ||
{ | ||
"type": "apoli:block_collision", | ||
"offset_z": -1.5 | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "apoli:fall_flying" | ||
}, | ||
{ | ||
"type": "apugli:key_pressed", | ||
"key": { | ||
"key": "key.use", | ||
"continous": true | ||
} | ||
} | ||
] | ||
}, | ||
"hidden": true | ||
} |
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
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