Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[1.14.4] addEnchantment() result only visible on reopen inventory


OsHeaven
 Share

Recommended Posts

Hi,

im using the onCreated() method to enchant some Tools and Armor on different  conditions...

some of these conditions are working how expected and the item is already enchanted by taking the item out of the result Slot of the craftingtable...

others dont work like this, i have to close and reopen the inventory first, to see the enchantment and the glowing texture on the item...

what is the case for this behaivor? do i need packethandling? but why not for the other condition?

 

with this, the enchantment is showing up instant:

float moonPhaseFactor = Dimension.MOON_PHASE_FACTORS[world.dimension.getMoonPhase(world.dimension.getWorldTime())];
if (world.getDimension().getType() == DimensionType.OVERWORLD && moonPhaseFactor == 1.0f) {
   stack.addEnchantment(Enchantments.BINDING_CURSE ,1);
}

 

and with this, i Need to reopen the inventory:

BlockPos pos = new BlockPos(player);
if (world.getBiome(pos).hasStructure(Structures.PILLAGER_OUTPOST)) {
   if (Structures.PILLAGER_OUTPOST.isPositionInsideStructure(world, pos)) {
      stack.addEnchantment(Enchantments.PROJECTILE_PROTECTION, 1);
   }
}

 

thx for any hints

Edited by OsHeaven
Link to comment
Share on other sites

Hm... if it were me, I would start by commenting out the code on the BlockPos method, and replacing it with an exact copy of the moonPhaseFactor method. That way, you can narrow it down a bit. Either 1) the error will still exist when creating the moonPhaseFactor item, in which case you know it has to do with how the method is called, or 2) the error will not exist, in which case the error is definitely with your BlockPos method, though I can't see why that would be giving you issues, as it is.

 

Keep us updated.

Link to comment
Share on other sites

11 minutes ago, StitchNChill said:

That way, you can narrow it down a bit

...that's the version that he says works...

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

7 minutes ago, Draco18s said:

...that's the version that he says works...

Correct. OP is saying that he has multiple methods in his code, and that some work as expected while others don't. I'm suggesting he takes the working method, inserts it in place of the misbehaving method, and checks the output.

 

If the output is still incorrect even with the working method, the issue is not with the method(s), rather something else with the code.

If the output is correct using the working method, the issue is indeed with the original misbehaving method. However, the 'misbehaving' method looks spot-on to me, which is why I'm making this suggestion.

Edited by StitchNChill
Link to comment
Share on other sites

i found some weird behaivor… if i add an isDaytime() check like this:

float moonPhaseFactor = Dimension.MOON_PHASE_FACTORS[world.dimension.getMoonPhase(world.dimension.getWorldTime())];
if (world.getDimension().getType() == DimensionType.OVERWORLD && moonPhaseFactor == 1.0f && world.isDaytime()) {
   stack.addEnchantment(Enchantments.BINDING_CURSE, 1);
}

 

on daytime: the crafted item Shows the enchantment like expected...

on nighttime: the crafted item Shows the enchantment, BUT after reopen the invontory, the enchantment and the glowing effect is gone

Edited by OsHeaven
Link to comment
Share on other sites

8 minutes ago, OsHeaven said:

on nighttime: the crafted item Shows the enchantment, BUT after reopen the invontory, the enchantment and the glowing effect is gone

This is on the moonPhaseFactor, which was originally the working method, correct? So by what your code says here , because world.isDaytime() returns FALSE, it should never get to the stack.addEnchantment(...) line:

 

8 minutes ago, OsHeaven said:

