Skip to content

Instantly share code, notes, and snippets.

---- 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
[20:16:26] [Server thread/WARN]: Failed to handle packet for /127.0.0.1:37978
net.minecraft.util.ReportedException: Ticking player
at net.minecraft.entity.player.EntityPlayerMP.onUpdateEntity(EntityPlayerMP.java:459) ~[oq.class:?]
at net.minecraft.network.NetHandlerPlayServer.redirect$onPlayerTick$zhm000(NetHandlerPlayServer.java:2029) ~[pa.class:?]
at net.minecraft.network.NetHandlerPlayServer.update(NetHandlerPlayServer.java:173) ~[pa.class:?]
at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher$1.update(NetworkDispatcher.java:209) ~[NetworkDispatcher$1.class:?]
at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:285) ~[gw.class:?]
at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:180) [oz.class:?]
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:788) [MinecraftServer.class:?]
at net.minecraft.server.dedicated.DedicatedServer.updateTimeLightAndEntities(DedicatedServer.java:396) [nz.class:?]
10.01 20:57:12 [Server] Server thread/FATAL Error executing task
10.01 20:57:12 [Server] INFO java.util.concurrent.ExecutionException: java.lang.AbstractMethodError: Method jds/bibliocraft/tileentities/TileEntityTypeMachine.getStackInSlot(I)Lnet/minecraft/item/ItemStack; is abstract
10.01 20:57:12 [Server] INFO at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:1.8.0_151]
10.01 20:57:12 [Server] INFO at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[?:1.8.0_151]
10.01 20:57:12 [Server] INFO at net.minecraft.util.Util.runTask(SourceFile:47) [h.class:?]
10.01 20:57:12 [Server] INFO at org.spongepowered.common.SpongeImplHooks.onUtilRunTask(SpongeImplHooks.java:274) [SpongeImplHooks.class:1.12.2-2555-7.1.0-BETA-2825]
10.01 20:57:12 [Server] INFO at net.minecraft.server.MinecraftServer.redirect$onRun$zjg000(MinecraftServer.java:4007) [MinecraftServer.class:?]
10.01 20:57:12 [Server] INFO at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:721) [Minecr
@ryantheleach
ryantheleach / Insane.md
Created January 5, 2018 15:55
Ryan's insane SpongeAPI Challenge

Things that are probably impossible to do in SpongeAPI currently, that I see minigames servers and packet interceptors cabable of online.

Most of these I wish I had time to develop plugins for, including API, to create a kick ass server.

  1. Just 'Hide' an entity to a specific set of players.
  2. Exclude a set of players from targeting by AI's, commands, or other players.
  3. Change the appearance of entities/players to other players.
  4. Send "fake" entities that are manually tracked and simulated emulated by a plugin, total control, no performance problems of many copies of entities being tracked in the global entity list, no risk of accidental persistence in saving.
@import "theme_variables";
@import url(https://fonts.googleapis.com/css?family=Montserrat:400,700);
// ######################################
// ### CONFIG
// Annoying purple highlight for pinned topic
$highlighted_topic_id: 2130;
// ######################################
package au.id.rleach.testdata;
import org.spongepowered.api.data.DataContainer;
import org.spongepowered.api.data.DataQuery;
import org.spongepowered.api.data.DataSerializable;
import org.spongepowered.api.data.MemoryDataContainer;
import org.spongepowered.api.data.Queries;
import org.spongepowered.api.world.Location;
import org.spongepowered.api.world.World;
@ryantheleach
ryantheleach / InteractItemEvent.java
Last active October 13, 2016 14:38 — forked from bloodmc/InteractItemEvent.java
InteractItemEvent
/*
* This file is part of SpongeAPI, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
private void spawnTrapHorse(SpawnEntityEvent event) {
event.filterEntities(
entity -> !entity.get(Keys.HORSE_VARIANT)
.filter(HorseVariants.SKELETON_HORSE::equals)
.isPresent()
);
}
[Player776: Set own game mode to Creative Mode]
[07:00:47] [Client thread/INFO]: [CHAT] Your game mode has been updated
[07:00:56] [Server thread/INFO]: <Player776> TNT - Flint and Steel
[07:00:57] [Client thread/INFO]: [CHAT] <Player776> TNT - Flint and Steel
[07:01:03] [Server thread/INFO] [modwiztesting.modwiztesting]: Cause[{Name=Source, Object={BlockSpawnCause{SpawnType=SpongeSpawnType{id=DroppedItem, name=DroppedItem}, BlockSnapshot=SpongeBlockSnapshot{worldUniqueId=0e84b5cb-7357-4bdb-916b-66e911780fd5, position=(263, 66, 271), blockState=minecraft:grass[snowy=false], extendedState=minecraft:grass[snowy=false]}}}}, {Name=Owner, Object={EntityPlayerMP['Player776'/168, l='BedTest', x=262.37, y=75.77, z=269.26]}}]
[07:01:03] [Server thread/INFO] [modwiztesting.modwiztesting]: Cause[{Name=Source, Object={BlockSpawnCause{SpawnType=SpongeSpawnType{id=DroppedItem, name=DroppedItem}, BlockSnapshot=SpongeBlockSnapshot{worldUniqueId=0e84b5cb-7357-4bdb-916b-66e911780fd5, position=(265, 66, 271), blockState=minecra
Types
Traits[]
Data{}
Properties<>
Types
minecraft:leaves //Matches original vanilla leaves.
minecraft:leaves,minecraft:leaves2 //Matches new leaves or old leaves.
minecraft: //matches any vanilla block
buildcraft: // matches any block with buildcraft as the prefix.