Jump to content

[1.7.10] Calling Achievements


EsvDefcon

Recommended Posts

Hi,

 

So, I have to custom method to call achievements. I want my achievements to unlock when the player builds a ship of a certain size, with certain weapons, or with a certain cargo capacity (this is for my airship mod). So, this is the code I use to get the type of ship that the player has built:

 

public static String getShipType(ItemCraftedEvent event) {
	if(passengerCapacity > actualCargoCapacity && passengerCapacity > actualWeaponCount) {
		event.player.addStat(Skyline.achievementCivilianCaptain, 1);
		if(passengerCapacity >= 50) {
			return "Passenger- Skyliner";
		} else if(passengerCapacity < 50 && passengerCapacity >= 25) {
			return "Passenger- Airship";
		} else if(passengerCapacity < 25 && passengerCapacity >= 15) {
			return "Passenger- Large Ship";
		} else if(passengerCapacity < 15 && passengerCapacity >= 10) {
			return "Passenger- Medium Ship";
		} else if(passengerCapacity < 10 && passengerCapacity >= 2) {
			return "Passenger- Small Ship";
		}
	} else if(actualCargoCapacity > passengerCapacity && actualCargoCapacity > actualWeaponCount) {
		event.player.addStat(Skyline.achievementCivilianCaptain, 1);
		if(actualCargoCapacity >= 50) {
			return "Transport- Freighter";
		} else if(actualCargoCapacity < 50 && actualCargoCapacity >= 25) {
			return "Transport- Cargo Ship";
		} else if(actualCargoCapacity < 25 && actualCargoCapacity >= 10) {
			return "Transport- Trade Ship";
		}
	} else if(actualWeaponCount > passengerCapacity && actualWeaponCount > actualCargoCapacity) {
		event.player.addStat(Skyline.achievementMilitaryCaptain, 1);
		if(actualWeaponCount >= 25) {
			return "Military- Dreadnought";
		} else if(actualWeaponCount < 25 && actualWeaponCount >= 20) {
			return "Military- Battleship";
		} else if(actualWeaponCount < 20 && actualWeaponCount >= 15) {
			return "Military- Battlecruiser";
		} else if(actualWeaponCount < 15 && actualWeaponCount >= 10) {
			return "Military- Cruiser";
		} else if(actualWeaponCount < 10 && actualWeaponCount >= 5) {
			return "Military- Destroyer";
		} else if(actualWeaponCount < 5 && actualWeaponCount >= 3) {
			return "Military- Frigate";
		} else if(actualWeaponCount < 3 && actualWeaponCount >= 1) {
			return "Military- Fighter";
		}	
	}
	return null;
}

Now, this is just for aesthetic purposes. But, I have an achievement for each type of ship. So, am I right in thinking that I should be able to unlock the achievements by doing this? Because it crashes.

 

@SubscribeEvent
public static String getShipType(ItemCraftEvent event) {
	if(passengerCapacity > actualCargoCapacity && passengerCapacity > actualWeaponCount) {
		event.player.addStat(Skyline.achievementCivilianCaptain, 1);

 

And so on, obviously I'd do this for the rest of the achievements as well. I've used @SubscribeEvent, and registered it using the FMLCommonHandler. I've used ItemCraftEvent because you need an Event to use this with, so I presumed (and I'm guessing this is where I've gone wrong) that I can just use any event here to add the achievement. When I call this method ingame (by opening the GUI), it crashes, and i get this:

 

---- Minecraft Crash Report ----
// There are four lights!

Time: 28/08/14 18:03
Description: Rendering screen

java.lang.NullPointerException: Rendering screen
at esvdefcon.skyline.chunk.AssembleResult.getShipType(AssembleResult.java:244)
at esvdefcon.skyline.gui.GuiHelm.drawGuiContainerForegroundLayer(GuiHelm.java:218)
at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:138)
at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1145)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1067)
at net.minecraft.client.Minecraft.run(Minecraft.java:961)
at net.minecraft.client.main.Main.main(Main.java:164)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:134)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at GradleStart.bounce(GradleStart.java:107)
at GradleStart.startClient(GradleStart.java:100)
at GradleStart.main(GradleStart.java:55)


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Stacktrace:
at esvdefcon.skyline.chunk.AssembleResult.getShipType(AssembleResult.java:244)
at esvdefcon.skyline.gui.GuiHelm.drawGuiContainerForegroundLayer(GuiHelm.java:218)
at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:138)

-- Screen render details --
Details:
Screen name: esvdefcon.skyline.gui.GuiHelm
Mouse location: Scaled: (213, 119). Absolute: (427, 240)
Screen size: Scaled: (427, 240). Absolute: (854, 480). Scale factor of 2

