Everything posted by Draco18s
-
Setting custom blockstate location for block
One ends at 8 (not included) the other starts at 8 (the same value, so it is included). [0,8)+[8,x) is the same as [0,x) If end was inclusive, or start was exclusive, you'd be right (either doubling or excluding) position 8.
-
[1.14.4] How do I use LazyOptional<T> return in getCapability function
I'll review what I've got then. Its possible that I can squish things back into a world-remote check, haven't looked at the code recently.
-
[1.14.2] Sudden Crash
Post your code. We're pretty telepathetic here.
-
Setting custom blockstate location for block
Wow that's disgusting. Holy hell. item.getRegistryName().toString().substring(0, 8) + item.getRegistryName().toString().substring(8, iend) Soo... item.getRegistryName().toString().substring(0, iend) ? Anyway in 1.14 you don't need to register your item models manually any more. They're registered automatically by registry name and you shouldn't be using metadata to differentiate "subtype" items any more. ...yes, as evidenced by the fact that they...are different. One tells the game "this block exists" and other says "this item+meta has this model."
-
[1.14] Custom Stairs Registration
Great, what are these fields used for? Have you figured out what you need to pass in yet?
-
[1.14.4] How do I use LazyOptional<T> return in getCapability function
I'm already using a DistExecutor for setting up a proxy, so I guess that's fine? Anyway, it relates back to having to spawn TileEntities in a World so that I can query their IItemHandlers: on the client side I need a FakeWorld (as it only comes up when the user is in the GUI) and on the ServerSide I can use a Dimension (where things can be semi-persistent for efficiency during ticking).
-
Modded Blocks from upgraded world missing
No. You are not allowed to do that. That's called "jar modding" and is explicitly against the Forge compatibility rules. That's why vanilla files are "read only." If you want to help make the datafixers work, you will want to look into Contributing to Forge.
-
[1.14] Custom Stairs Registration
? Maybe go look at what that parameter is used for? Maybe look at what other places call the stairs constructor and see what they pass?
-
[1.12.2] Having issues with item json file
Caused by: java.io.FileNotFoundException: ctek:models/item/copper_ingot.json The game says that the file doesn't exist. Are you sure it's named exactly, are you sure your workspace has been cleaned/refreshed so that all non-code assets are being copied over correctly?
-
1.12.2 item transfer without slots
On closing the UI, give the player all the items "stored" in the TE.
-
[1.14.4] How do I use LazyOptional<T> return in getCapability function
Oh huh. I may have to look into this. I do have a spot where I had to split things by side, but that might be nicer.
-
Modded Blocks from upgraded world missing
That only maps registry entries that were found on disk with new registry entries. If you have an old block called, say, "logs" and it was two kinds of wood, so its now "oak_logs" and "birch_logs" you could data map from "logs" to "oak_logs" but all your birch trees would be oak.
-
[1.14.4] Checking for specific blocks in loaded chunks
About 600,000 nanos (provided you do literally nothing else but look, doing more can use up as much as another 600,000 nanos) and you only need to do it once per chunk after its generated. Player placed blocks you can acquired at the time it happens. I would recommend using the Custom Ore Gen CogOreGenEvent (which is called after COG does its stuff, which is pretty much guaranteed to run Actually Last, though there are a handful of mods that go later) to do it, but that hasn't updated past 1.12 yet. Or if you're thinking of doing it as a map, you pretty much scan the chunk when the map already does its thing to find out what color to draw. I've done that before too.
-
Can i have two verisons of forge downloaded at the same time?
Sure Each of those is its own workspace (well the Asset Cache shortcut goes to the gradle cache of Minecraft jar files, in the rare occasion I need to extract an asset).
- Particles in 1.14.4
-
Particles in 1.14.4
FORGE_INSTALL/src/main/resources/YOUR_MOD_ID/particles/footstep.json Yes you do. It's fa. Make it longer.
-
How do I make ores/blocks only generate in certain biomes 1.7.10
Forge supports the current version (1.14 at the time of this writing) and one version back (ish, which is 1.12 at the time of this writing; 1.13 is sort of an interim version and was largely skipped). Sometimes it'll go back 2 versions (some help is available for 1.10, but won't be immediately locked).
-
Particles in 1.14.4
1) use a longer mod ID. You have 64 characters to work with, use them. 2) Does that file exist?
-
[SOLVED] setBlockState In World onItemUse (1.14.4 Beta)
Well. Its not being called because you're not actually overriding a method. You'd know this if you used the @Override annotation. The method only takes a single Context parameter now.
-
BlockPos class not found
- [1.12.2] How do you return a item from crafting table with damage?
You won't be able to accomplish this without writing some Java. Water buckets (milk buckets, lava buckets) all return a "container item" when used in crafting because that's already been coded in. Vanilla has not applied the same logic to tool-like items in order to make them take damage. Any mod you've seen that does that has added that functionality themselves in the Java code.- [Solved] -> 1.14 Bounding Box not working
When dealing with AABBs? Yes. VoxelShape on the other hand, ranges 0-16. The VoxelShape.create method that takes in an AABB multiplies it all by 16.- [1.12.2] Custom Block Outlines
Does minecraft have slabs?- Fixing bad modding practices
If you're on 1.14 its two methods. harvestTool and harvestLevel https://github.com/Draco18s/ReasonableRealism/blob/1.14.4/src/main/java/com/draco18s/harderores/HarderOres.java#L112- Fixing bad modding practices
Show your code. - [1.12.2] How do you return a item from crafting table with damage?
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.