-
Posts
6157 -
Joined
-
Last visited
-
Days Won
59
Everything posted by Animefan8888
-
This part is fine.
-
You need to remove the Item from the player's inventory.
-
Yes I understand that. The problem is that it isn't removed from the player's inventory right? The problem is This ItemStack does not equal the ItemStack in the inventory. SO This does nothing. You should use one of the removal methods in the players inventory.
-
If I understand correctly your problem is that the Item isn't removed from your inventory. This ItemStack does not equal the ItemStack in the inventory. SO This does nothing. You should use one of the removal methods.
-
(SOLVED) [1.14.4] Need help with Capabilities
Animefan8888 replied to MineModder2000's topic in Modder Support
I'd do it like so. ITickData data = player.getCapability(CAPABILITY_THING).orElseThrow(IllegalStateException::new); -
Commands are executed on the server you need to send a packet back to the player and open the packet on the Client. Right now you are reaching across logical sides.
-
This isn't correct. You need to register this which means that it must not be statically initialized and initialized in the Register<Feature> event you have.
-
[1.14.x] How to generate multiple biomes in custom world type.
Animefan8888 replied to Stanlyhalo's topic in Modder Support
That's what I've been saying you need your own BiomeProviderSettings and potentially BiomeProvider. -
This is not a Java support forum we deal with Forge problems exclusively here.
-
[1.14.4][Solved] TileEntityRenderer render a texture
Animefan8888 replied to Brbcode's topic in Modder Support
You don't just override hasTileEntity(BlockState) and createTileEntity(BlockState, IWorldReader) You need a TileEntityRendererFast -
I don't see a crash report if the error is coming from Eclipse or IntelliJ that is you not knowing Java. And typically it tells you straight up what the problem is.
-
First off this link is broken it links just to hastebin, No code. Does this class exist?
-
[1.14.x] How to generate multiple biomes in custom world type.
Animefan8888 replied to Stanlyhalo's topic in Modder Support
Ummm no. You could wait to see when they update. You would need to look for it. You could type WorldType and ctrl+left click it. -
[1.14.x] How to generate multiple biomes in custom world type.
Animefan8888 replied to Stanlyhalo's topic in Modder Support
You can take a look at any mod that is open source that adds their own WorldType I think Biomes O'plenty does this? If not take a look at the vanilla one for the Overworld. -
(SOLVED) [1.14.4] Need help with Capabilities
Animefan8888 replied to MineModder2000's topic in Modder Support
getCapability(Capability) returns a LazyOptional instance. That instance is the one in your ICapabilityProvider class. Now the LazyOptional has several methods to retrieve the value stored inside of it. Which will your ITickData. You can make whatever values you want accessible via your ITickData. -
Can you try it with just Apotheosis and Placebo, then with those and Lycanite's Mobs so we can rule out the other two causing problems. It might be a problem with apotheosis doing some ASM trickery incorrectly with the new version of forge. Check if they have an updated version for the newer forge versions.
-
[1.14.x] How to generate multiple biomes in custom world type.
Animefan8888 replied to Stanlyhalo's topic in Modder Support
You'll probably need to make your own. -
If you use the Native launcher you can select the Java version you use by editing the profile you use to launch the game.
-
(SOLVED) [1.14.4] Need help with Capabilities
Animefan8888 replied to MineModder2000's topic in Modder Support
Let's take a look at what type that parameter is. It's Capability. Ok I'm not sure what value I should use here. Lets look for places where getCapability are called within forge. Ok opening the Call Hierarchy by right clicking on getCapability and clicking Open Call Hierarchy reveals Forge calls that method in several places. Lets look at one in net.minecraftforge.fluids.FluidUtil. It seems to use the CapabilityFluidHandler.FLUID_HANDLER_ITEM_CAPABILITY as the parameter. Lets take a look at that field. Oh it's a field annotated with @CapabilityInject annotation. I remember making one of those.... Let's use that value. -
[1.14.4] How to change the player renderer?
Animefan8888 replied to kaydogz's topic in Modder Support
You'll have to check every tick if they are swimming and if they are make it so they aren't. Use the LivingSetAttackTargetEvent I believe there is a RenderHandEvent that you can cancel and render your own hand. You'll have to do this yourself. -
(SOLVED) [1.14.4] Need help with Capabilities
Animefan8888 replied to MineModder2000's topic in Modder Support
Well of course it doesnt work you're still trying to get the value from the ItemStack. You need to get it from the capability you attached to the player. -
Run client obfuscated without having to build ?
Animefan8888 replied to frxtn's topic in Modder Support
No it is not possible just build the mod and run it. -
1.14 World Capability Attaching but Never Available
Animefan8888 replied to oitsjustjose's topic in Modder Support
Weird I even used the search feature on github. Must've spelt it wrong. The bolded statement will never be true. You need to check if capIn == YOUR_CAPABILITY_VALUE. You need a @CapabilityInject(ISomething.class) public static final Capability<ISomething> YOUR_CAPABILITY_VALUE = null; -
1.14 World Capability Attaching but Never Available
Animefan8888 replied to oitsjustjose's topic in Modder Support
I dont see you using the AttachCapabilityEvent<World> anywhere in your code. -
You've got something wrong with your instance field.