-
Notifications
You must be signed in to change notification settings - Fork 754
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Will lead to the removal of the sling items in 1.19, since they are now implemented in a superior way as modifiers that work on any tool All sling modifiers can have reduced drawspeed via quick draw and increased strength via power and any velocity boosting modifiers. They also consider accuracy, which will be fun for a future tinkers things tool Other than warping, they also all consider knockback to boost their effect, allowing non-staffs to boost their effect Flinging (earth), springing (sky), and warping (ender) work about the same as the slings Bonking (ichor) has an extra particle, a new sound, and deals melee damage using the tool's modifiers if the tool is a melee weapon (fully reimplementing the old frypan smash attack)
- Loading branch information
1 parent
b465e77
commit 894ad7e
Showing
41 changed files
with
895 additions
and
33 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
src/generated/resources/data/tconstruct/recipes/tools/modifiers/ability/bonking.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,32 @@ | ||
{ | ||
"type": "tconstruct:modifier", | ||
"inputs": [ | ||
{ | ||
"tag": "forge:ingots/iron" | ||
}, | ||
{ | ||
"item": "tconstruct:ichor_slime_crystal" | ||
}, | ||
{ | ||
"tag": "forge:ingots/iron" | ||
}, | ||
{ | ||
"item": "tconstruct:ichor_congealed_slime" | ||
}, | ||
{ | ||
"item": "tconstruct:ichor_congealed_slime" | ||
} | ||
], | ||
"tools": { | ||
"tag": "tconstruct:modifiable/interactable/right" | ||
}, | ||
"slots": { | ||
"abilities": 1 | ||
}, | ||
"allow_crystal": true, | ||
"result": { | ||
"name": "tconstruct:bonking", | ||
"level": 1 | ||
}, | ||
"max_level": 1 | ||
} |
32 changes: 32 additions & 0 deletions
32
src/generated/resources/data/tconstruct/recipes/tools/modifiers/ability/flinging.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,32 @@ | ||
{ | ||
"type": "tconstruct:modifier", | ||
"inputs": [ | ||
{ | ||
"tag": "forge:string" | ||
}, | ||
{ | ||
"item": "tconstruct:earth_slime_crystal" | ||
}, | ||
{ | ||
"tag": "forge:string" | ||
}, | ||
{ | ||
"item": "tconstruct:earth_congealed_slime" | ||
}, | ||
{ | ||
"item": "tconstruct:earth_congealed_slime" | ||
} | ||
], | ||
"tools": { | ||
"tag": "tconstruct:modifiable/interactable/right" | ||
}, | ||
"slots": { | ||
"abilities": 1 | ||
}, | ||
"allow_crystal": true, | ||
"result": { | ||
"name": "tconstruct:flinging", | ||
"level": 1 | ||
}, | ||
"max_level": 1 | ||
} |
32 changes: 32 additions & 0 deletions
32
src/generated/resources/data/tconstruct/recipes/tools/modifiers/ability/springing.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,32 @@ | ||
{ | ||
"type": "tconstruct:modifier", | ||
"inputs": [ | ||
{ | ||
"tag": "forge:feathers" | ||
}, | ||
{ | ||
"item": "tconstruct:sky_slime_crystal" | ||
}, | ||
{ | ||
"tag": "forge:feathers" | ||
}, | ||
{ | ||
"item": "tconstruct:sky_congealed_slime" | ||
}, | ||
{ | ||
"item": "tconstruct:sky_congealed_slime" | ||
} | ||
], | ||
"tools": { | ||
"tag": "tconstruct:modifiable/interactable/right" | ||
}, | ||
"slots": { | ||
"abilities": 1 | ||
}, | ||
"allow_crystal": true, | ||
"result": { | ||
"name": "tconstruct:springing", | ||
"level": 1 | ||
}, | ||
"max_level": 1 | ||
} |
32 changes: 32 additions & 0 deletions
32
src/generated/resources/data/tconstruct/recipes/tools/modifiers/ability/warping.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,32 @@ | ||
{ | ||
"type": "tconstruct:modifier", | ||
"inputs": [ | ||
{ | ||
"tag": "forge:ender_pearls" | ||
}, | ||
{ | ||
"item": "tconstruct:ender_slime_crystal" | ||
}, | ||
{ | ||
"tag": "forge:ender_pearls" | ||
}, | ||
{ | ||
"item": "tconstruct:ender_congealed_slime" | ||
}, | ||
{ | ||
"item": "tconstruct:ender_congealed_slime" | ||
} | ||
], | ||
"tools": { | ||
"tag": "tconstruct:modifiable/interactable/right" | ||
}, | ||
"slots": { | ||
"abilities": 1 | ||
}, | ||
"allow_crystal": true, | ||
"result": { | ||
"name": "tconstruct:warping", | ||
"level": 1 | ||
}, | ||
"max_level": 1 | ||
} |
11 changes: 11 additions & 0 deletions
11
src/generated/resources/data/tconstruct/recipes/tools/modifiers/salvage/ability/bonking.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,11 @@ | ||
{ | ||
"type": "tconstruct:modifier_salvage", | ||
"tools": { | ||
"tag": "tconstruct:modifiable/interactable/right" | ||
}, | ||
"slots": { | ||
"abilities": 1 | ||
}, | ||
"modifier": "tconstruct:bonking", | ||
"min_level": 1 | ||
} |
11 changes: 11 additions & 0 deletions
11
...generated/resources/data/tconstruct/recipes/tools/modifiers/salvage/ability/flinging.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,11 @@ | ||
{ | ||
"type": "tconstruct:modifier_salvage", | ||
"tools": { | ||
"tag": "tconstruct:modifiable/interactable/right" | ||
}, | ||
"slots": { | ||
"abilities": 1 | ||
}, | ||
"modifier": "tconstruct:flinging", | ||
"min_level": 1 | ||
} |
11 changes: 11 additions & 0 deletions
11
...enerated/resources/data/tconstruct/recipes/tools/modifiers/salvage/ability/springing.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,11 @@ | ||
{ | ||
"type": "tconstruct:modifier_salvage", | ||
"tools": { | ||
"tag": "tconstruct:modifiable/interactable/right" | ||
}, | ||
"slots": { | ||
"abilities": 1 | ||
}, | ||
"modifier": "tconstruct:springing", | ||
"min_level": 1 | ||
} |
11 changes: 11 additions & 0 deletions
11
src/generated/resources/data/tconstruct/recipes/tools/modifiers/salvage/ability/warping.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,11 @@ | ||
{ | ||
"type": "tconstruct:modifier_salvage", | ||
"tools": { | ||
"tag": "tconstruct:modifiable/interactable/right" | ||
}, | ||
"slots": { | ||
"abilities": 1 | ||
}, | ||
"modifier": "tconstruct:warping", | ||
"min_level": 1 | ||
} |
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
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
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
22 changes: 22 additions & 0 deletions
22
...main/java/slimeknights/tconstruct/library/events/teleport/SlingModifierTeleportEvent.java
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,22 @@ | ||
package slimeknights.tconstruct.library.events.teleport; | ||
|
||
import lombok.Getter; | ||
import net.minecraft.world.entity.Entity; | ||
import net.minecraftforge.event.entity.EntityTeleportEvent; | ||
import net.minecraftforge.eventbus.api.Cancelable; | ||
import slimeknights.tconstruct.library.modifiers.ModifierEntry; | ||
import slimeknights.tconstruct.library.tools.nbt.IToolStackView; | ||
|
||
/** Event fired when an entity teleports using the ender sling modifier */ | ||
@Cancelable | ||
public class SlingModifierTeleportEvent extends EntityTeleportEvent { | ||
@Getter | ||
private final IToolStackView tool; | ||
@Getter | ||
private final ModifierEntry entry; | ||
public SlingModifierTeleportEvent(Entity entity, double targetX, double targetY, double targetZ, IToolStackView tool, ModifierEntry entry) { | ||
super(entity, targetX, targetY, targetZ); | ||
this.tool = tool; | ||
this.entry = entry; | ||
} | ||
} |
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
Oops, something went wrong.