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

Trying to get away from Travellers Gear #62

Open
wants to merge 47 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 33 commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
f58cd35
Fix the Ageing stone
Ethryan Aug 26, 2024
f15915e
Fix error
Ethryan Aug 26, 2024
f1d1110
Merge branch 'master' into Trying-to-remove-TG-dependency
Ethryan Sep 23, 2024
1cdabf3
update
Ethryan Sep 23, 2024
d2f99d1
spotless and a few tweaks
Ethryan Oct 1, 2024
ff8761a
Add a missed render event
Ethryan Oct 1, 2024
9227f2a
Implement sneak + rightclick to change items, and finally got it to c…
Ethryan Oct 1, 2024
f7768d6
Finally disabled Baubles loading in favor for Extended
Ethryan Oct 1, 2024
ee1bc72
missed the info dep line
Ethryan Oct 1, 2024
cb028c6
and this one
Ethryan Oct 1, 2024
c58d6c6
Temporairly register register fire until new items can be made
Ethryan Oct 1, 2024
16b9e00
update deps and trying to fix the keyhandler
Ethryan Oct 1, 2024
69324fd
update dependencies
Ethryan Oct 1, 2024
b3da49a
Make the Cape of the raven toggle ability by shift + jump
Ethryan Oct 1, 2024
fc0c7f1
Missed a null check
Ethryan Oct 1, 2024
584b481
Make Shift + Jump more consistent.
Ethryan Oct 2, 2024
0937c21
Activate Expanded types
Ethryan Oct 2, 2024
f0adf94
More work on Bauble items
Ethryan Oct 14, 2024
da2ecd2
Editing tooltips
Ethryan Oct 14, 2024
53a3002
Fix multijump charm and adding icons
Ethryan Oct 14, 2024
ca551fa
Add recipes and a activate key for some stuff. And fix the Cloak Bag …
Ethryan Oct 14, 2024
59d01b0
Fix Thaumonomicon recipe crash, and move config to clientproxy
Ethryan Oct 14, 2024
ddee4ed
Typo, and spotless.... sigh
Ethryan Oct 14, 2024
6ea220e
Merge branch 'master' into Ethryan-Patch
Dream-Master Nov 11, 2024
9410f8c
Merge branch 'master' into Ethryan-Patch
Ethryan Nov 15, 2024
e3c8786
Try to make it not error
Ethryan Nov 15, 2024
58dc086
Merge branch 'master' into Ethryan-Patch
Dream-Master Dec 21, 2024
9b28d13
A few recipe updates
Ethryan Dec 22, 2024
005d70b
Spotless apply for branch Ethryan-Patch for #62 (#66)
github-actions[bot] Dec 22, 2024
d9de4b4
update
Dream-Master Dec 23, 2024
67a8e5f
update
Dream-Master Dec 23, 2024
3f5a7cf
Update src/main/java/witchinggadgets/common/util/handler/EventHandler…
Dream-Master Dec 24, 2024
cc3816d
update
Dream-Master Dec 24, 2024
fdd2e4c
Fix Vambraces of Steady Progression (#67)
YannickMG Dec 25, 2024
4f4fd35
Try to fix server crashes and a bunch of wrong calls.
Ethryan Dec 25, 2024
cee9657
Fix the toggling for the cloak and kama
Ethryan Dec 25, 2024
6e6b02d
fix copypasta error
Ethryan Dec 25, 2024
2c26c4e
Try to fix the storage cloak to actually open when you push the button
Ethryan Dec 25, 2024
d64ba5b
update
Dream-Master Dec 26, 2024
3d9edb4
Merge branch 'master' into Ethryan-Patch
Dream-Master Jan 3, 2025
6a5acbd
update
Dream-Master Jan 3, 2025
64a8c22
remove if check in the EventHandller
Ethryan Jan 13, 2025
a5d2945
Merge branch 'Ethryan-Patch' of https://github.com/GTNewHorizons/Witc…
Ethryan Jan 13, 2025
f0cdc03
Update dependencies.gradle
Ethryan Jan 13, 2025
7cb1259
update
Dream-Master Jan 15, 2025
d70ef01
Should fix the Primordial Armor Server Crash
Ethryan Jan 18, 2025
dca90ad
update
Dream-Master Jan 18, 2025
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
27 changes: 14 additions & 13 deletions dependencies.gradle
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
// Add your dependencies here

dependencies {
implementation('com.github.GTNewHorizons:Tainted-Magic:7.6.13-GTNH:dev')
implementation('com.github.GTNewHorizons:GT5-Unofficial:5.09.50.67:dev')
implementation('com.github.GTNewHorizons:ForbiddenMagic:0.7.0-GTNH:dev')
implementation('com.github.GTNewHorizons:twilightforest:2.6.35:dev')
implementation('curse.maven:travellers-gear-224440:2262113')
implementation('thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev')
implementation('com.github.GTNewHorizons:NotEnoughItems:2.6.44-GTNH:dev')
api ('com.github.GTNewHorizons:ThaumicBoots:1.3.10:dev'){
exclude group: 'com.github.GTNewHorizons', module: 'WitchingGadgets'

api ('com.github.GTNewHorizons:ThaumicBoots:1.4.0:dev'){transitive=false}

implementation('com.github.GTNewHorizons:Baubles-Expanded:2.0.3:dev')
implementation('com.github.GTNewHorizons:Tainted-Magic:7.6.13-GTNH:dev') {
// we don't want the old Baubles Messing stuff up so lets disable that
exclude module: "Baubles"
}
implementation('com.github.GTNewHorizons:GT5-Unofficial:5.09.51.27:dev') {exclude module: "Baubles" }
implementation('com.github.GTNewHorizons:ForbiddenMagic:0.7.0-GTNH:dev') {exclude module: "Baubles" }
implementation('com.github.GTNewHorizons:twilightforest:2.7.1:dev')
implementation('thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev') {transitive=false}
implementation('com.github.GTNewHorizons:NotEnoughItems:2.7.4-GTNH:dev')

compileOnly('com.github.GTNewHorizons:ForgeMultipart:1.5.0:dev') {transitive=false}
compileOnly('com.github.GTNewHorizons:Botania:1.11.5-GTNH:api') {transitive=false}
compileOnly('com.github.GTNewHorizons:Botania:1.12.2-GTNH:api') {transitive=false}
compileOnly('com.github.GTNewHorizons:CraftTweaker:3.4.0:dev') {transitive=false}
compileOnly('com.github.GTNewHorizons:ZenScript:1.0.0-GTNH') {transitive=false}
compileOnly('com.github.GTNewHorizons:MagicBees:2.8.5-GTNH:api') {transitive=false}
compileOnly('com.github.GTNewHorizons:TinkersConstruct:1.12.14-GTNH:dev') {transitive=false}
compileOnly('com.github.GTNewHorizons:TinkersConstruct:1.13.0-GTNH:dev') {transitive=false}
compileOnly(deobfCurse('enviromine-230236:2269710'))

runtimeOnly('com.github.GTNewHorizons:Baubles:1.0.4:dev')
}
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pluginManagement {
}

plugins {
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.29'
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.30'
}


10 changes: 7 additions & 3 deletions src/main/java/witchinggadgets/WitchingGadgets.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

import baubles.api.expanded.BaubleExpandedSlots;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.common.Loader;
import cpw.mods.fml.common.Mod;
Expand Down Expand Up @@ -45,10 +46,9 @@
name = WitchingGadgets.MODNAME,
version = WitchingGadgets.VERSION,
dependencies = "required-after:Thaumcraft;" + "required-after:ForbiddenMagic;"
+ "required-after:TravellersGear@[1.16.4,);"
+ "required-after:gregtech;"
+ "required-after:TwilightForest;"
+ "required-after:TaintedMagic;"
+ "after:gregtech;"
+ "after:miscutils;"
+ "after:Mystcraft;"
+ "after:TConstruct;"
Expand Down Expand Up @@ -85,6 +85,7 @@ public class WitchingGadgets {
@Mod.EventHandler
public void preInit(FMLPreInitializationEvent event) {
logger.log(Level.INFO, "Setting up 'WitchingGadgets'");

if (Loader.isModLoaded(BOOTS)) {
isBootsActive = true;
}
Expand All @@ -93,7 +94,10 @@ public void preInit(FMLPreInitializationEvent event) {
WGContent.preInit();

packetHandler = NetworkRegistry.INSTANCE.newSimpleChannel(MODID);

BaubleExpandedSlots.tryAssignSlotOfType(BaubleExpandedSlots.capeType);
BaubleExpandedSlots.tryAssignSlotOfType(BaubleExpandedSlots.gauntletType);
BaubleExpandedSlots.tryAssignSlotOfType(BaubleExpandedSlots.charmType);
BaubleExpandedSlots.tryAssignSlotOfType("Title");
eventHandler = new EventHandler();
MinecraftForge.EVENT_BUS.register(eventHandler);
playerTickHandler = new PlayerTickHandler();
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/witchinggadgets/client/ClientEventHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
import thaumcraft.client.gui.GuiResearchBrowser;
import thaumcraft.common.Thaumcraft;
import thaumcraft.common.config.ConfigItems;
import travellersgear.api.RenderTravellersGearEvent;
import witchinggadgets.WitchingGadgets;
import witchinggadgets.client.render.armor.RenderGearEvent;
import witchinggadgets.common.WGContent;
import witchinggadgets.common.WGResearch;
import witchinggadgets.common.blocks.tiles.TileEntitySaunaStove;
Expand Down Expand Up @@ -283,7 +283,7 @@ public void renderArmor(SetArmorModel event) {

@SideOnly(Side.CLIENT)
@SubscribeEvent
public void renderTravellersGear(RenderTravellersGearEvent event) {
public void renderTravellersGear(RenderGearEvent event) {
int translucency = EnchantmentHelper.getEnchantmentLevel(WGContent.enc_invisibleGear.effectId, event.stack);
if (event.stack != null && (translucency > 1 || (translucency > 0 && event.entityPlayer.isInvisible()))) {
boolean unveiling = EnchantmentHelper.getEnchantmentLevel(
Expand Down
16 changes: 12 additions & 4 deletions src/main/java/witchinggadgets/client/ClientProxy.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package witchinggadgets.client;

import net.minecraft.client.particle.EntityLavaFX;
import net.minecraft.client.settings.KeyBinding;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.tileentity.TileEntity;
Expand All @@ -10,15 +11,18 @@
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.common.util.ForgeDirection;

import org.lwjgl.input.Keyboard;

import baubles.api.BaublesApi;
import baubles.api.expanded.BaubleExpandedSlots;
import cpw.mods.fml.client.FMLClientHandler;
import cpw.mods.fml.client.registry.ClientRegistry;
import cpw.mods.fml.client.registry.RenderingRegistry;
import cpw.mods.fml.common.FMLCommonHandler;
import thaumcraft.client.fx.ParticleEngine;
import thaumcraft.client.fx.particles.FXEssentiaTrail;
import thaumcraft.client.fx.particles.FXWisp;
import travellersgear.api.TravellersGearAPI;
import witchinggadgets.WitchingGadgets;
import witchinggadgets.client.fx.EntityFXSweat;
import witchinggadgets.client.gui.GuiBag;
import witchinggadgets.client.gui.GuiCloakBag;
Expand Down Expand Up @@ -115,7 +119,11 @@ public void registerHandlers() {
MinecraftForge.EVENT_BUS.register(new ClientEventHandler());
FMLCommonHandler.instance().bus().register(new WGKeyHandler());
FMLCommonHandler.instance().bus().register(new ClientTickHandler());

ClientRegistry.registerKeyBinding(
WGKeyHandler.activateKey = new KeyBinding(
"wg.config.activateKey",
Keyboard.KEY_NONE,
WitchingGadgets.MODNAME));
if (WGConfig.enableSearch) {
ThaumonomiconIndexSearcher.init();
}
Expand All @@ -130,8 +138,8 @@ public Object getClientGuiElement(int ID, EntityPlayer player, World world, int
if (ID == 4 || ID == 5) return new GuiCloakBag(
player.inventory,
world,
ID == 4 ? TravellersGearAPI.getExtendedInventory(player)[0]
: BaublesApi.getBaubles(player).getStackInSlot(3));
BaublesApi.getBaubles(player).getStackInSlot(
BaubleExpandedSlots.getIndexOfTypeInRegisteredTypes(BaubleExpandedSlots.capeType)));

if (ID == 6) return new GuiPatchedFocusPouch(player.inventory, world, x, y, z);

Expand Down
Loading
Loading