Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Conflict with LootTweaker causes loot tables defined by mod to not generate on SpongeForge servers #3294

Open
zediious opened this issue Apr 28, 2022 · 1 comment

Comments

@zediious
Copy link

zediious commented Apr 28, 2022

Version

7.4.7

Operating System

Windows

Java Version

jre1.8.0_251

Plugins/Mods

None while testing this problem

Describe the bug

Loot tables defined with LootTweaker do not appear in chests on multiplayer servers that have SpongeForge installed. Testing on a normal Forge server results in the mod working correctly.

To Reproduce

Steps to reproduce the behavior:

I've tested this using my modpack, although you can of course test with whichever setup you have. If you want to use the same setup, here is the latest release

  1. In singleplayer with cheats enabled, use /setblock ~ ~2 ~ minecraft:chest 1 0 {LootTable:"gdtable:hilund"} and see the loot table populate the spawned chest. One can also find or spawn a WroughtBuilding recurrent complex structure.
  2. Doing such on a multiplayer server with SpongeForge installed results in no items.

Expected behavior

The chests to be filled with loot. The loot tables are generated properly within the server world at /world/data/loot_tables, and CraftTweaker reports no errors from the script, so I cannot understand why they are not called and populating the chests.

Link to logs and relevant scripts

Server latest.log: Check line 3590 https://gist.github.com/zediious/19743d52cb5dec58478536fd1732103e

Server debug log: https://gist.github.com/zediious/dd62f3b0ae22d281fb352c60e7c5a351

Chest Loot Craftweaker Script: https://github.com/zediious/galacticdrive/blob/0.2alpha/overrides/scripts/chestloot.zs

Server Crafttweaker Log: https://gist.github.com/zediious/50df74e839a0d0c901414920de9d1c08

@Daomephsta
Copy link

LootTweaker creates tables when net.minecraftforge.fml.common.event.FMLServerStartingEvent is fired.
Perhaps this is too late to work on a SpongeForge server?

@zediious zediious changed the title Conflict with LootTweaker causes loot tables defined by mod to not generate on servers Conflict with LootTweaker causes loot tables defined by mod to not generate on SpongeForge servers Apr 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants