mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-22 05:02:39 +00:00
New achievement
- Added two new events related to smeltery - Added a new secret achievement labelled "Doing it Wrong"
This commit is contained in:
1 parent
049f8f44a5
commit
5694517f3d
5 files changed
+71
-13
No files matched your search
@@ -1,5 +1,7 @@
|
||||
package tconstruct.util;
|
||||
|
||||
import tconstruct.library.event.SmelteryEvent;
|
||||
|
||||
import net.minecraftforge.common.FakePlayer;
|
||||
import net.minecraftforge.event.ForgeSubscribe;
|
||||
import tconstruct.achievements.TAchievements;
|
||||
@@ -24,4 +26,13 @@ public class TEventHandlerAchievement {
|
||||
}
|
||||
}
|
||||
|
||||
@ForgeSubscribe
|
||||
public void onItemPlacedIntoCasting(SmelteryEvent.ItemInsertedIntoCasting event){
|
||||
if(event.player != null && event.item != null){
|
||||
if(event.item.getItem() instanceof ToolCore){
|
||||
event.player.addStat(TAchievements.achievements.get("tconstruct.doingItWrong"), 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user