Skip to content

Instantly share code, notes, and snippets.

package io.github.zerthick.spongetest;
import com.google.inject.Inject;
import org.spongepowered.api.block.BlockSnapshot;
import org.spongepowered.api.entity.living.player.Player;
import org.spongepowered.api.event.Listener;
import org.spongepowered.api.event.block.InteractBlockEvent;
import org.spongepowered.api.event.cause.Cause;
import org.spongepowered.api.event.cause.NamedCause;
import org.spongepowered.api.event.filter.Getter;
@Zerthick
Zerthick / fml-server-latest.log
Created May 14, 2017 17:34
Sponge Custom Data Serialization Issue
[13:31:59] [main/DEBUG] [FML/]: Injecting tracing printstreams for STDOUT/STDERR.
[13:31:59] [main/INFO] [FML/]: Forge Mod Loader version 13.20.0.2282 for Minecraft 1.11.2 loading
[13:31:59] [main/INFO] [FML/]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_45, running on Windows 8.1:amd64:6.3, installed at C:\Program Files\Java\jdk1.8.0_45\jre
[13:31:59] [main/DEBUG] [FML/]: Java classpath at launch is C:\Program Files\Java\jdk1.8.0_45\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_45\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.8.0_45\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jdk1.8.0_45\jre\lib\ext\cldrdata.jar;C:\Program Files\Java\jdk1.8.0_45\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.8.0_45\jre\lib\ext\jaccess.jar;C:\Program Files\Java\jdk1.8.0_45\jre\lib\ext\jfxrt.jar;C:\Program Files\Java\jdk1.8.0_45\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.8.0_45\jre\lib\ext\nashorn.jar;C:\Program Files\Java\jdk1.8.0_45\jre\lib\ext\sunec.jar;C:\Program Files\Java\jdk1.8
@Zerthick
Zerthick / fml-server-latest.log
Created May 21, 2017 16:22
Sponge Legacy Data NullPointer
[12:14:49] [main/DEBUG] [FML/]: Injecting tracing printstreams for STDOUT/STDERR.
[12:14:49] [main/INFO] [FML/]: Forge Mod Loader version 13.20.0.2282 for Minecraft 1.11.2 loading
[12:14:49] [main/INFO] [FML/]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_45, running on Windows 8.1:amd64:6.3, installed at C:\Program Files\Java\jdk1.8.0_45\jre
[12:14:49] [main/DEBUG] [FML/]: Java classpath at launch is C:\Program Files\Java\jdk1.8.0_45\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_45\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.8.0_45\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jdk1.8.0_45\jre\lib\ext\cldrdata.jar;C:\Program Files\Java\jdk1.8.0_45\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.8.0_45\jre\lib\ext\jaccess.jar;C:\Program Files\Java\jdk1.8.0_45\jre\lib\ext\jfxrt.jar;C:\Program Files\Java\jdk1.8.0_45\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.8.0_45\jre\lib\ext\nashorn.jar;C:\Program Files\Java\jdk1.8.0_45\jre\lib\ext\sunec.jar;C:\Program Files\Java\jdk1.8
[15:25:56 ERROR] [Sponge]: Could not pass GameInitializationEvent$Impl to Plugin{id=presents, name=Presents, version=1.1.0, description=A simple gift giving plugin, authors=[Zerthick], source=mods\Presents-1.1.0.jar}
java.lang.NoClassDefFoundError: io/github/zerthick/presents/present/data/mutable/PresentItemData
at io.github.zerthick.presents.present.data.PresentData.registerData(PresentData.java:36) ~[PresentData.class:?]
at io.github.zerthick.presents.Presents.onServerInit(Presents.java:101) ~[Presents.class:?]
at org.spongepowered.common.event.listener.GameInitializationEventListener_Presents_onServerInit4.handle(Unknown Source) ~[?:?]
at org.spongepowered.common.event.RegisteredListener.handle(RegisteredListener.java:95) ~[RegisteredListener.class:1.12.2-7.1.0-BETA-2]
at org.spongepowered.common.event.SpongeEventManager.post(SpongeEventManager.java:407) [SpongeEventManager.class:1.12.2-7.1.0-BETA-2]
at org.spongepowered.common.event.SpongeEventManager.post(S
$ java -jar forge-1.12.2-14.23.1.2555-universal.jar
2018-01-04 15:19:13,467 main WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
2018-01-04 15:19:13,469 main WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
[15:19:13] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLServerTweaker
[15:19:13] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLServerTweaker
[15:19:13] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLServerTweaker
2018-01-04 15:19:13,699 main WARN Disabling terminal, you're running in an unsupported environment.
[15:19:13] [main/INFO] [FML]: Forge Mod Loader version 14.23.1.2555 for Minecraft 1.12.2 loading
[15:19:13] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_151, running on Windows 10:amd64:10.0, installed at C:\Program Files\Java\jre1.8.0_151
[15:19:13] [main/INFO] [FML]: Loadi
minecraft:air
minecraft:stone[variant=stone]
minecraft:stone[variant=granite]
minecraft:stone[variant=smooth_granite]
minecraft:stone[variant=diorite]
minecraft:stone[variant=smooth_diorite]
minecraft:stone[variant=andesite]
minecraft:stone[variant=smooth_andesite]
minecraft:grass[snowy=true]
minecraft:grass[snowy=false]
---- Minecraft Crash Report ----
WARNING: coremods are present:
SpongeCoremod (sponge.jar)
Contact their authors BEFORE contacting forge
// Don't be sad. I'll do better next time, I promise!
Time: 1/28/18 4:20 PM
Description: Ticking entity
@Listener(order = Order.LATE)
@IsCancelled(value = Tristate.FALSE)
public void onBlockPlace(ChangeBlockEvent.Place event, @Getter("getCause") Cause cause) {
// Growing blocks with bonemeal
cause.getContext().get(EventContextKeys.USED_ITEM).ifPresent(itemStackSnapshot -> {
if (itemStackSnapshot.getType().equals(ItemTypes.DYE)) {
itemStackSnapshot.get(Keys.DYE_COLOR).ifPresent(dyeColor -> {
if (dyeColor.equals(DyeColors.WHITE)) {
event.getTransactions().forEach(trans -> trans.getFinal().getLocation()
@Listener(order = Order.LATE)
public void onBlockPlace(ChangeBlockEvent.Place event, @Getter("getCause") Cause cause) {
Object root = cause.root();
// Growing player-placed trees naturally
if (root instanceof LocatableBlock) {
event.getTransactions().forEach(trans -> trans.getOriginal().getLocation()
.ifPresent(loc -> loc.getExtent().setCreator(loc.getBlockPosition(), null)));
}
ContentVersion=1
Count=1
Data=[
{
ContentVersion=2
ManipulatorData {
CommandBookCommands=[
"$time set day"
]
CommandBookUses=-1