Everything posted by Animefan8888
-
Creating fog in a custom dimension
Add a few printlns to that method to see why it isn't getting set.
-
doesSneakBypassUse 1.14.4 Forge
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.
-
Creating fog in a custom dimension
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.
-
[1.12.2] Using TConstruct Tools to chop wood into planks from No Punch Blocks
? If I understand correctly you went and looked at ItemStack#getItem and saw that it returned an Item. You need to check if ItemStack#getItem() instanceof Hatchet/LumberAxe. instanceof is a key word in Java. Look it up if you don't understand it.
-
[1.12.2] Using TConstruct Tools to chop wood into planks from No Punch Blocks
You'll need to check if the stack.getItem() is an instance of Hatchet and or LumberAxe. Then in the build.gradle file from when you setup your directory you'll need to specify that Tinkers Construct is a dependency of your mod.
-
[1.12.2] Using TConstruct Tools to chop wood into planks from No Punch Blocks
Firstly proper etiquette don't post code that doesn't belong to you. Yes even if it is on github/open source. The proper thing to do would be to link it to their github. Secondly do you know Java or any object oriented language similar to Java?
-
[1.12.2] RightClickEvent
Look at the return type of Block#getDefaultState... they aren't compatible.
-
[1.12.2] RightClickEvent
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
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.
-
[1.12.2] RightClickEvent
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
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.
-
[1.12.2] RightClickEvent
I was the blind one this time diesieben It goes right above your Event method.
-
Block light with connected textures
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.
-
[1.12.2] RightClickEvent
Is your event even being called? Where do you register it?
-
[1.14.4][Solved] Create recipes for machine with json
I'm gonna need to see the line of code and the exact error. Unless this is you saying that you've solved it.
-
[1.12.2] RightClickEvent
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.
-
Open container with server side only
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
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.
-
[Forge 1.12.2] [SOLVED] Get block property from known block at BlockPos (age of BlockCrop)
This can be shortened to (int) world.getBlockState(pos).getValue(BlockPotato.AGE); Though it does the exact same thing just a step further down. You should probably use IBlockState#getValue for some error checking.
-
[1.12.2] RightClickEvent
You can read up about events here.
-
[1.12.2] RightClickEvent
Post what you tried.
-
[1.14.4][Solved] Create recipes for machine with json
You use ItemStackHandler to initialize it though. And ItemStackHandler is dun dun dun a IItemHandlerModifiable instance. Therefore cast it.
-
[Forge 1.12.2] [SOLVED] Get block property from known block at BlockPos (age of BlockCrop)
This is still wrong...you're not using the fact that BlockPotato.AGE is static. You don't use an instance to access it. Use BlockPotato.AGE instead of casting and using an instance to access it.
-
Open container with server side only
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
Basic Java.
IPS spam blocked by CleanTalk.