View Issue Details

IDProjectCategoryView StatusLast Update
0002544Industrial-Craft²crossmod-compatibility / submodules / APIpublic2019-06-16 00:30
ReporterCKATEPTb Assigned ToChocohead  
PriorityhighSeveritycrashReproducibilityalways
Status resolvedResolutionwon't fix 
PlatformTablecloth 1.12.2.OS*OS Version*
Summary0002544: Bukkit Events Compatibility
DescriptionCompatible with Tablecloth 1.12.2 server (Forge+Spigot)

See additional information
Steps To ReproduceAll in additional information
Additional InformationTablecloth can be found here - https://gitlab.com/CKATEPTb/tablecloth-1.12.2
To check Bukkit Events need to initialize the presence of an EventHelper which is in the tablecloth as default.
You can do it way:
public static boolean isTableclothServer = false;

static {
    try {
        Class.forName("com.gamerforea.eventhelper.EventHelperMod");
        isTableclothServer = true;
    } catch (ClassNotFoundException e) {
    }
}

To compile the mod you need an EventHelper, you can find it here - https://github.com/gamerforEA/EventHelper/releases

If a high voltage is applied to the mechanism, it explodes and ignore all bukkit events, to listen BlockBreakEvent (bukkit) need add:

if(isTableclothServer && EventUtils.cantBreak(EntityPlayerMP, Block))
    //DONT BREAK BLOCK

In the same way, you can teach to listen to several other events, for example EventUtils.cantAttack

The explosion of mechanisms from stress is not the only thing that causes damage
TagsBukkit, Forge 2836, MC 1.12.2, PaperSpigot, Spigot
Minecraft Version1.12.2

Activities

Chocohead

2019-06-16 00:30

developer   ~0006029

Events are already posted when ever IC2 uses an explosion, they are all present in the API. Bukkit/Bukkit derivative support is best done via an addon listening for those events and handling them appropriately as needed.

Issue History

Date Modified Username Field Change
2019-05-14 17:33 CKATEPTb New Issue
2019-05-14 17:33 CKATEPTb Tag Attached: Bukkit
2019-05-14 17:33 CKATEPTb Tag Attached: Forge 2836
2019-05-14 17:33 CKATEPTb Tag Attached: MC 1.12.2
2019-05-14 17:33 CKATEPTb Tag Attached: PaperSpigot
2019-05-14 17:33 CKATEPTb Tag Attached: Spigot
2019-06-16 00:30 Chocohead Assigned To => Chocohead
2019-06-16 00:30 Chocohead Status new => resolved
2019-06-16 00:30 Chocohead Resolution open => won't fix
2019-06-16 00:30 Chocohead Note Added: 0006029