Commit Graph
399 Commits
Author SHA1 Message Date
miozuneGitHub GTNH Actionsgithub-actions[bot]
69bb974420 Use compileOnlyApi for CoFH (#84)
* Use compileOnlyApi for CoFH

* spotlessApply (#85)

Co-authored-by: GitHub GTNH Actions <>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-05-15 08:07:18 +02:00
AlexdoruandOneEyeMaker 50bd690204 Revert signature changes of public methods that caused crashes (#74)
* restore previous public method signature to prevent crash

* don't register the event if vanilla config

* revert signature changes

* Restore original calculation logic

---------

Co-authored-by: OneEyeMaker <[email protected]>
2023-02-13 16:34:38 +01:00
unix-supremacistandAlex Ponebshek 3e2ba6ac16 adding the config options from the tinkered constructor fork (#73)
* config option for invulnerability of dropped tools and base EntityItem despawn time

* config option to drop life canisters on death

* Added config option for dagger damage multiplier when thrown, default = 3x

* emulate vanilla behavior by default

---------

Co-authored-by: Alex Ponebshek <[email protected]>
2023-02-12 08:37:14 +01:00
Jason Mitchell 84c2239244 [ci skip] spotlessApply with the new settings 2023-01-28 18:04:28 -08:00
Alexdoru 95d58be867 spotless 2023-01-28 18:02:41 -08:00
Alexdoru 36f63a7690 quick fix : Raw use of parameterized class 2023-01-28 18:02:41 -08:00
Alexdoru 83f54f1e97 quick fixes : enhanced for loop 2023-01-28 18:02:41 -08:00
Alexdoru 2b6b01314d quick fix : Unused assignment 2023-01-28 18:02:41 -08:00
Alexdoru 6bf15fdfe3 quick fix : Redundant type cast 2023-01-28 18:02:41 -08:00
Alexdoru cdc7dcf5d0 quick fix : optimize imports 2023-01-28 18:02:41 -08:00
Alexdoru ae363450b1 quick fix : Private field may be 'final' 2023-01-28 18:02:41 -08:00
Alexdoru 983ca22d97 spotless 2023-01-28 18:02:41 -08:00
Alexdoru fbccf4e087 quick fix : Statement with empty body 2023-01-28 18:02:41 -08:00
Alexdoru 3f0854baeb delete unused float[65536] array in SlimeBounceHandler 2023-01-28 18:02:41 -08:00
Alexdoru 3d1489401c quick fix : Collections.sort() can be replaced with List.sort() 2023-01-28 18:02:41 -08:00
Alexdoru 67c8b53cf1 quick fix : Unnecessary 'continue' statement 2023-01-28 18:02:41 -08:00
Alexdoru a7bc4185c7 quick fix : 'StringBuilder' can be replaced with 'String' 2023-01-28 18:02:41 -08:00
Alexdoru 2d13e6185e quick fix : Redundant type cast 2023-01-28 18:02:41 -08:00
Alexdoru b34eec4dea quick fix : Redundant Collection operation 2023-01-28 18:02:41 -08:00
Alexdoru 14f970318b quick fix : Redundant String operation 2023-01-28 18:02:41 -08:00
Alexdoru f446ea280f quick fix : Condition is covered by further condition 2023-01-28 18:02:41 -08:00
Alexdoru 9cfd723ea3 quick fix : Raw use of parameterized class 2023-01-28 18:02:41 -08:00
Alexdoru f384a4fe28 quick fix : Redundant 'if' statement 2023-01-28 18:02:41 -08:00
Alexdoru 350177b5c9 quick fix : Access static member via instance reference 2023-01-28 18:02:41 -08:00
Alexdoru fc54dde7ce quick fix : 'if' statement with identical branches 2023-01-28 18:02:41 -08:00
Alexdoru d44b7ece32 quick fix : Redundant local variable 2023-01-28 18:02:41 -08:00
Alexdoru 60f7add07f quick fix : Explicit type can be replaced with <> 2023-01-28 18:02:41 -08:00
Alexdoru 7abe2f5182 quick fix : 'while' loop replaceable with enhanced 'for' loop 2023-01-28 18:02:41 -08:00
Alexdoru f677a4c5b7 quick fix : Wrapper type may be primitive 2023-01-28 18:02:41 -08:00
Alexdoru 8e1425203e quick fix : Bulk operation can be used instead of iteration 2023-01-28 18:02:41 -08:00
Alexdoru f9c44ee3e5 quick fix : Unnecessary interface modifier 2023-01-28 18:02:41 -08:00
Alexdoru ab8c7869a9 quick fix : Unnecessary enum modifier 2023-01-28 18:02:41 -08:00
Alexdoru b28b754ea9 quick fix : Inner class may be 'static' 2023-01-28 18:02:41 -08:00
NexusNull 54e24a25f4 Backport: Only break one block when sneaking (#65)
* only break one block on shift

* sportless

Signed-off-by: NexusNull <[email protected]>

* fixes https://github.com/GTNewHorizons/TinkersConstruct/pull/65/files/41a1ecea30cb0506d068da30c16fc27dcf64550f#r1071818922

Signed-off-by: NexusNull <[email protected]>

Signed-off-by: NexusNull <[email protected]>
2023-01-17 09:22:51 +01:00
bb87654862 Fix slimeboots & slimesling (#63)
* Fix slimeboots & slimesling
* Use vec3 instead of Vector3d which isn't found on the server
* set entity.motionXYZ manually, as setVelocity is ClientOnly

* spotlessApply (#64)

Co-authored-by: Jason Mitchell <[email protected]>
Co-authored-by: GitHub GTNH Actions <>

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-01-04 16:36:50 +01:00
DrParadox7 7ff7f25f73 Mod Friendly Piercing (Rapier, Arrow & Bolts) (#60)
* Mod Friendly piercing

Piercing damage converted to bonus damage equivalent to victim's armor protection (capped at diamond armor).

This prevents rapiers from bypassing immunities.

* Run SpotlessApply

* Delete commented out code
2022-12-27 09:11:45 +01:00
Raven Szewczyk 39be06c23b Fix JABBA-related issues with crafting station slots (#54)
* Fix shift-merging tools voiding items

fixes <https://github.com/GTNewHorizons/GT-New-Horizons-Modpack/issues/11392>

* Change 0-sized ItemStacks into null stacks in crafting station attached slots

Fixes <https://github.com/GTNewHorizons/GT-New-Horizons-Modpack/issues/10425>

* Update buildscript

* spotlessApply
2022-09-22 20:51:23 +02:00
DrParadox7 18bfeaff32 Balance Additions (#53)
-Added Clay Patterns:
Single use patterns for smeltery that supports only tools not requiring a tool forge.
Currently unobtainable since I'll leave that to modpack creators.

-Added Molten Quartz:
A useful material for gating stuff behind the nether.
Just melt quartz or quartz block.
2022-09-18 10:57:03 +02:00
miozune e82f2eb4c9 Add null check (#50) 2022-08-04 08:07:59 +07:00
Alkalus e77d237649 Added Slime Boots & Slimesling. (#44)
* Added Slime Boots & Slimesling.

* Added tooltip to Slime Boots on how to stop bouncing.
Added tooltip to Slimesling.
2022-02-20 21:32:57 +01:00
miozune 3394029e1d Add a way to ignore NBT in casting recipes (#43)
* Add a way to ignore NBT in casting recipes
* use WILDCARD_VALUE
* fix NPE
2022-02-07 20:35:17 -08:00
D-Cysteine bfac3223cd Fall back for missing material 2021-10-03 20:35:19 -06:00
Arseny Spiridonov 50cd4115c2 Fixed few issues:
- https://github.com/SlimeKnights/TinkersConstruct/issues/3593
- https://github.com/SlimeKnights/TinkersConstruct/issues/2760
- https://github.com/SlimeKnights/TinkersConstruct/issues/1795
- Potion effect from Battleaxe can be added only by server
2020-09-23 20:03:53 +07:00
Arseny Spiridonov 6bd68f13b1 Fixed a lot of NPE's and few duplication glitches
(cherry-pick from other fork)
2020-09-22 23:52:53 +07:00
Kortako 0708d8054a Fixed issue with crossbow not being able to attack an enemy the player was too close to when in the battlegear slot. 2018-03-06 12:09:10 -08:00
Kortako a15044c435 Tinkers bows in Battlegear slots #2491
Added ability to equip Tinker's bows/crossbow/throwables to Battlegear slots.  Bows will only look in the same offhand, or the main inventory for ammo.
https://github.com/GTNewHorizons/NewHorizons/issues/2491
2018-02-21 05:51:18 -08:00
Jason Mitchell 14543da225 Add a null check in case there is no current equipped item 2018-01-29 22:31:02 -08:00
Jason Mitchell d748363176 Backport lumberaxe tree chop task from later versions 2017-12-22 10:34:32 -08:00
Bernhard Bonigl dad8ab969c Fix broken tools AOE harvesting and harvesting stuff above stone level.
Due to how forge/MC does things it's not possible to prevent stone-level from being harvested without extra events.
Closes #1775
2015-10-27 19:15:06 +01:00
Bernhard Bonigl ba18f02e94 Fix possible NPE when calculating knockback.
Closes #1731
2015-08-19 17:56:17 +02:00