-- Affected level --
Details:
Level name: MpServer
All players: 1 total; [EntityClientPlayerMP['ForgeDevName'/334, l='MpServer', x=50.09, y=75.91, z=421.87]]
Chunk stats: MultiplayerChunkCache: 103, 103
Level seed: 0
Level generator: ID 00 - default, ver 1. Features enabled: false
Level generator options: 
Level spawn location: World: (88,64,256), Chunk: (at 8,4,0 in 5,16; contains blocks 80,0,256 to 95,255,271), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
Level time: 43402 game time, 4241 day time
Level dimension: 0
Level storage version: 0x00000 - Unknown?
Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false
Forced entities: 95 total; [EntityZombie['Zombie'/137, l='MpServer', x=9.50, y=37.00, z=436.50], EntityZombie['Zombie'/136, l='MpServer', x=3.50, y=38.00, z=439.50], EntityPig['Pig'/139, l='MpServer', x=7.25, y=64.00, z=432.34], EntityPig['Pig'/138, l='MpServer', x=15.13, y=64.00, z=433.97], EntityHorse['Horse'/141, l='MpServer', x=4.91, y=64.00, z=453.44], EntityPig['Pig'/140, l='MpServer', x=2.09, y=63.00, z=459.03], EntitySkeleton['Skeleton'/129, l='MpServer', x=12.22, y=60.00, z=370.63], EntitySpider['Spider'/128, l='MpServer', x=15.03, y=19.00, z=375.88], EntityZombie['Zombie'/131, l='MpServer', x=15.91, y=44.00, z=414.59], EntitySkeleton['Skeleton'/130, l='MpServer', x=5.47, y=60.00, z=371.78], EntityZombie['Zombie'/133, l='MpServer', x=0.50, y=27.00, z=440.50], EntityHorse['Horse'/132, l='MpServer', x=15.16, y=67.00, z=423.56], EntityZombie['Zombie'/135, l='MpServer', x=1.50, y=38.00, z=437.50], EntityCreeper['Creeper'/134, l='MpServer', x=2.03, y=43.00, z=440.44], EntitySkeleton['Skeleton'/154, l='MpServer', x=29.50, y=28.00, z=379.50], EntityCreeper['Creeper'/155, l='MpServer', x=21.03, y=34.00, z=371.53], EntityBat['Bat'/156, l='MpServer', x=17.25, y=61.10, z=377.34], EntityBat['Bat'/157, l='MpServer', x=29.44, y=35.13, z=393.13], EntityPig['Pig'/158, l='MpServer', x=30.94, y=69.00, z=394.97], EntityClientPlayerMP['ForgeDevName'/334, l='MpServer', x=50.09, y=75.91, z=421.87], EntityPig['Pig'/159, l='MpServer', x=27.84, y=69.00, z=396.53], EntityPig['Pig'/163, l='MpServer', x=30.13, y=64.00, z=419.59], EntitySkeleton['Skeleton'/162, l='MpServer', x=20.91, y=43.00, z=417.34], EntityCreeper['Creeper'/161, l='MpServer', x=20.50, y=46.00, z=426.50], EntitySkeleton['Skeleton'/160, l='MpServer', x=22.00, y=48.00, z=412.69], EntityPig['Pig'/166, l='MpServer', x=17.88, y=64.00, z=450.16], EntityPig['Pig'/165, l='MpServer', x=23.03, y=64.00, z=443.88], EntityPig['Pig'/164, l='MpServer', x=21.50, y=64.00, z=419.50], EntityItem['item.item.rottenFlesh'/178, l='MpServer', x=45.50, y=66.13, z=365.44], EntityBat['Bat'/179, l='MpServer', x=32.25, y=49.10, z=413.75], EntityHorse['Horse'/182, l='MpServer', x=42.28, y=62.00, z=445.22], EntityZombie['Zombie'/183, l='MpServer', x=39.41, y=49.00, z=435.00], EntityBat['Bat'/180, l='MpServer', x=39.47, y=37.16, z=429.58], EntityZombie['Zombie'/181, l='MpServer', x=38.31, y=49.00, z=433.31], EntityCreeper['Creeper'/205, l='MpServer', x=49.00, y=27.00, z=462.56], EntitySquid['Squid'/204, l='MpServer', x=56.50, y=58.25, z=431.96], EntitySquid['Squid'/201, l='MpServer', x=56.01, y=58.65, z=428.50], EntitySquid['Squid'/200, l='MpServer', x=58.37, y=58.00, z=428.50], EntitySquid['Squid'/203, l='MpServer', x=57.23, y=58.28, z=429.08], EntityEnderman['Enderman'/336, l='MpServer', x=47.53, y=14.61, z=500.53], EntityCreeper['Creeper'/202, l='MpServer', x=60.38, y=61.72, z=420.41], EntityBat['Bat'/197, l='MpServer', x=48.42, y=37.23, z=376.72], EntityPig['Pig'/196, l='MpServer', x=61.81, y=68.00, z=353.63], EntitySkeleton['Skeleton'/199, l='MpServer', x=55.09, y=50.00, z=430.44], EntityCow['Cow'/198, l='MpServer', x=56.09, y=67.00, z=377.13], EntityZombie['Zombie'/345, l='MpServer', x=97.78, y=20.85, z=496.53], EntitySkeleton['Skeleton'/326, l='MpServer', x=74.50, y=19.00, z=478.16], EntitySkeleton['Skeleton'/327, l='MpServer', x=71.09, y=21.00, z=493.50], EntityCreeper['Creeper'/325, l='MpServer', x=64.00, y=25.00, z=477.63], EntityCreeper['Creeper'/216, l='MpServer', x=70.22, y=28.00, z=452.09], EntitySpider['Spider'/323, l='MpServer', x=30.56, y=67.00, z=490.63], EntityPig['Pig'/321, l='MpServer', x=-15.78, y=65.00, z=473.19], EntityZombie['Zombie'/93, l='MpServer', x=-27.50, y=12.00, z=406.50], EntityBat['Bat'/212, l='MpServer', x=69.43, y=32.76, z=387.74], EntityZombie['Zombie'/92, l='MpServer', x=-24.50, y=12.00, z=407.50], EntityZombie['Zombie'/335, l='MpServer', x=62.69, y=11.85, z=500.13], EntityBat['Bat'/213, l='MpServer', x=66.71, y=41.70, z=389.02], EntityCreeper['Creeper'/95, l='MpServer', x=-22.35, y=12.00, z=406.78], EntityPig['Pig'/214, l='MpServer', x=65.03, y=64.00, z=408.09], EntitySquid['Squid'/332, l='MpServer', x=90.03, y=59.19, z=470.71], EntityZombie['Zombie'/94, l='MpServer', x=-27.50, y=12.00, z=411.50], EntityZombie['Zombie'/333, l='MpServer', x=91.16, y=23.00, z=491.78], EntityBat['Bat'/215, l='MpServer', x=77.31, y=23.10, z=442.75], EntityPig['Pig'/89, l='MpServer', x=-25.47, y=67.00, z=364.50], EntityCreeper['Creeper'/330, l='MpServer', x=83.50, y=24.00, z=473.97], EntityZombie['Zombie'/331, l='MpServer', x=82.09, y=25.00, z=478.22], EntityCreeper['Creeper'/328, l='MpServer', x=75.41, y=22.00, z=481.84], EntityBat['Bat'/90, l='MpServer', x=-27.25, y=52.05, z=371.63], EntityCreeper['Creeper'/329, l='MpServer', x=76.69, y=22.00, z=483.91], EntitySkeleton['Skeleton'/211, l='MpServer', x=66.50, y=50.00, z=382.50], EntitySkeleton['Skeleton'/100, l='MpServer', x=-26.50, y=32.00, z=403.50], EntityCreeper['Creeper'/98, l='MpServer', x=-27.50, y=27.00, z=408.50], EntitySkeleton['Skeleton'/99, l='MpServer', x=-23.47, y=35.00, z=410.84], EntityCreeper['Creeper'/96, l='MpServer', x=-21.41, y=12.00, z=406.48], EntitySquid['Squid'/233, l='MpServer', x=89.56, y=61.85, z=456.02], EntityBat['Bat'/97, l='MpServer', x=-20.85, y=13.57, z=406.30], EntitySquid['Squid'/232, l='MpServer', x=88.97, y=62.47, z=460.96], EntitySkeleton['Skeleton'/231, l='MpServer', x=94.50, y=22.00, z=453.50], EntityEnderman['Enderman'/110, l='MpServer', x=-8.75, y=40.00, z=417.31], EntityBat['Bat'/230, l='MpServer', x=83.25, y=21.10, z=439.63], EntitySpider['Spider'/111, l='MpServer', x=-10.66, y=64.00, z=428.00], EntityCreeper['Creeper'/108, l='MpServer', x=-13.50, y=40.00, z=414.50], EntityZombie['Zombie'/229, l='MpServer', x=84.44, y=50.00, z=416.44], EntityCow['Cow'/228, l='MpServer', x=87.72, y=63.00, z=380.59], EntitySpider['Spider'/109, l='MpServer', x=-13.44, y=40.00, z=418.13], EntityCreeper['Creeper'/107, l='MpServer', x=-7.94, y=20.00, z=392.41], EntityZombie['Zombie'/112, l='MpServer', x=-6.03, y=39.00, z=437.50], EntityZombie['Zombie'/127, l='MpServer', x=8.50, y=14.00, z=369.50], EntityZombie['Zombie'/126, l='MpServer', x=8.50, y=14.00, z=371.50], EntityBat['Bat'/244, l='MpServer', x=102.08, y=25.48, z=458.59], EntityZombie['Zombie'/125, l='MpServer', x=7.50, y=14.00, z=373.50], EntityZombie['Zombie'/124, l='MpServer', x=6.50, y=14.00, z=374.50], EntityItem['item.item.rottenFlesh'/242, l='MpServer', x=101.78, y=65.13, z=360.78], EntityCreeper['Creeper'/123, l='MpServer', x=10.22, y=23.00, z=365.91], EntityCreeper['Creeper'/243, l='MpServer', x=108.69, y=20.00, z=458.59]]
Retry entities: 0 total; []
Server brand: fml,forge
Server type: Integrated singleplayer server
Stacktrace:
at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:417)
at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2568)
at net.minecraft.client.Minecraft.run(Minecraft.java:982)
at net.minecraft.client.main.Main.main(Main.java:164)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:134)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at GradleStart.bounce(GradleStart.java:107)
at GradleStart.startClient(GradleStart.java:100)
at GradleStart.main(GradleStart.java:55)

