Everything posted by Draco18s
-
Unable to lookup mymod:example_item
Without an instance you can't call instance methods.
-
Unable to lookup mymod:example_item
Read the documentation on the @EventBusSubscriber annotation again. There is something missing from your method signature.
-
[1-15] [SOLVED] Blocks with two guis that are not communicating
Yes, only because you're using a ContainerScreen with does all of the important stuff for you. Never done it.
-
[1-15] [SOLVED] Blocks with two guis that are not communicating
No, you are: You need to fix these problems, not just add random !isRemote checks and hope it works.
-
Tags
There isn't such a list any more. I'm not even sure I've run across crowbars before (wrenches, sure, but not very regularly). But yeah, I've shoved my own things (dusts, primarily) in under a "forge" tag using the same pattern Forge uses.
-
Working with redstone
Then I suggest looking at the redstone torch.
-
Changing block's texture to another
Blocks don't have textures, they have models. There is no way to do this without using a TileEntity, I'm afraid.
-
[SOLVED] Making A Hammer to break a 3X3 Block. Breaking two layers at a time now.
Well, you're breaking a 3x3x3 cube because of your offsets. As I said, if I want a 3x3x1, you need to know either the facing of the player or the side that was hit so you can determine which of the three directions should be only 1 unit thick.
-
[SOLVED] Making A Hammer to break a 3X3 Block. Breaking two layers at a time now.
You mean, starting in the center? Your problem is here: AxisAlignedBB grid = (new AxisAlignedBB(pos.getX(), pos.getY(), pos.getZ(), (pos.getX() + 3), (pos.getY() + 3), (pos.getZ() + 3))); You need to subtract 1 from the first three values and only add 1 to the last three. so the range is -1, 0, 1.
-
[SOLVED] Making A Hammer to break a 3X3 Block. Breaking two layers at a time now.
If you want to break only 9 blocks (and not 27) you need to know either: a) which direction the player is facing b) which side of the block the player was aiming at
-
[1.15.2] Recipes Not Working Properly
Its because setRegistryName doesn't work properly. If you don't pass your mod ID, Forge has to figure out what the mod ID should be, and it does that by checking what mod is currently "active" in the registration process. But because you've created your items in a static block, Forge cannot know what the correct mod ID is because your static code is being called at an unknown time. Oh, and specifying the mod ID might not be sufficient. Forge does a lot of things in the background and items MUST be created at a controlled time, and if its done too early, unexpected things might break.
-
[1.15.2] Recipes Not Working Properly
Did you fix the two problems I pointed out?
-
[1.15.2] Recipes Not Working Properly
https://github.com/TechnoVisionDev/Witchery/blob/master/src/main/java/com/technovision/witchery/items/ItemBase.java Code Style #4 https://github.com/TechnoVisionDev/Witchery/blob/master/src/main/java/com/technovision/witchery/WitcheryItems.java#L14 Problematic Code #14
-
General questions - new modder
Not as much as you'd think. 1.12 and 1.14 are leagues apart.
-
In the mods.toml, how do I put an logoFile in there?
Its almost like I linked it so the path could be determined...
-
1.14.4 Adding to Vanilla Entity Loot Tables
Not related to your issue, but use a longer mod ID. You have 64 characters of length, use them.
-
[1.15.2] Custom Furnace Recipe With No Output
Oh! Hmm. Nope, not sure what's going on.
-
[SOLVED][1.14.4] Adding New Global Tags
I'm not sure why you're having a problem. This works: https://github.com/Draco18s/ReasonableRealism/blob/1.14.4/src/main/resources/data/harderores/recipes/ores/iron_dust.json#L10 https://github.com/Draco18s/ReasonableRealism/blob/1.14.4/src/main/resources/data/forge/tags/items/dusts/tiny/iron.json
-
[1.15.2] Custom Furnace Recipe With No Output
I think you're going to need to extend the FurnaceRecipe class, not the abstract class.
-
Working with redstone
As an aside, you know that a redstone torch is already a "not block" right?
-
[1.15.2 | Solved] How to Raytrace from Block to Block and get facing
No, no it is not. https://www.reddit.com/r/raytracing/comments/c08qxz/ray_tracing_is_computationally_expensive_are/ While most "raytracing" things refer to rendering, the same process is applied by physics calculations (of which Minecraft's implementations qualify as). You have to use a very small delta otherwise you're bound to miss corners when moving diagonally at arbitrary angles.
-
[1.15.2 | Solved] How to Raytrace from Block to Block and get facing
BlockState#get(Property<T>) RayTrace() is going to be worse, because instead of checking at 1 unit distances, it checks at 0.1 unit distances.
-
[1.15] how to make specific rotation angle
The json system explicitly does not support angles other than 22.5% increments.
-
Crafting Recipe won't work (will not craft)
"result": { "item": "colorfulbuildings:black_cobblestone", }, "count": 8 There are two problems here. 1) You have a comma after "black_cobblestone" that causes a syntax error 2) Your "count" is outside the result block.
-
[1.15] Weird BlockState.with Property Problem
You imported the wrong Direction class.
IPS spam blocked by CleanTalk.