-
Posts
3284 -
Joined
-
Last visited
-
Days Won
62
Everything posted by ChampionAsh5357
-
1. `requires` should be first in the chain, having a permission level of 2. 2. Don't clamp the number, use the static constructor that bounds an integer between a min and max value.
-
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).
-
Projectile entity is displayed incorrectly
ChampionAsh5357 replied to Luckydel's topic in Modder Support
Ah, ok. Well, I would probably use the `ArrowRenderer` as a baseline here for figuring it out. It seems that the rendering is affected by the rotation of the player, which could be because of plenty of things in terms of rendering, though the most likely is that the rotation doesn't line up or there needs to be some additional translation / scaling. -
Better Minecraft 1.16.5 Modpack crashing
ChampionAsh5357 replied to Arky'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 not working on minecraft 1.5.2 (2022)
ChampionAsh5357 replied to AgusFresco'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). -
Is it possible to edit pre existing blocks?
ChampionAsh5357 replied to mono832's topic in Modder Support
That's because overriding any existing block or item will probably break compatibility with any mod in existence, including Vanilla minecraft. You can edit specific behaviors of blocks or items using events or attach custom logic using capabilities, but you should never override a block or item. I don't have any tutorials, but I typically suggest reading the forge docs or the community wiki and then asking specific questions on the discord server or here on the forums. You are expected to know Java and working on either the latest or LTS version if you want to receive support. -
Projectile entity is displayed incorrectly
ChampionAsh5357 replied to Luckydel's topic in Modder Support
1. Don't use `@OnlyIn`. It is never needed anywhere. 2. You don't need the `PlayMessages$SpawnEntity` constructor nor override `Entity#getAddEntityPacket`. You are not syncing custom information from the server when the entity is spawned. 3. Don't ever use nonfinal static fields as instance fields. That's not how instances work. Please learn Java for that. 4. Layer definitions for models need to be registered in `EntityRenderersEvent$RegisterLayerDefinitions`. 5. Entity renderers need to be registered in `EntityRenderersEvent$RegisterRenderers`. 6. Do not combine client and common code. Separate them into different classes. 7. Do not have use a class for more than one purpose (e.g. `Item`, event listener, etc.). That is separation of concerns and leads to poor programming. 8. If you want stack specific behavior, use a capability. If you want client specific behavior, you can use static or instance fields because any mod instance will only have access to at most a single physical client. Finally, I watched the video on quarter speed and still have no idea what you're talking about. It looks like the bullet is hitting the entity. -
Projectile entity is displayed incorrectly
ChampionAsh5357 replied to Luckydel's topic in Modder Support
Please provide the entire entity, item, and entity renderer class. The above provides no view on the issue. Additionally, there does not seem to be any visual bugs. If you're talking about the inaccuracy of the bullets, that's the result of `Projectile#shoot` offsetting the look vector by some amount. It is much more noticeable with smaller projectiles. Finally, do not use `@OnlyIn`. You should have no need to use it as `ItemSupplier` is not a client only interface. -
Unable to properly implement ContainerData
ChampionAsh5357 replied to h3tR's topic in Modder Support
Within your menu constructor, you need to call `#addDataSlots` and pass in the `ContainerData`. Otherwise, it will have no idea what to sync to the client. Additionally, it's bad practice to pass in state data (`Block`, `BlockState`) in a menu since they are supposed to act as agnostic views for internal data, not for syncing the world data itself. That's why modders typically pass in the inventory or data slots instead of the actual object itself.- 1 reply
-
- 1
-
Locking this thread under suspicion that user is working on 1.16 and removed the version. Post seems exactly the same as previous.
-
Minecraft server with forge dont connect
ChampionAsh5357 replied to HachimanSan'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.19.2 Minecraft keeps crashing on launch
ChampionAsh5357 replied to iiEco-Ryan 3166's topic in Support & Bug Reports
It seems this issue has to do with the Illuminations Forge mod. Somebody has reported the same error as you on their repo. Try removing the mod and it should work. If not, you can split the mod into separate piles and test each until the erroring mods remain. -
First step, remove Optifine. It will probably not play well with the majority of mixins that change the client. Flywheel is definitely one of those cases. If that doesn't fix the issue, split the mods into two piles and try running the game with both. If no error occurs, you can be confident none of the mods are causing the issue. If an error occurs, split the erroring pile again and repeat. You should be able to single out the erroring mod/mods.
-
Look within `LootItemConditions` for vanilla conditions prefixed with `minecraft:` and `ForgeMod#registerLootData` for Forge conditions. You can look at the wiki articles written for vanilla and Forge as well.
-
How are you testing whether the event is firing? Are you just opening the game, or are you going into third person so the player renderer is actually called?
-
Sure, though looking at your code again, it may be whatever custom printer you are using is at fault. Try putting a breakpoint in one of the events and attempt to execute it (going into third person or pressing a key).
-
You need to set the `modid` field to your mod id in the `@EventBusSubscriber` annotation.
-
Syncing BlockEntities between server and client, best practices.
ChampionAsh5357 replied to h3tR's topic in Modder Support
If you are talking about in a GUI, you can sync shorts (0 to 65535) to the client using `DataSlot`s. You simply need to set the value when it updates. Then, on the client (once you have the container add the `DataSlot`), you can read the synced value using `#get`. You can look at `AbstractFurnaceMenu` for an example. -
It seems like it wouldn't be an issue since the actual method is already enqueued. The fix seems useless imo since its synchronization in sequential execution. Based on what I'm looking at, I doubt that Configured would be the issue.
-
It seems both Create Cafe and Twigs are at fault here. They both register to hash maps without enqueue causing the CME. Here are the relevant pieces of code for Create Cafe and Twigs. Reported both as issues on their repos.