-
Posts
3284 -
Joined
-
Last visited
-
Days Won
62
Everything posted by ChampionAsh5357
-
You would need to provide the TER for this.
-
Access Transform all methods of class
ChampionAsh5357 replied to DasBabyPixel's topic in Modder Support
The correct answer is don't and spend the time to properly utilize methods in the system. If you need to call a private or protected method outside of its context, you're most likely doing something wrong. -
It's just the color of the particle to render for the falling block. If you want, you can translate the colors into hex and put them into a color editor to view what colors they are.
-
1.16.5 ChunkPrimer does not add TileEntity
ChampionAsh5357 replied to DietmarKracht's topic in Modder Support
Why are you trying to place your tile entity in a non-generated chunk? -
How do I make a non-blocking HTTP GET request?
ChampionAsh5357 replied to 2231puppy's topic in Modder Support
This is not really a question for the modding forums as it really isn't related to forge. You can try looking on the internet or figuring out how to do the multi-threaded subsystem of an HTTP client application. -
The event to use would be EntityEvent$Size.
-
It's fired on the logical client and logical server. Most likely you'll only need to execute the logic on the server.
-
If you're translating individual files, there's not much you can do about it. You could use the updateMappings gradlew task, but that's better for large batches of code. As for JSON item models, that is a much more complicated issue that involves layers and custom transform types. While still possible, the tradeoff isn't really worth it.
-
What do the other parameters in setBlock do?
ChampionAsh5357 replied to Turtledove's topic in Modder Support
Yes there is: If you expect the method names to be the same across mappings including how they're referenced between methods, you won't find what you are referring to. -
What do the other parameters in setBlock do?
ChampionAsh5357 replied to Turtledove's topic in Modder Support
Still hasn't changed. You're referencing two different methods with two difference signatures. The first method you shown calls the second method with the argument 3. As for what it does, it dictates what flags to execute when setting the block (a bit field). The list of flags can be found within Constants$BlockFlags. -
Goals and Tasks are defined within the flyweight Entity itself whenever it is constructed. I would suggest taking a look at already implemented entities with goals and tasks if you want to implement them yourself.
-
Find out if a player has loaded the mod
ChampionAsh5357 replied to SmokingDude's topic in Modder Support
Any mod present on the server (assuming it doesn't have the ignore extension point set) must be present on the client to allow both to connect. -
Yes, you are passing in an Item instead of a supplier of an item. I would suggest taking another read over the docs.
-
[1.16.4]How to make ranged weapons like bow?
ChampionAsh5357 replied to pervll's topic in Modder Support
You can start by looking at how a bow is implemented within the code and how arrows are fired as projectiles. BowItem and ArrowEntity is a good place to start researching. -
How to apply relocate for intellij runs or runServer?
ChampionAsh5357 replied to MinecraftXwinP's topic in Modder Support
There's no evidence that you use a newer version of netty within the buildscript. You indeed shadow the version during building, but you do not compile it for use within the game. You still need to require a dependency on it such that it is used within runtime. -
Forge now ships the mdk with the official mojang mappings over the previously used mcp mappings. As such, fields/methods/params will be different between the two mappings. For example, Item#onItemRightClick has become Item#use. If you would like to use the old mappings, you can look on Forgecord in the 1.16 modder support channel's pins and find the current version of the mcp mappings available.
-
You're going to need to be more specific. What list is changing size, how often does it change, how many entries can be stored within the list, does the block have a tile entity?
-
Yes, you can still sign jars as that is not a Forge concept, that is a java one. ForgeGradle adds the ability to sign a jar within your buildscript while the event was used to check if there was a violation in the signature. Although the event doesn't exist anymore, ForgeGradle still supports signing a jar through the SignJar task. As for how to sign a java jar, you would need to generate an key-pair. Using Java's keytool command also wraps the public key into a X.509 self-signed certificate which can be used in a bunch of other places. Once you have this generated, make sure to remember the location it's stored on your computer, the alias given for unique identification, the keystore password, and the key password. We can then create the signed jar by having the base jar finalized by our task and making sure it executes after the jar has been reobfuscated via 'reobfJar' within the build.gradle.
-
How can I receive blocks and chat messages.
ChampionAsh5357 replied to Sago's topic in Modder Support
1.12.2 is not supported on the forums. The current versions supported can be found in the blue banner above. Forge usually supports the latest version and one major behind for LTS. Although, that does change depending on popularity. -
[Solved] [1.16] How do I access all registered dimensions?
ChampionAsh5357 replied to xBigEllx's topic in Modder Support
DimensionTypes are dynamic since they are now data driven. This means that the associated data can only be accessed whenever a world is loaded. You can get access to this through MinecraftServer#registryAccess which gives you an instance of DynamicRegistries. There is a convenient method there for grabbing the registry called DynamicRegistries#dimensionTypes. Registry is an instance of Iterable on the value.