if (world.getDimension().getType() == DimensionType.OVERWORLD && moonPhaseFactor == 1.0f && world.isDaytime()) {

 

I would insert parentheses to deterministically decclare the order of operations. While your code seems to look fine, there may be something I'm not catching. Just a quick change, maybe it'll solve your issues.

 

((world.getDimension().getType() == DimensionType.OVERWORLD) && (moonPhaseFactor == 1.0f) && (world.isDaytime()))

 

EDIT: there could be a compiler bug that doesn't appropriately perform the order of operations. here is how precedence should occur (https://introcs.cs.princeton.edu/java/11precedence/) but maybe your compiler doesn't want to play nice.

Edited by StitchNChill
Link to comment
Share on other sites

6 minutes ago, StitchNChill said:

This is on the moonPhaseFactor, which was originally the working method, correct? So by what your code says here , because world.isDaytime() returns FALSE, it should never get to the stack.addEnchantment(...) line:

 

 

I would insert parentheses to deterministically decclare the order of operations. While your code seems to look fine, there may be something I'm not catching. Just a quick change, maybe it'll solve your issues.

 


((world.getDimension().getType() == DimensionType.OVERWORLD) && (moonPhaseFactor == 1.0f) && (world.isDaytime()))

 

EDIT: there could be a compiler bug that doesn't appropriately perform the order of operations. here is how precedence should occur (https://introcs.cs.princeton.edu/java/11precedence/) but maybe your compiler doesn't want to play nice.

 

isDaytime() Returns false…. so it shouldnt add the enchantment… yep.. BUT it does…

till reopening the inventory, then its removed...

im working with intellij…i dont think so, that a bug like this exists here

Link to comment
Share on other sites

1 minute ago, OsHeaven said:

isDaytime() Returns false…. so it shouldnt add the enchantment… yep.. BUT it does…

Which is why I'm suggesting you add parentheses to see if it fixes the error. It could be a compiler issue within intellij.

 

2 minutes ago, OsHeaven said:

i dont think so, that a bug like this exists here

I can't help you unless you try.

Link to comment
Share on other sites

Hm.. try outputting each of the values individually and see what happens. See if any of them output as false whenever you execute the method. If you need help on system.out.println, you can read up on it a little first: https://docs.oracle.com/javase/tutorial/essential/io/formatting.html

 

float moonPhaseFactor = Dimension.MOON_PHASE_FACTORS[world.dimension.getMoonPhase(world.dimension.getWorldTime())];

System.out.println("is overworld? " + (world.getDimension().getType() == DimensionType.OVERWORLD));
System.out.println("is moonphasefactor? " + (moonPhaseFactor == 1.0f)); 
System.out.println("is daytime? " + world.isDaytime());

if (world.getDimension().getType() == DimensionType.OVERWORLD && moonPhaseFactor == 1.0f && world.isDaytime()) {
   stack.addEnchantment(Enchantments.BINDING_CURSE, 1);
}
Edited by StitchNChill
Link to comment
Share on other sites

on daytime:

[22:06:34.727] [Client thread/INFO] [minecraft/Biome]: is Daytime:true
[22:06:34.730] [Server thread/INFO] [minecraft/Biome]: is Daytime:true

 

on night, only:

[22:06:52.652] [Client thread/INFO] [minecraft/Biome]: is Daytime:true

 

so, i think its a Server/Client synch issue...

how to synch the Client with the Server, when i take an item from the crafting result Slot?

i dont know anythingabout packethandling, and all documentations are pre 1.14 unfortunately

Edited by OsHeaven
  • Like 1
Link to comment
Share on other sites

59 minutes ago, StitchNChill said:

It could be a compiler issue within intellij.

If an issue ever arises where someone suspects a bug in very popular software vs. their code, I will always assume its "their code" and not the popular software. Are there bugs in Intellij? Probably. But something like this would get noticed and fixed before it ever got released.

 

38 minutes ago, StitchNChill said:

System.out.println("is daytime? " + world.isDaytime());

This was literally the only helpful thing you said in this thread.

  • Like 1

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

20 minutes ago, diesieben07 said:

The problem is that onCrafting is called on server and client. You'll probably need to do some forced synchronization if the condition is only determinable on the server.

some world.isRemote checks? or @OnlyIn() ? Maybe not...

forced synchronization… exists any Information about that somewhere?

Link to comment
Share on other sites

2 minutes ago, Draco18s said:

This was literally the only helpful thing you said in this thread.

Third time's the charm ?

 

Just now, OsHeaven said:

forced synchronization… exists any Information about that somewhere?

There's some older threads about it floating around. For example, googling something like "force craft synchronization server client forge" I was able to find this. I haven't read it yet, and it looks like it has to do with TileEntitys, so take that with a grain of salt - but maybe it'll help get you on the right path. 

 

Link to comment
Share on other sites

4 minutes ago, StitchNChill said:

Third time's the charm ?

 

There's some older threads about it floating around. For example, googling something like "force craft synchronization server client forge" I was able to find this. I haven't read it yet, and it looks like it has to do with TileEntitys, so take that with a grain of salt - but maybe it'll help get you on the right path. 

 

yeah, ive found some older threads too… it is often not really helpful, if all the used classes and methods are renamed, removed or replaced in 1.14 ^^

but thx

Link to comment
Share on other sites

3 hours ago, OsHeaven said:

yeah, ive found some older threads too… it is often not really helpful, if all the used classes and methods are renamed, removed or replaced in 1.14 ^^

If you need a bit more direction you need to create a custom packet using the SimpleImpl

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Link to comment
Share on other sites

18 hours ago, Animefan8888 said:

If you need a bit more direction you need to create a custom packet using the SimpleImpl

Thx, ive looked at it and some older mod codes… ive a first idea what to do, but ive some Questions now...

what type of package do i have to create? and what data to send? i need to synch the Client.. so the Server data of daytime, respectively the structure data? or the container data?

and it seems IMessage doesnt exists anymore… what type do i have to extends for my custom one? 

Link to comment
Share on other sites

1 hour ago, OsHeaven said:

it seems IMessage doesnt exists anymore… what type do i have to extends for my custom one? 

You don't need to implement or extend anything.

https://github.com/Draco18s/ReasonableRealism/tree/1.14.4/src/main/java/com/draco18s/harderores/network

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

On 8/14/2019 at 11:19 PM, Draco18s said:

thx for showing your Code. i will try to implement something to synch the structures data on Client...

for the isDaytime check, i simply use world.dimension.getWorldTime() == 13000 instead of !isDaytime()… it works on Client as well

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • WorldGen you ask? I'd have examples for Decorations, BiomeHandlers, and Features as well. You can refer to post 3 in this thread for some input.
    • When i keep playing for a while the game begins to act strangely, similarly of when the tick speed is too high, later the game crashes. i tried already to identify the mod that causes this, but i can't. If someone can help me, it would be great. Crash report: ---- Minecraft Crash Report ---- // Oops. Time: 16/10/21 09:55 Description: Ticking entity java.lang.NullPointerException: Ticking entity A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Thread: Server thread Stacktrace:     at net.minecraft.world.level.Level.m_46653_(Level.java:491) ~[client-1.17.1-20210706.113038-srg.jar%23134!:?] {re:classloading,pl:accesstransformer:B,re:mixin,pl:accesstransformer:B} -- Entity being ticked -- Details:     Entity Type: minecraft:player (net.minecraft.server.level.ServerPlayer)     Entity ID: 9029     Entity Name: Darth_Bicho     Entity's Exact location: 1203.79, 50.00, 94.06     Entity's Block location: World: (1203,50,94), Section: (at 3,2,14 in 75,3,5; chunk contains blocks 1200,0,80 to 1215,255,95), Region: (2,0; contains chunks 64,0 to 95,31, blocks 1024,0,0 to 1535,255,511)     Entity's Momentum: 0.00, -0.08, 0.00     Entity's Passengers: []     Entity's Vehicle: null Stacktrace:     at net.minecraft.world.level.Level.m_46653_(Level.java:491) ~[client-1.17.1-20210706.113038-srg.jar%23134!:?] {re:classloading,pl:accesstransformer:B,re:mixin,pl:accesstransformer:B}     at net.minecraft.server.level.ServerLevel.m_143264_(ServerLevel.java:384) ~[client-1.17.1-20210706.113038-srg.jar%23134!:?] {re:classloading,pl:accesstransformer:B}     at net.minecraft.world.level.entity.EntityTickList.m_156910_(SourceFile:54) ~[client-1.17.1-20210706.113038-srg.jar%23134!:?] {re:classloading}     at net.minecraft.server.level.ServerLevel.m_8793_(ServerLevel.java:365) ~[client-1.17.1-20210706.113038-srg.jar%23134!:?] {re:classloading,pl:accesstransformer:B}     at net.minecraft.server.MinecraftServer.m_5703_(MinecraftServer.java:882) ~[client-1.17.1-20210706.113038-srg.jar%23134!:?] {re:classloading,pl:accesstransformer:B}     at net.minecraft.server.MinecraftServer.m_5705_(MinecraftServer.java:818) ~[client-1.17.1-20210706.113038-srg.jar%23134!:?] {re:classloading,pl:accesstransformer:B}     at net.minecraft.client.server.IntegratedServer.m_5705_(IntegratedServer.java:118) ~[client-1.17.1-20210706.113038-srg.jar%23134!:?] {re:classloading,xf:OptiFine:default}     at net.minecraft.server.MinecraftServer.m_130011_(MinecraftServer.java:683) ~[client-1.17.1-20210706.113038-srg.jar%23134!:?] {re:classloading,pl:accesstransformer:B}     at net.minecraft.server.MinecraftServer.m_177918_(MinecraftServer.java:258) ~[client-1.17.1-20210706.113038-srg.jar%23134!:?] {re:classloading,pl:accesstransformer:B}     at java.lang.Thread.run(Thread.java:831) [?:?] {} -- Affected level -- Details:     All players: 1 total; [ServerPlayer['Darth_Bicho'/9029, l='ServerLevel[New World]', x=1203.79, y=50.00, z=94.06]]     Chunk stats: 17083     Level dimension: minecraft:overworld     Level spawn location: World: (193,63,88), Section: (at 1,15,8 in 12,3,5; chunk contains blocks 192,0,80 to 207,255,95), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)     Level time: 72768 game time, 92058 day time     Level name: New World     Level game mode: Game mode: survival (ID 0). Hardcore: false. Cheats: false     Level weather: Rain time: 1 (now: false), thunder time: 1 (now: false)     Known server brands: forge     Level was modded: true     Level storage version: 0x04ABD - Anvil -- System Details -- Details:     Minecraft Version: 1.17.1     Minecraft Version ID: 1.17.1     Operating System: Windows 8.1 (amd64) version 6.3     Java Version: 16.0.1, Microsoft     Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Microsoft     Memory: 1451870312 bytes (1384 MiB) / 3120562176 bytes (2976 MiB) up to 3120562176 bytes (2976 MiB)     CPUs: 2     Processor Vendor: GenuineIntel     Processor Name: Intel(R) Celeron(R) CPU  N2840  @ 2.16GHz     Identifier: Intel64 Family 6 Model 55 Stepping 8     Microarchitecture: Silvermont     Frequency (GHz): 2,17     Number of physical packages: 1     Number of physical CPUs: 2     Number of logical CPUs: 2     Graphics card #0 name: Intel(R) HD Graphics     Graphics card #0 vendor: Intel Corporation (0x8086)     Graphics card #0 VRAM (MB): 2054,68     Graphics card #0 deviceId: 0x0f31     Graphics card #0 versionInfo: DriverVersion=10.18.10.4276     Memory slot #0 capacity (MB): 4096,00     Memory slot #0 clockSpeed (GHz): 1,33     Memory slot #0 type: Unknown     Virtual memory max (MB): 9101,36     Virtual memory used (MB): 6108,28     Swap memory total (MB): 5120,00     Swap memory used (MB): 1750,16     JVM Flags: 10 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xss1M -Xmn128M -Xmx2957M -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M     Player Count: 1 / 8; [ServerPlayer['Darth_Bicho'/9029, l='ServerLevel[New World]', x=1203.79, y=50.00, z=94.06]]     Data Packs: vanilla, mod:extraarmor (incompatible), mod:dungeonsmod, mod:jei (incompatible), mod:prefab (incompatible), mod:doggytalents (incompatible), mod:mcwwindows (incompatible), mod:wonderful_enchantments (incompatible), mod:reap (incompatible), mod:jrftl (incompatible), mod:journeymap (incompatible), mod:comforts, mod:travelersbackpack (incompatible), mod:naturescompass (incompatible), mod:libx, mod:dungeoncrawl (incompatible), mod:toolleveling (incompatible), mod:guardvillagers (incompatible), mod:mcwdoors (incompatible), mod:copperequipment (incompatible), mod:simpleores, mod:dash (incompatible), mod:ironchest (incompatible), mod:dicemcta (incompatible), mod:silentlib, mod:morevanillalib, mod:enchantedgoldenapplecrafting (incompatible), mod:jade, mod:forge, mod:ironfurnaces (incompatible), mod:simplecorelib, mod:mcwtrpdoors (incompatible), mod:xercamod (incompatible), mod:majrusz_library (incompatible), mod:golems (incompatible), mod:easy_villagers (incompatible), mod:dimdungeons (incompatible), mod:curios, mod:gravestone (incompatible), mod:collective, mod:randomdecorativethings, mod:villagertools (incompatible), mod:vanillahammers, mod:elevatorid (incompatible), mod:inventoryhud (incompatible), mod:structurize (incompatible), mod:buildersaddition (incompatible), mod:worldedit (incompatible), mod:starterkit, mod:constructionwand (incompatible), mod:hunterillager (incompatible), mod:appleskin (incompatible), mod:aquaculture, mod:fallingtree (incompatible), mod:enchantwithmob (incompatible), mod:smallernetherportals, mod:scalinghealth (incompatible), mod:expanded_combat, mod:chiselsandbits (incompatible), mod:lootbagmod (incompatible), mod:snowballsfreezemobs     Type: Integrated Server (map_client.txt)     Is Modded: Definitely; Client brand changed to 'forge'     OptiFine Version: OptiFine_1.17.1_HD_U_H1_pre6     OptiFine Build: 20211008-115759     Render Distance Chunks: 2     Mipmaps: 4     Anisotropic Filtering: 1     Antialiasing: 0     Multitexture: false     Shaders: null     OpenGlVersion: 3.2.0 - Build 10.18.10.4276     OpenGlRenderer: Intel(R) HD Graphics     OpenGlVendor: Intel     CpuCount: 2     ModLauncher: 9.0.7+91+master.8569cdf     ModLauncher launch target: forgeclient     ModLauncher naming: srg     ModLauncher services:           mixin PLUGINSERVICE           eventbus PLUGINSERVICE           object_holder_definalize PLUGINSERVICE           runtime_enum_extender PLUGINSERVICE           capability_token_subclass PLUGINSERVICE           capability_inject_definalize PLUGINSERVICE           accesstransformer PLUGINSERVICE           runtimedistcleaner PLUGINSERVICE           mixin TRANSFORMATIONSERVICE           OptiFine TRANSFORMATIONSERVICE           fml TRANSFORMATIONSERVICE      FML Language Providers:          minecraft@1.0         javafml@null     Mod List:          ExtraArmor-1.17.1-1.13.1.jar                      |Extra Armor                   |extraarmor                    |1.17.1-1.13.1       |DONE      |Manifest: NOSIGNATURE         DungeonsMod-1.17.1-1.4.53.jar                     |Dungeons Mod                  |dungeonsmod                   |1.17.1-1.4.53       |DONE      |Manifest: NOSIGNATURE         jei-1.17.1-8.0.0.12.jar                           |Just Enough Items             |jei                           |8.0.0.12            |DONE      |Manifest: NOSIGNATURE         Prefab-Mod-1.17.1.jar                             |Prefab                        |prefab                        |1.7.1.1             |DONE      |Manifest: NOSIGNATURE         DoggyTalents-1.17.1-2.1.0.1.jar                   |Doggy Talents 2               |doggytalents                  |2.1.0.1             |DONE      |Manifest: NOSIGNATURE         mcw-windows-2.0.0-mc1.17.1.jar                    |Macaw's Windows               |mcwwindows                    |2.0.0               |DONE      |Manifest: NOSIGNATURE         wonderful-enchantments-1.17.1-1.5.2.jar           |Wonderful Enchantments        |wonderful_enchantments        |1.5.2               |DONE      |Manifest: NOSIGNATURE         reap-1.17.1-1.0.0.jar                             |Reap Mod                      |reap                          |1.17.1-1.0.0        |DONE      |Manifest: NOSIGNATURE         JRFTL+[1.17.1]-1.2.jar                            |JRFTL                         |jrftl                         |1.2                 |DONE      |Manifest: NOSIGNATURE         journeymap-1.17.1-5.7.3rc3.jar                    |Journeymap                    |journeymap                    |5.7.3rc3            |DONE      |Manifest: NOSIGNATURE         comforts-forge-1.17.1-5.0.0.1.jar                 |Comforts                      |comforts                      |1.17.1-5.0.0.1      |DONE      |Manifest: NOSIGNATURE         TravelersBackpack-1.17.1-6.0.3.jar                |Traveler's Backpack           |travelersbackpack             |6.0.3               |DONE      |Manifest: NOSIGNATURE         NaturesCompass-1.17.1-1.9.2-forge.jar             |Nature's Compass              |naturescompass                |1.17.1-1.9.2-forge  |DONE      |Manifest: NOSIGNATURE         LibX-1.17.1-2.0.10.jar                            |LibX                          |libx                          |1.17.1-2.0.10       |DONE      |Manifest: NOSIGNATURE         DungeonCrawl-1.17.1-2.3.2.jar                     |Dungeon Crawl                 |dungeoncrawl                  |2.3.2               |DONE      |Manifest: NOSIGNATURE         toolleveling-1.17.1-1.2.8.jar                     |Tool Leveling                 |toolleveling                  |1.17.1 - 1.2.8      |DONE      |Manifest: NOSIGNATURE         guardvillagers-1.17.1.1.3.3 (1).jar               |Guard Villagers               |guardvillagers                |1.3.3               |DONE      |Manifest: NOSIGNATURE         mcw-doors-1.0.3-mc1.17.1.jar                      |Macaw's Doors                 |mcwdoors                      |1.0.3               |DONE      |Manifest: NOSIGNATURE         CopperEquipment-Forge1.17.1-0.1.jar               |Copper Equipment              |copperequipment               |0.1                 |DONE      |Manifest: NOSIGNATURE         SimpleOres2-1.17.1-3.0.1.4.jar                    |Simple Ores                   |simpleores                    |1.17.1-3.0.1.4      |DONE      |Manifest: NOSIGNATURE         dash-1.17.1-1.0.1.jar                             |Dash                          |dash                          |1.0.1               |DONE      |Manifest: NOSIGNATURE         ironchest-1.17.1-12.0.2.jar                       |Iron Chests                   |ironchest                     |1.17.1-12.0.2       |DONE      |Manifest: NOSIGNATURE         DiceMC-TieredArmor-1.17.1-1.1a.jar                |DiceMC Tiered Armor           |dicemcta                      |1.17.1-1.1a         |DONE      |Manifest: NOSIGNATURE         client-1.17.1-20210706.113038-srg.jar             |Minecraft                     |minecraft                     |1.17.1              |DONE      |Manifest: a1:d4:5e:04:4f:d3:d6:e0:7b:37:97:cf:77:b0:de:ad:4a:47:ce:8c:96:49:5f:0a:cf:8c:ae:b2:6d:4b:8a:3f         silent-lib-1.17.1-5.0.0.jar                       |Silent Lib                    |silentlib                     |5.0.0               |DONE      |Manifest: NOSIGNATURE         MoreVanillaLib-1.17.1-2.0.5.jar                   |MoreVanillaLib                |morevanillalib                |1.17.1-2.0.5        |DONE      |Manifest: NOSIGNATURE         1.17.1-enchantedgoldenapplecrafting-1.0.jar       |Enchanted Golden Apple Craftin|enchantedgoldenapplecrafting  |1.0                 |DONE      |Manifest: NOSIGNATURE         Jade-1.17.1-3.3.1.jar                             |Jade                          |jade                          |3.3.1               |DONE      |Manifest: NOSIGNATURE         forge-1.17.1-37.0.84-universal.jar                |Forge                         |forge                         |37.0.84             |DONE      |Manifest: 22:af:21:d8:19:82:7f:93:94:fe:2b:ac:b7:e4:41:57:68:39:87:b1:a7:5c:c6:44:f9:25:74:21:14:f5:0d:90         ironfurnaces-1.17.1-2.8.4.jar                     |Iron Furnaces                 |ironfurnaces                  |2.8.4               |DONE      |Manifest: NOSIGNATURE         SimpleCoreLib-1.17.1-3.0.4.0.jar                  |SimpleCoreLib                 |simplecorelib                 |1.17.1-3.0.4.0      |DONE      |Manifest: NOSIGNATURE         mcw-trapdoors-1.0.3-mc1.17.1.jar                  |Macaw's Trapdoors             |mcwtrpdoors                   |1.0.3               |DONE      |Manifest: NOSIGNATURE         xercamod-1.17.1-1.1.jar                           |Xerca Mod                     |xercamod                      |1.17.1-1.1          |DONE      |Manifest: NOSIGNATURE         majrusz-library-1.17.1-2.6.0.jar                  |Majrusz Library               |majrusz_library               |2.6.0               |DONE      |Manifest: NOSIGNATURE         extragolems-17.1.1.jar                            |Extra Golems                  |golems                        |17.1.1              |DONE      |Manifest: NOSIGNATURE         easy_villagers-1.17.1-1.0.5.jar                   |Easy Villagers                |easy_villagers                |1.17.1-1.0.4        |DONE      |Manifest: NOSIGNATURE         dimdungeons-1.13.1-forge-1.17.1.jar               |Dimensional Dungeons          |dimdungeons                   |1.13.1              |DONE      |Manifest: NOSIGNATURE         curios-forge-1.17.1-5.0.1.0.jar                   |Curios API                    |curios                        |1.17.1-5.0.1.0      |DONE      |Manifest: NOSIGNATURE         gravestone-1.17.1-1.0.4.jar                       |Gravestone Mod                |gravestone                    |1.17.1-1.0.4        |DONE      |Manifest: NOSIGNATURE         collective-1.17.1-2.64.jar                        |Collective                    |collective                    |2.64                |DONE      |Manifest: NOSIGNATURE         RandomDecorativeThings-1.17.1-0.1.2.jar           |Random Decorative Things      |randomdecorativethings        |0.1.2               |DONE      |Manifest: NOSIGNATURE         villagertools-1.17.1-1.0.1.jar                    |villagertools                 |villagertools                 |1.17.1-1.0.1        |DONE      |Manifest: 1f:47:ac:b1:61:82:96:b8:47:19:16:d2:61:81:11:60:3a:06:4b:61:31:56:7d:44:31:1e:0c:6f:22:5b:4c:ed         VanillaHammers-1.17.1-3.0.2.jar                   |Vanilla Hammers               |vanillahammers                |1.17.1-3.0.2        |DONE      |Manifest: NOSIGNATURE         elevatorid-1.17.1-1.8.1.jar                       |Elevator Mod                  |elevatorid                    |1.17.1-1.8.1        |DONE      |Manifest: NOSIGNATURE         InventoryHud_[1.17.1].forge-3.3.3.jar             |Inventory HUD+(Forge edition) |inventoryhud                  |3.3.3               |DONE      |Manifest: NOSIGNATURE         structurize-1.17.1-0.13.239-ALPHA.jar             |Structurize                   |structurize                   |1.17.1-0.13.239-ALPH|DONE      |Manifest: NOSIGNATURE         buildersaddition-1.17.1-20210810a.jar             |Builders Crafts & Addition    |buildersaddition              |1.17.1-20210810a    |DONE      |Manifest: NOSIGNATURE         worldedit-mod-7.2.6.jar                           |WorldEdit                     |worldedit                     |7.2.6+4b2d1e7       |DONE      |Manifest: NOSIGNATURE         starterkit_1.17.1-2.6.jar                         |Starter Kit                   |starterkit                    |2.6                 |DONE      |Manifest: NOSIGNATURE         constructionwand-1.17.1-2.3.jar                   |Construction Wand             |constructionwand              |1.17.1-2.3          |DONE      |Manifest: NOSIGNATURE         HunterIllager-1.17.1-2.4.0.jar                    |Hunter Illager                |hunterillager                 |1.17.1-2.4.0        |DONE      |Manifest: NOSIGNATURE         appleskin-forge-mc1.17.1-2.1.0.jar                |AppleSkin                     |appleskin                     |2.1.0               |DONE      |Manifest: NOSIGNATURE         Aquaculture-1.17.1-2.2.2.jar                      |Aquaculture 2                 |aquaculture                   |1.17.1-2.2.2        |DONE      |Manifest: NOSIGNATURE         Falling-Tree-Mod-Fabric-1.17.1.jar                |FallingTree                   |fallingtree                   |2.14.0              |DONE      |Manifest: 3c:8e:df:6c:df:a6:2a:9f:af:64:ea:04:9a:cf:65:92:3b:54:93:0e:96:50:b4:52:e1:13:42:18:2b:ae:40:29         enchantwithmob-1.17.1-2.5.1.jar                   |Enchant With Mob              |enchantwithmob                |1.17.1-2.5.1        |DONE      |Manifest: NOSIGNATURE         smallernetherportals_1.17.1-1.8.jar               |Smaller Nether Portals        |smallernetherportals          |1.8                 |DONE      |Manifest: NOSIGNATURE         ScalingHealth-1.17.1-5.0.4+4.jar                  |Scaling Health                |scalinghealth                 |5.0.4+4             |DONE      |Manifest: NOSIGNATURE         expanded_combat-2.3.0-1.17.1.jar                  |Expanded Combat               |expanded_combat               |2.3.0               |DONE      |Manifest: NOSIGNATURE         chiselsandbits-1.1.6-RELEASE-universal.jar        |Chisels & bits                |chiselsandbits                |1.1.6-RELEASE       |DONE      |Manifest: NOSIGNATURE         lootbagmod-1.17-3.0.0.jar                         |Loot Bag Mod                  |lootbagmod                    |1.17-3.0.0          |DONE      |Manifest: NOSIGNATURE         snowballsfreezemobs_1.17.1-1.5.jar                |Snowballs Freeze Mobs         |snowballsfreezemobs           |1.5                 |DONE      |Manifest: NOSIGNATURE     Crash Report UUID: 2c67d6ad-3d8a-4ade-8adf-3048ef40531b     FML: 37.0     Forge: net.minecraftforge:37.0.84
    • Good evening, a bit more progress and inherited info. I finally managed to understand why I couldn't perfectly connect my registry's to the object.class. You guys were right all the way. It was all about basic understanding of Java, and to correctly use fields, constants, properties etc. It's just one of 6 code languages I'm script kiddying, so bare with me. It also made sense to understand, that my Fluid.class(not FluidBlock.class) was, from its logic, actually a "register".class just as my main register .class, and I could basically just have used all my fluid.class code inside the general registry as well. So it seems important you also give perfect label/naming/package structure to your mod, though I know from scripting with Papyrus, it isn't the worst thing to multithread. However, the FluidRegistry.class has the FluidBlock.class registered like that now:
    • Use the OF website to check if it's compatible with your Forge version. It's a compatibility issue that OF needs to fix, nothing to do with Forge.
    • The code which utilizes BiomeLoadingEvent I have already shown above but here it is again: This code for the feature is this: And the code for the structure piece is this: I mainly took advantage of the many examples in vanilla to make the above two classes
  • Topics

  • Who's Online (See full list)

×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.