-
Posts
3284 -
Joined
-
Last visited
-
Days Won
62
Everything posted by ChampionAsh5357
-
You cannot remove xp from the client player; it will not sync to the server. You should instead send a packet to the server and remove the experience from the player there. You can set experience points using either `Player#giveExperiencePoints` or `Player#giveExperienceLevels` or directly through `Player#setExperiencePoints` or `Player#setExperienceLevels`. Additionally, that is not how you listen to an event. I would suggest reading how to do so on the docs.
-
You wouldn't be modifying the game assets though? Additionally, if you want to make a mod that's backwards compatible with vanilla, I would suggest a datapack. Sure, but I would not explain how to do it since nearly any instance of registry replacement will break the game because of all the static storages of vanilla registry objects which in most instances would cause the game to crash in some capacity. Hence, I suggested the solution above as an alternative. It would also allow you to have more compatibility with other mods if you provide an open API or create an addon that supports the mod even if you do not wish to support it.
-
[1.19.2] Custom conditions linked with player capability
ChampionAsh5357 replied to Lior Hassin's topic in Modder Support
You would normally need to make a custom `Recipe` to handle this case; however, you don't have access to the player in those instances. As such, it would probably be better to make a separate block for this which can check the player context along with the normal recipe information. -
Replace the recipe JSONs by supplying ones with a similar name. If you want to make it such that recipes can't be crafted until a certain point, it is much simpler to create a new block that functions the same as a crafting workbench but checks the progress. You can then disable any vanilla items by making an uncraftable recipe. If you need to change how non-JSONable recipes work, there are events for those (`PotionBrewEvent$Pre`, `AnvilUpdateEvent`, etc.). You should always avoid touching and reregistering registry objects or modifying vanilla methods as you would most likely break compatibility with any other mod. The best way is just to modify the JSONs when applicable.
-
The version you are using is no longer supported on this forum. Please update to a modern version of Minecraft to receive support. Currently supported versions are 1.19.2 (Latest) and 1.18.2 (LTS).
-
The version you are using is no longer supported on this forum. Please update to a modern version of Minecraft to receive support. Currently supported versions are 1.19.2 (Latest) and 1.18.2 (LTS).
-
The version you are using is no longer supported on this forum. Please update to a modern version of Minecraft to receive support. Currently supported versions are 1.19.2 (Latest) and 1.18.2 (LTS).
-
Error in Minecraft 1.16.5 modpack when opening
ChampionAsh5357 replied to Kustled's topic in Support & Bug Reports
The version you are using is no longer supported on this forum. Please update to a modern version of Minecraft to receive support. Currently supported versions are 1.19.2 (Latest) and 1.18.2 (LTS). -
SOLVED [1.19.2] Entity Event Triggering Problem
ChampionAsh5357 replied to TheMajorN's topic in Modder Support
If you are going to use the annotation to register event listeners, all event listeners in the class need to be public static methods. -
MODPACK HELP! 1.17.1 forge crash. exit code 1
ChampionAsh5357 replied to branano's topic in Support & Bug Reports
The version you are using is no longer supported on this forum. Please update to a modern version of Minecraft to receive support. Currently supported versions are 1.19.2 (Latest) and 1.18.2 (LTS). -
forge 1.16.5 crashes in the fml loading process
ChampionAsh5357 replied to RipOffgoku's topic in Support & Bug Reports
Locking for necroposting. The version you are using is no longer supported on this forum. Please update to a modern version of Minecraft to receive support. Currently supported versions are 1.19.2 (Latest) and 1.18.2 (LTS). -
I HAVE TO MANY ERRORS ON MY SERVER
ChampionAsh5357 replied to persiana's topic in Support & Bug Reports
The version you are using is no longer supported on this forum. Please update to a modern version of Minecraft to receive support. Currently supported versions are 1.19.2 (Latest) and 1.18.2 (LTS). -
Game crashing as soon as i join a lan game. modded
ChampionAsh5357 replied to PuncakeChan's topic in Support & Bug Reports
The version you are using is no longer supported on this forum. Please update to a modern version of Minecraft to receive support. Currently supported versions are 1.19.2 (Latest) and 1.18.2 (LTS). -
The version you are using is no longer supported on this forum. Please update to a modern version of Minecraft to receive support. Currently supported versions are 1.19.2 (Latest) and 1.18.2 (LTS).
-
The version you are using is no longer supported on this forum. Please update to a modern version of Minecraft to receive support. Currently supported versions are 1.19.2 (Latest) and 1.18.2 (LTS).
-
Modded 1.12.2 Minecraft Server Crash
ChampionAsh5357 replied to Jaesaun's topic in Support & Bug Reports
The version you are using is no longer supported on this forum. Please update to a modern version of Minecraft to receive support. Currently supported versions are 1.19.2 (Latest) and 1.18.2 (LTS). -
The version you are using is no longer supported on this forum. Please update to a modern version of Minecraft to receive support. Currently supported versions are 1.19.2 (Latest) and 1.18.2 (LTS).
-
modded world not loading ver 1.16.5
ChampionAsh5357 replied to Amir121's topic in Support & Bug Reports
The version you are using is no longer supported on this forum. Please update to a modern version of Minecraft to receive support. Currently supported versions are 1.19.2 (Latest) and 1.18.2 (LTS). -
My Game Crashes after i Join the world
ChampionAsh5357 replied to Therealbartek's topic in Support & Bug Reports
The version you are using is no longer supported on this forum. Please update to a modern version of Minecraft to receive support. Currently supported versions are 1.19.2 (Latest) and 1.18.2 (LTS).