-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
33 additions
and
34 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 |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
build/ | ||
out/ | ||
classes/ | ||
logs/ | ||
|
||
# idea | ||
|
||
|
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
12 changes: 5 additions & 7 deletions
12
src/main/java/mods/ltr/compat/libcd/LTRLibCDInitializer.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 |
---|---|---|
@@ -1,13 +1,11 @@ | ||
/* | ||
package mods.ltr.compat.libcd; | ||
|
||
import io.github.cottonmc.libcd.api.LibCDInitializer; | ||
import io.github.cottonmc.libcd.api.tweaker.TweakerManager; | ||
import io.github.cottonmc.libdp.api.DriverInitializer; | ||
import io.github.cottonmc.libdp.api.driver.DriverManager; | ||
|
||
public class LTRLibCDInitializer implements LibCDInitializer { | ||
public class LTRLibCDInitializer implements DriverInitializer { | ||
@Override | ||
public void initTweakers(TweakerManager manager) { | ||
public void init(DriverManager manager) { | ||
manager.addAssistant("mods.ltr.compat.libcd.LilTaterTradeOfferTweaker", new LilTaterTradeOfferTweaker()); | ||
} | ||
} | ||
*/ | ||
} |
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
10 changes: 10 additions & 0 deletions
10
src/main/resources/data/ltr/diskettes/irritated_lil_tater.js
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,10 @@ | ||
var DriverUtils = diskette.require("libdp.util.DriverUtils"); | ||
var TradeOfferTweaker = diskette.require("mods.ltr.compat.libcd.LilTaterTradeOfferTweaker"); | ||
|
||
var irritater = DriverUtils.newStack("ltr:lil_tater", 1); | ||
irritater.setName("Irritated Lil Tater"); | ||
var potion = DriverUtils.newStack("minecraft:potion",1); | ||
potion.setTagValue("Potion","minecraft:harming"); | ||
|
||
TradeOfferTweaker.addTradeOffer("minecraft:farmer", 3, | ||
"ltr:lil_tater", potion, irritater, 4, 10, 0.05); |
10 changes: 0 additions & 10 deletions
10
src/main/resources/data/ltr/tweakers/irritated_lil_tater.js
This file was deleted.
Oops, something went wrong.
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