-
Posts
6157 -
Joined
-
Last visited
-
Days Won
59
Everything posted by Animefan8888
-
Add a few printlns to that method to see why it isn't getting set.
-
It's not implemented in forge 28.1.19 I don't know if it has been implemented yet. 28.1.26 being the latest.
-
I doubt that it does, but it fires every frame as it needs to. Because the fog is rendered every frame. If it is lagging it's because the value you set the density to. The event gives you access to an Entity the Entity knows what World it is in. The World knows what Dimension it represents. Think you can solve it from there.
-
Look at the return type of Block#getDefaultState... they aren't compatible.
-
We were both blind diesieben... The problem is that this will never be true. Use ItemStack#getItem and compare item instances instead.
-
[1.14.4][Solved] Create recipes for machine with json
Animefan8888 replied to Tieso2001's topic in Modder Support
The IRecipeType is only used in code. The type in the Json refers to the registry name of the IRecipeSerializer. As an extension. This will result in the IRecipeType being registered under minecraft:steeping which you don't want. Pass modid:steeping instead. -
Can you confirm if the event is being fired. Put a print line there or better yet step through that method with your debugger.
-
[1.14.4][Solved] Create recipes for machine with json
Animefan8888 replied to Tieso2001's topic in Modder Support
test_steeping.json is not the same as Its also either a JsonArray or a JsonObject so in your Json you need to choose one. -
I was the blind one this time diesieben It goes right above your Event method.
-
Make the other blocks also emit light? Don't know if that is an option, but that is caused by the lighting engine in Minecraft.
-
Is your event even being called? Where do you register it?
-
[1.14.4][Solved] Create recipes for machine with json
Animefan8888 replied to Tieso2001's topic in Modder Support
I'm gonna need to see the line of code and the exact error. Unless this is you saying that you've solved it. -
There are several sub-events to this one, the one you want is called PlayerInteractEvent.RightClickBlock. You have the BlockPos where the player right clicked(aka where the Block is in the World where they right clicked). That means you have access to which Block they right clicked. Check to make sure it was a Gold Block. If it was a Gold Block then use BlockPos#offset to offset in the UP direction and call World#setBlockState to put a Gold Block in the World at that offset position.
-
Threads aren't closed under normal circumstances. They are only closed when things go awry, like necro-ing and on versions where support isn't offered anymore. Namely 1.8.9 and 1.7.10.
-
[1.14.4][Solved] Create recipes for machine with json
Animefan8888 replied to Tieso2001's topic in Modder Support
The second argument should be the RecipeWrapper field, and the first one should be your RecipeType. Also instead of just "steeping" this should contain your modid. -
You can read up about events here.
-
Post what you tried.
-
[1.14.4][Solved] Create recipes for machine with json
Animefan8888 replied to Tieso2001's topic in Modder Support
You use ItemStackHandler to initialize it though. And ItemStackHandler is dun dun dun a IItemHandlerModifiable instance. Therefore cast it. -
No the container remember the inventory. Then EntityPlayerMP#sendContainerToPlayer will update said information based on what the server said. I'm not sure what your problem is I have 0.something similar in some code of mine that works perfectly, though I don't just deny slotClick(aka I do call the super in it).
-
[1.14.4][Solved] Create recipes for machine with json
Animefan8888 replied to Tieso2001's topic in Modder Support
Basic Java.