-- System Details --
Details:
Minecraft Version: 1.7.10
Operating System: Windows 8 (amd64) version 6.2
Java Version: 1.7.0_25, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 873090064 bytes (832 MB) / 1056309248 bytes (1007 MB) up to 1056309248 bytes (1007 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
IntCache: cache: 0, tcache: 0, allocated: 13, tallocated: 95
FML: MCP v9.05 FML v7.10.18.1180 Minecraft Forge 10.13.0.1180 4 mods loaded, 4 mods active
mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
FML{7.10.18.1180} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.0.1180.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
Forge{10.13.0.1180} [Minecraft Forge] (forgeSrc-1.7.10-10.13.0.1180.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
skyline{1.0.0 Pre-Alpha} [EsvDefcon's Skyline Mod] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
Launched Version: 1.7.10
LWJGL: 2.9.1
OpenGL: AMD Radeon HD 7500G GL version 4.2.11764 Compatibility Profile Context, ATI Technologies Inc.
GL Caps: Using GL 1.3 multitexturing.
Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
Anisotropic filtering is supported and maximum anisotropy is 16.
Shaders are available because OpenGL 2.1 is supported.

Is Modded: Definitely; Client brand changed to 'fml,forge'
Type: Client (map_client.txt)
Resource Packs: []
Current Language: English (US)
Profiler Position: N/A (disabled)
Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Anisotropic Filtering: Off (1)

So, is there another way entirely that I should be doing this? Or, if I can do it in this method, what should I replace the current event with to fix this?

 

Thanks :)

Link to comment
Share on other sites

Well, reading your errorlog always helps:

 

java.lang.NullPointerException: Rendering screen
at esvdefcon.skyline.chunk.AssembleResult.getShipType(AssembleResult.java:244)

 

Have a look at the line 244 of the file. It should be within the method getShipType.

One of variables or methods you call there return a null. E.g. what they contain or return is empty.

Check which one it is (by substituting the others until you find which one crashes for instance) and then look at what that method or variable actually does and why it returns null.

 

And you weren't really wrong with ItemCraftEvent. It's just that it's only going to trigger when you have crafted something.

Link to comment
Share on other sites

Thanks :)

 

Line 244 is the line which actually adds the achievement. i tried it with the crafting event (event.player.addstat), and it crashed. So, I got rid of the ItemCraftedEvent altogether (not the method has no parameters), and registered this at the top of my class;

 

public static EntityPlayer entityplayer;

 

Now I can use entityplayer.addStat instead of the method. I also had to replace @SubscribeEvent with @EventHandler.

 

Anyway, like you said, there's a NPE at line 244, which is where the achievement is added. I got the same crash when I used entityplayer. So, from what you're saying, when I go to add the achievement, it's returning null, right? I don't know where to go from here, but I thought that I should mention that I had to return something because it's a string. That's why I returned null at the bottom of the method. I doubt that this is linked, but it's probably worth noting.

 

EDIT: While I'm waiting to see if anyone has any further ideas, I'm going to try calling another method to trigger the achievements, instead of just calling them directly from there.

 

EDIT 2: I get the exact same error, at the line where I trigger the achievement (although it's now inside of a different method). It's definitely a problem with the actual triggering of the achievement. So, I got rid of the new methods, and went back to just adding the achievements from inside of the getShipType method.

Link to comment
Share on other sites

Alright, so now you know which line is returning null. What you have to do now is deduce what is returning a null.

 

Let us analyse the different possibilities.

 

event.player.addStat(Skyline.achievementCivilianCaptain, 1)

 

We clearly only have 2. The addStat and the achievement itself. One of them is null, why?

Looking at addStat we only have 3 possibilities: Either you didn't register it correctly, you're calling the method from somewhere which shouldn't be done(the game calls the method itself when something is crafted, that's what the event is for), or the event doesn't return the player. Of the three, the most likely are 1 & 2.

 

Looking at the achievement itself, well as long as the achievement was created and registered correctly it should be work.

 

So have a look at those two different things. I personally believe you are calling the method instead of letting the event handle it.

 

Or as a last option, I might be wrong as well since I haven't implemented an achievement yet(although I am going to create one now).

Link to comment
Share on other sites

Alright, I agree with you that the most likely is probably that it's because I'm calling it rather than the event calling it. Like I said before, however, I removed the event, and I replaced it with a reference to EntityPlayer. Should I call it differently maybe?

Link to comment
Share on other sites

The problem with declaring an EntityPlayer at the top is that it is empty so even if you add an achievement to that player object it won't show up in the game(if it doesn't crashes because of it, as that also would be a nullpointer because you didn't create a new player) because simply, that player object doesn't contain the current player, it is as simple as that.

 

If I were you I'd set up my event again in my custom eventHandler, choose the event correctly and register it.

If you want to know what all the events are, go to the event class (F3 on any type of event class and then F3 on the eventclass itself) and type ctrl+T for the type hierarchy. For instance, there is a playercontainer event, which is called when a player opens a container.

 

And secondly, don't call the method yourself.

 

 

Link to comment
Share on other sites

The parameter is your event, and I would create a new event handler class for it(don't forget to register it as you normally would). (no idea if it'll trigger with yours but it just might and otherwise there are plenty of other options, look through them)

Then check if the container is your ship inside this method, get the player and check his inventory etc.

Never use a null parameter, it serves no other purpose than to crash the game.

And don't call that event, it'll trigger once the player opens a container. That's how events work, you don't have to call them at a particular point, they trigger when an event happens.

Link to comment
Share on other sites

I've tried some different ways of doing it, but it just seems that the event isn't going to trigger. Here is my code:

 

package esvdefcon.skyline.achievementevent;

import net.minecraftforge.event.entity.player.PlayerOpenContainerEvent;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import esvdefcon.skyline.chunk.AssembleResult;
import esvdefcon.skyline.common.Skyline;

public class OnRegisterShipEvent {

@SubscribeEvent
public static void unlockShipTypeAchievements(PlayerOpenContainerEvent event) {
		if(AssembleResult.passengerCapacity > AssembleResult.actualCargoCapacity && AssembleResult.passengerCapacity > AssembleResult.actualWeaponCount) {
			event.entityPlayer.addStat(Skyline.achievementCivilianCaptain, 1);
			if(AssembleResult.passengerCapacity >= 50) {
				event.entityPlayer.addStat(Skyline.achievementSkylinerCaptain, 1);
			} else if(AssembleResult.passengerCapacity < 50 && AssembleResult.passengerCapacity >= 25) {
				event.entityPlayer.addStat(Skyline.achievementAirshipCaptain, 1);
			} else if(AssembleResult.passengerCapacity < 25 && AssembleResult.passengerCapacity >= 15) {
				event.entityPlayer.addStat(Skyline.achievementLargeShipCaptain, 1);
			} else if(AssembleResult.passengerCapacity < 15 && AssembleResult.passengerCapacity >= 10) {
				event.entityPlayer.addStat(Skyline.achievementMediumShipCaptain, 1);
			} else if(AssembleResult.passengerCapacity < 10 && AssembleResult.passengerCapacity > 0) {
				event.entityPlayer.addStat(Skyline.achievementSmallShipCaptain, 1);
			}
		} else if(AssembleResult.actualCargoCapacity > AssembleResult.passengerCapacity && AssembleResult.actualCargoCapacity > AssembleResult.actualWeaponCount) {
			event.entityPlayer.addStat(Skyline.achievementCivilianCaptain, 1);
			if(AssembleResult.actualCargoCapacity >= 50) {
				event.entityPlayer.addStat(Skyline.achievementFreighterCaptain, 1);
			} else if(AssembleResult.actualCargoCapacity < 50 && AssembleResult.actualCargoCapacity >= 25) {
				event.entityPlayer.addStat(Skyline.achievementCargoShipCaptain, 1);
			} else if(AssembleResult.actualCargoCapacity < 25 && AssembleResult.actualCargoCapacity > 0) {
				event.entityPlayer.addStat(Skyline.achievementTradeShipCaptain, 1);
			}
		} else if(AssembleResult.actualWeaponCount > AssembleResult.passengerCapacity && AssembleResult.actualWeaponCount > AssembleResult.actualCargoCapacity) {
			event.entityPlayer.addStat(Skyline.achievementMilitaryCaptain, 1);
			if(AssembleResult.actualWeaponCount >= 25) {
				event.entityPlayer.addStat(Skyline.achievementDreadnoughtCaptain, 1);
			} else if(AssembleResult.actualWeaponCount < 25 && AssembleResult.actualWeaponCount >= 20) {
				event.entityPlayer.addStat(Skyline.achievementBattleshipCaptain, 1);
			} else if(AssembleResult.actualWeaponCount < 20 && AssembleResult.actualWeaponCount >= 15) {
				event.entityPlayer.addStat(Skyline.achievementBattlecruiserCaptain, 1);
			} else if(AssembleResult.actualWeaponCount < 15 && AssembleResult.actualWeaponCount >= 10) {
				event.entityPlayer.addStat(Skyline.achievementDestroyerCaptain, 1);
			} else if(AssembleResult.actualWeaponCount < 10 && AssembleResult.actualWeaponCount >= 5) {
				event.entityPlayer.addStat(Skyline.achievementCruiserCaptain, 1);
			} else if(AssembleResult.actualWeaponCount < 5 && AssembleResult.actualWeaponCount >= 3) {
				event.entityPlayer.addStat(Skyline.achievementFrigateCaptain, 1);
			} else if(AssembleResult.actualWeaponCount < 3 && AssembleResult.actualWeaponCount > 0) {
				event.entityPlayer.addStat(Skyline.achievementFighterCaptain, 1);
			}
		}
}
}

I realised that my GUI blocks actually extended BlockDirectional, so I changed it to BlockContainer. However, it's still not triggering everything else is working fine after changing it to BlockContainer, but there's nothing actually happening.

Link to comment
Share on other sites

Well, first of all add a system.out.println("test"); just inside the function (before the if statement).

That way, if it is triggered you'll see it in the console printing test.

Or it might just be that this isn't the correct event you need, in which case you can also make sure the event triggers by opening a chest, which is a container. However, I've told you before how to find the list of events and it is up to you to look through them and find the event that fits your needs perfectly. You'll learn more that way than if I spoon feed you everything.

 

Secondly, have you registered your event in your main class? It won't trigger if isn't registered correctly.

And if you don't know how, look up minecraft forge events in google, I'm sure you'll find the correct line of code for it.

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.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Hello, I'm trying to modify the effects of native enchantments for bows and arrows in Minecraft. After using a decompilation tool, I found that the specific implementations of native bow and arrow enchantments (including `ArrowDamageEnchantment`, `ArrowKnockbackEnchantment`, `ArrowFireEnchantment`, `ArrowInfiniteEnchantment`, `ArrowPiercingEnchantment`) do not contain any information about the enchantment effects (such as the `getDamageProtection` function for `ProtectionEnchantment`, `getDamageBonus` function for `DamageEnchantment`, etc.). Upon searching for the base class of arrows, `AbstractArrow`, I found a function named setEnchantmentEffectsFromEntity`, which seems to be used to retrieve the enchantment levels of the tool held by a `LivingEntity` and calculate the specific values of the enchantment effects. However, after testing with the following code, I found that this function is not being called:   @Mixin(AbstractArrow.class) public class ModifyArrowEnchantmentEffects {     private static final Logger LOGGER = LogUtils.getLogger();     @Inject(         method = "setEnchantmentEffectsFromEntity",         at = @At("HEAD")     )     private void logArrowEnchantmentEffectsFromEntity(CallbackInfo ci) {         LOGGER.info("Arrow enchantment effects from entity");     } }   Upon further investigation, I found that within the onHitEntity method, there are several lines of code:               if (!this.level().isClientSide &amp;&amp; entity1 instanceof LivingEntity) {                EnchantmentHelper.doPostHurtEffects(livingentity, entity1);                EnchantmentHelper.doPostDamageEffects((LivingEntity)entity1, livingentity);             }   These lines of code actually call the doPostHurt and doPostAttack methods of each enchantment in the enchantment list. However, this leads back to the issue because native bow and arrow enchantments do not implement these functions. Although their base class defines the functions, they are empty. At this point, I'm completely stumped and seeking assistance. Thank you.
    • I have been trying to make a server with forge but I keep running into an issue. I have jdk 22 installed as well as Java 8. here is the debug file  
    • it crashed again     What the console says : [00:02:03] [Server thread/INFO] [Easy NPC/]: [EntityManager] Server started! [00:02:03] [Server thread/INFO] [co.gi.al.ic.IceAndFire/]: {iceandfire:fire_dragon_roost=true, iceandfire:fire_lily=true, iceandfire:spawn_dragon_skeleton_fire=true, iceandfire:lightning_dragon_roost=true, iceandfire:spawn_dragon_skeleton_lightning=true, iceandfire:ice_dragon_roost=true, iceandfire:ice_dragon_cave=true, iceandfire:lightning_dragon_cave=true, iceandfire:cyclops_cave=true, iceandfire:spawn_wandering_cyclops=true, iceandfire:spawn_sea_serpent=true, iceandfire:frost_lily=true, iceandfire:hydra_cave=true, iceandfire:lightning_lily=true, iceandfireixie_village=true, iceandfire:myrmex_hive_jungle=true, iceandfire:myrmex_hive_desert=true, iceandfire:silver_ore=true, iceandfire:siren_island=true, iceandfire:spawn_dragon_skeleton_ice=true, iceandfire:spawn_stymphalian_bird=true, iceandfire:fire_dragon_cave=true, iceandfire:sapphire_ore=true, iceandfire:spawn_hippocampus=true, iceandfire:spawn_death_worm=true} [00:02:03] [Server thread/INFO] [co.gi.al.ic.IceAndFire/]: {TROLL_S=true, HIPPOGRYPH=true, AMPHITHERE=true, COCKATRICE=true, TROLL_M=true, DREAD_LICH=true, TROLL_F=true} [00:02:03] [Server thread/INFO] [ne.be.lo.WeaponRegistry/]: Encoded Weapon Attribute registry size (with package overhead): 41976 bytes (in 5 string chunks with the size of 10000) [00:02:03] [Server thread/INFO] [patchouli/]: Sending reload packet to clients [00:02:03] [Server thread/WARN] [voicechat/]: [voicechat] Running in offline mode - Voice chat encryption is not secure! [00:02:03] [VoiceChatServerThread/INFO] [voicechat/]: [voicechat] Using server-ip as bind address: 0.0.0.0 [00:02:03] [Server thread/WARN] [ModernFix/]: Dedicated server took 22.521 seconds to load [00:02:03] [VoiceChatServerThread/INFO] [voicechat/]: [voicechat] Voice chat server started at 0.0.0.0:25565 [00:02:03] [Server thread/WARN] [minecraft/SynchedEntityData]: defineId called for: class net.minecraft.world.entity.player.Player from class tschipp.carryon.common.carry.CarryOnDataManager [00:02:03] [Server thread/INFO] [ne.mi.co.AdvancementLoadFix/]: Using new advancement loading for net.minecraft.server.PlayerAdvancements@2941ffd5 [00:02:10] [Netty Epoll Server IO #2/INFO] [Calio/]: Received acknowledgment for login packet with id 0 [00:02:10] [Netty Epoll Server IO #2/INFO] [Calio/]: Received acknowledgment for login packet with id 1 [00:02:10] [Netty Epoll Server IO #2/INFO] [Calio/]: Received acknowledgment for login packet with id 2 [00:02:10] [Netty Epoll Server IO #2/INFO] [Calio/]: Received acknowledgment for login packet with id 3 [00:02:10] [Netty Epoll Server IO #2/INFO] [Calio/]: Received acknowledgment for login packet with id 4 [00:02:10] [Netty Epoll Server IO #2/INFO] [Calio/]: Received acknowledgment for login packet with id 5 [00:02:10] [Netty Epoll Server IO #2/INFO] [Calio/]: Received acknowledgment for login packet with id 6 [00:02:10] [Netty Epoll Server IO #2/INFO] [Calio/]: Received acknowledgment for login packet with id 7 [00:02:10] [Netty Epoll Server IO #2/INFO] [Calio/]: Received acknowledgment for login packet with id 8 [00:02:10] [Netty Epoll Server IO #2/INFO] [Calio/]: Received acknowledgment for login packet with id 9 [00:02:10] [Netty Epoll Server IO #2/INFO] [Calio/]: Received acknowledgment for login packet with id 10 [00:02:10] [Netty Epoll Server IO #2/INFO] [Calio/]: Received acknowledgment for login packet with id 11 [00:02:10] [Netty Epoll Server IO #2/INFO] [Calio/]: Received acknowledgment for login packet with id 12 [00:02:10] [Netty Epoll Server IO #2/INFO] [Calio/]: Received acknowledgment for login packet with id 13 [00:02:10] [Netty Epoll Server IO #2/INFO] [Calio/]: Received acknowledgment for login packet with id 14 [00:02:19] [Server thread/INFO] [ne.mi.co.AdvancementLoadFix/]: Using new advancement loading for net.minecraft.server.PlayerAdvancements@ebc7ef2 [00:02:19] [Server thread/INFO] [minecraft/PlayerList]: ZacAdos[/90.2.17.162:49242] logged in with entity id 1062 at (-1848.6727005281205, 221.0, -3054.2468255848935) [00:02:19] [Server thread/ERROR] [ModernFix/]: Skipping entity ID sync for com.talhanation.smallships.world.entity.ship.Ship: java.lang.NoClassDefFoundError: net/minecraft/client/CameraType [00:02:19] [Server thread/INFO] [minecraft/MinecraftServer]: - Gloop - ZacAdos joined the game [00:02:19] [Server thread/INFO] [xa.pa.OpenPartiesAndClaims/]: Updating all forceload tickets for cc56befd-d376-3526-a760-340713c478bd [00:02:19] [Server thread/INFO] [se.mi.te.da.DataManager/]: Sending data to client: ZacAdos [00:02:19] [Server thread/INFO] [voicechat/]: [voicechat] Received secret request of - Gloop - ZacAdos (17) [00:02:19] [Server thread/INFO] [voicechat/]: [voicechat] Sent secret to - Gloop - ZacAdos [00:02:21] [VoiceChatPacketProcessingThread/INFO] [voicechat/]: [voicechat] Successfully authenticated player cc56befd-d376-3526-a760-340713c478bd [00:02:22] [VoiceChatPacketProcessingThread/INFO] [voicechat/]: [voicechat] Successfully validated connection of player cc56befd-d376-3526-a760-340713c478bd [00:02:22] [VoiceChatPacketProcessingThread/INFO] [voicechat/]: [voicechat] Player - Gloop - ZacAdos (cc56befd-d376-3526-a760-340713c478bd) successfully connected to voice chat stop [00:02:34] [Server thread/INFO] [minecraft/MinecraftServer]: Stopping the server [00:02:34] [Server thread/INFO] [mo.pl.ar.ArmourersWorkshop/]: stop local service [00:02:34] [Server thread/INFO] [minecraft/MinecraftServer]: Stopping server [00:02:34] [Server thread/INFO] [minecraft/MinecraftServer]: Saving players [00:02:34] [Server thread/INFO] [minecraft/ServerGamePacketListenerImpl]: ZacAdos lost connection: Server closed [00:02:34] [Server thread/INFO] [minecraft/MinecraftServer]: - Gloop - ZacAdos left the game [00:02:34] [Server thread/INFO] [xa.pa.OpenPartiesAndClaims/]: Updating all forceload tickets for cc56befd-d376-3526-a760-340713c478bd [00:02:34] [Server thread/INFO] [minecraft/MinecraftServer]: Saving worlds [00:02:34] [Server thread/INFO] [minecraft/MinecraftServer]: Saving chunks for level 'ServerLevel[world]'/minecraft:overworld [00:02:34] [Server thread/INFO] [minecraft/MinecraftServer]: Saving chunks for level 'ServerLevel[world]'/minecraft:the_end [00:02:34] [Server thread/INFO] [minecraft/MinecraftServer]: Saving chunks for level 'ServerLevel[world]'/minecraft:the_nether [00:02:34] [Server thread/INFO] [minecraft/MinecraftServer]: ThreadedAnvilChunkStorage (world): All chunks are saved [00:02:34] [Server thread/INFO] [minecraft/MinecraftServer]: ThreadedAnvilChunkStorage (DIM1): All chunks are saved [00:02:34] [Server thread/INFO] [minecraft/MinecraftServer]: ThreadedAnvilChunkStorage (DIM-1): All chunks are saved [00:02:34] [Server thread/INFO] [minecraft/MinecraftServer]: ThreadedAnvilChunkStorage: All dimensions are saved [00:02:34] [Server thread/INFO] [xa.pa.OpenPartiesAndClaims/]: Stopping IO worker... [00:02:34] [Server thread/INFO] [xa.pa.OpenPartiesAndClaims/]: Stopped IO worker! [00:02:34] [Server thread/INFO] [Calio/]: Removing Dynamic Registries for: net.minecraft.server.dedicated.DedicatedServer@7dc879e1 [MineStrator Daemon]: Checking server disk space usage, this could take a few seconds... [MineStrator Daemon]: Updating process configuration files... [MineStrator Daemon]: Ensuring file permissions are set correctly, this could take a few seconds... [MineStrator Daemon]: Pulling Docker container image, this could take a few minutes to complete... [MineStrator Daemon]: Finished pulling Docker container image container@pterodactyl~ java -version openjdk version "17.0.10" 2024-01-16 OpenJDK Runtime Environment Temurin-17.0.10+7 (build 17.0.10+7) OpenJDK 64-Bit Server VM Temurin-17.0.10+7 (build 17.0.10+7, mixed mode, sharing) container@pterodactyl~ java -Xms128M -Xmx6302M -Dterminal.jline=false -Dterminal.ansi=true -Djline.terminal=jline.UnsupportedTerminal -p libraries/cpw/mods/bootstraplauncher/1.1.2/bootstraplauncher-1.1.2.jar:libraries/cpw/mods/securejarhandler/2.1.4/securejarhandler-2.1.4.jar:libraries/org/ow2/asm/asm-commons/9.5/asm-commons-9.5.jar:libraries/org/ow2/asm/asm-util/9.5/asm-util-9.5.jar:libraries/org/ow2/asm/asm-analysis/9.5/asm-analysis-9.5.jar:libraries/org/ow2/asm/asm-tree/9.5/asm-tree-9.5.jar:libraries/org/ow2/asm/asm/9.5/asm-9.5.jar:libraries/net/minecraftforge/JarJarFileSystems/0.3.16/JarJarFileSystems-0.3.16.jar --add-modules ALL-MODULE-PATH --add-opens java.base/java.util.jar=cpw.mods.securejarhandler --add-opens java.base/java.lang.invoke=cpw.mods.securejarhandler --add-exports java.base/sun.security.util=cpw.mods.securejarhandler --add-exports jdk.naming.dns/com.sun.jndi.dns=java.naming -Djava.net.preferIPv6Addresses=system -DignoreList=bootstraplauncher-1.1.2.jar,securejarhandler-2.1.4.jar,asm-commons-9.5.jar,asm-util-9.5.jar,asm-analysis-9.5.jar,asm-tree-9.5.jar,asm-9.5.jar,JarJarFileSystems-0.3.16.jar -DlibraryDirectory=libraries -DlegacyClassPath=libraries/cpw/mods/securejarhandler/2.1.4/securejarhandler-2.1.4.jar:libraries/org/ow2/asm/asm/9.5/asm-9.5.jar:libraries/org/ow2/asm/asm-commons/9.5/asm-commons-9.5.jar:libraries/org/ow2/asm/asm-tree/9.5/asm-tree-9.5.jar:libraries/org/ow2/asm/asm-util/9.5/asm-util-9.5.jar:libraries/org/ow2/asm/asm-analysis/9.5/asm-analysis-9.5.jar:libraries/net/minecraftforge/accesstransformers/8.0.4/accesstransformers-8.0.4.jar:libraries/org/antlr/antlr4-runtime/4.9.1/antlr4-runtime-4.9.1.jar:libraries/net/minecraftforge/eventbus/6.0.3/eventbus-6.0.3.jar:libraries/net/minecraftforge/forgespi/6.0.0/forgespi-6.0.0.jar:libraries/net/minecraftforge/coremods/5.0.1/coremods-5.0.1.jar:libraries/cpw/mods/modlauncher/10.0.8/modlauncher-10.0.8.jar:libraries/net/minecraftforge/unsafe/0.2.0/unsafe-0.2.0.jar:libraries/com/electronwill/night-config/core/3.6.4/core-3.6.4.jar:libraries/com/electronwill/night-config/toml/3.6.4/toml-3.6.4.jar:libraries/org/apache/maven/maven-artifact/3.8.5/maven-artifact-3.8.5.jar:libraries/net/jodah/typetools/0.8.3/typetools-0.8.3.jar:libraries/net/minecrell/terminalconsoleappender/1.2.0/terminalconsoleappender-1.2.0.jar:libraries/org/jline/jline-reader/3.12.1/jline-reader-3.12.1.jar:libraries/org/jline/jline-terminal/3.12.1/jline-terminal-3.12.1.jar:libraries/org/spongepowered/mixin/0.8.5/mixin-0.8.5.jar:libraries/org/openjdk/nashorn/nashorn-core/15.3/nashorn-core-15.3.jar:libraries/net/minecraftforge/JarJarSelector/0.3.16/JarJarSelector-0.3.16.jar:libraries/net/minecraftforge/JarJarMetadata/0.3.16/JarJarMetadata-0.3.16.jar:libraries/net/minecraftforge/fmlloader/1.19.2-43.3.0/fmlloader-1.19.2-43.3.0.jar:libraries/net/minecraft/server/1.19.2-20220805.130853/server-1.19.2-20220805.130853-extra.jar:libraries/com/github/oshi/oshi-core/5.8.5/oshi-core-5.8.5.jar:libraries/com/google/code/gson/gson/2.8.9/gson-2.8.9.jar:libraries/com/google/guava/failureaccess/1.0.1/failureaccess-1.0.1.jar:libraries/com/google/guava/guava/31.0.1-jre/guava-31.0.1-jre.jar:libraries/com/mojang/authlib/3.11.49/authlib-3.11.49.jar:libraries/com/mojang/brigadier/1.0.18/brigadier-1.0.18.jar:libraries/com/mojang/datafixerupper/5.0.28/datafixerupper-5.0.28.jar:libraries/com/mojang/javabridge/1.2.24/javabridge-1.2.24.jar:libraries/com/mojang/logging/1.0.0/logging-1.0.0.jar:libraries/commons-io/commons-io/2.11.0/commons-io-2.11.0.jar:libraries/io/netty/netty-buffer/4.1.77.Final/netty-buffer-4.1.77.Final.jar:libraries/io/netty/netty-codec/4.1.77.Final/netty-codec-4.1.77.Final.jar:libraries/io/netty/netty-common/4.1.77.Final/netty-common-4.1.77.Final.jar:libraries/io/netty/netty-handler/4.1.77.Final/netty-handler-4.1.77.Final.jar:libraries/io/netty/netty-resolver/4.1.77.Final/netty-resolver-4.1.77.Final.jar:libraries/io/netty/netty-transport/4.1.77.Final/netty-transport-4.1.77.Final.jar:libraries/io/netty/netty-transport-classes-epoll/4.1.77.Final/netty-transport-classes-epoll-4.1.77.Final.jar:libraries/io/netty/netty-transport-native-epoll/4.1.77.Final/netty-transport-native-epoll-4.1.77.Final-linux-x86_64.jar:libraries/io/netty/netty-transport-native-epoll/4.1.77.Final/netty-transport-native-epoll-4.1.77.Final-linux-aarch_64.jar:libraries/io/netty/netty-transport-native-unix-common/4.1.77.Final/netty-transport-native-unix-common-4.1.77.Final.jar:libraries/it/unimi/dsi/fastutil/8.5.6/fastutil-8.5.6.jar:libraries/net/java/dev/jna/jna/5.10.0/jna-5.10.0.jar:libraries/net/java/dev/jna/jna-platform/5.10.0/jna-platform-5.10.0.jar:libraries/net/sf/jopt-simple/jopt-simple/5.0.4/jopt-simple-5.0.4.jar:libraries/org/apache/commons/commons-lang3/3.12.0/commons-lang3-3.12.0.jar:libraries/org/apache/logging/log4j/log4j-api/2.17.0/log4j-api-2.17.0.jar:libraries/org/apache/logging/log4j/log4j-core/2.17.0/log4j-core-2.17.0.jar:libraries/org/apache/logging/log4j/log4j-slf4j18-impl/2.17.0/log4j-slf4j18-impl-2.17.0.jar:libraries/org/slf4j/slf4j-api/1.8.0-beta4/slf4j-api-1.8.0-beta4.jar cpw.mods.bootstraplauncher.BootstrapLauncher --launchTarget forgeserver --fml.forgeVersion 43.3.0 --fml.mcVersion 1.19.2 --fml.forgeGroup net.minecraftforge --fml.mcpVersion 20220805.130853 [00:02:42] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher running: args [--launchTarget, forgeserver, --fml.forgeVersion, 43.3.0, --fml.mcVersion, 1.19.2, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20220805.130853] [00:02:42] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher 10.0.8+10.0.8+main.0ef7e830 starting: java version 17.0.10 by Eclipse Adoptium; OS Linux arch amd64 version 6.1.0-12-amd64 [00:02:43] [main/INFO] [mixin/]: SpongePowered MIXIN Subsystem Version=0.8.5 Source=union:/home/container/libraries/org/spongepowered/mixin/0.8.5/mixin-0.8.5.jar%2363!/ Service=ModLauncher Env=SERVER [00:02:43] [main/WARN] [ne.mi.fm.lo.mo.ModFileParser/LOADING]: Mod file /home/container/libraries/net/minecraftforge/fmlcore/1.19.2-43.3.0/fmlcore-1.19.2-43.3.0.jar is missing mods.toml file [00:02:43] [main/WARN] [ne.mi.fm.lo.mo.ModFileParser/LOADING]: Mod file /home/container/libraries/net/minecraftforge/javafmllanguage/1.19.2-43.3.0/javafmllanguage-1.19.2-43.3.0.jar is missing mods.toml file [00:02:43] [main/WARN] [ne.mi.fm.lo.mo.ModFileParser/LOADING]: Mod file /home/container/libraries/net/minecraftforge/lowcodelanguage/1.19.2-43.3.0/lowcodelanguage-1.19.2-43.3.0.jar is missing mods.toml file [00:02:43] [main/WARN] [ne.mi.fm.lo.mo.ModFileParser/LOADING]: Mod file /home/container/libraries/net/minecraftforge/mclanguage/1.19.2-43.3.0/mclanguage-1.19.2-43.3.0.jar is missing mods.toml file [00:02:44] [main/WARN] [ne.mi.ja.se.JarSelector/]: Attempted to select two dependency jars from JarJar which have the same identification: Mod File: and Mod File: . Using Mod File: [00:02:44] [main/WARN] [ne.mi.ja.se.JarSelector/]: Attempted to select a dependency jar for JarJar which was passed in as source: resourcefullib. Using Mod File: /home/container/mods/resourcefullib-forge-1.19.2-1.1.24.jar [00:02:44] [main/INFO] [ne.mi.fm.lo.mo.JarInJarDependencyLocator/]: Found 13 dependencies adding them to mods collection Latest log [29Mar2024 00:02:42.803] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--launchTarget, forgeserver, --fml.forgeVersion, 43.3.0, --fml.mcVersion, 1.19.2, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20220805.130853] [29Mar2024 00:02:42.805] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 10.0.8+10.0.8+main.0ef7e830 starting: java version 17.0.10 by Eclipse Adoptium; OS Linux arch amd64 version 6.1.0-12-amd64 [29Mar2024 00:02:43.548] [main/INFO] [mixin/]: SpongePowered MIXIN Subsystem Version=0.8.5 Source=union:/home/container/libraries/org/spongepowered/mixin/0.8.5/mixin-0.8.5.jar%2363!/ Service=ModLauncher Env=SERVER [29Mar2024 00:02:43.876] [main/WARN] [net.minecraftforge.fml.loading.moddiscovery.ModFileParser/LOADING]: Mod file /home/container/libraries/net/minecraftforge/fmlcore/1.19.2-43.3.0/fmlcore-1.19.2-43.3.0.jar is missing mods.toml file [29Mar2024 00:02:43.877] [main/WARN] [net.minecraftforge.fml.loading.moddiscovery.ModFileParser/LOADING]: Mod file /home/container/libraries/net/minecraftforge/javafmllanguage/1.19.2-43.3.0/javafmllanguage-1.19.2-43.3.0.jar is missing mods.toml file [29Mar2024 00:02:43.877] [main/WARN] [net.minecraftforge.fml.loading.moddiscovery.ModFileParser/LOADING]: Mod file /home/container/libraries/net/minecraftforge/lowcodelanguage/1.19.2-43.3.0/lowcodelanguage-1.19.2-43.3.0.jar is missing mods.toml file [29Mar2024 00:02:43.878] [main/WARN] [net.minecraftforge.fml.loading.moddiscovery.ModFileParser/LOADING]: Mod file /home/container/libraries/net/minecraftforge/mclanguage/1.19.2-43.3.0/mclanguage-1.19.2-43.3.0.jar is missing mods.toml file [29Mar2024 00:02:44.033] [main/WARN] [net.minecraftforge.jarjar.selection.JarSelector/]: Attempted to select two dependency jars from JarJar which have the same identification: Mod File: and Mod File: . Using Mod File: [29Mar2024 00:02:44.034] [main/WARN] [net.minecraftforge.jarjar.selection.JarSelector/]: Attempted to select a dependency jar for JarJar which was passed in as source: resourcefullib. Using Mod File: /home/container/mods/resourcefullib-forge-1.19.2-1.1.24.jar [29Mar2024 00:02:44.034] [main/INFO] [net.minecraftforge.fml.loading.moddiscovery.JarInJarDependencyLocator/]: Found 13 dependencies adding them to mods collection
    • I am unable to do that. Brigadier is a mojang library that parses commands.
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.