Everything posted by Draco18s
-
[1.14.4][Edit] CustomCrop isn't working
This is probably null when you call it, you'll have to show more of your code (preferably as a git repo) or figure out why yourself.
-
Encountered a error during the load_registries event phase
You can always start one.
-
Encountered a error during the load_registries event phase
The mystic energies of the ether are telling me that your code is wrong on line 41 of VisionaryItems and you should change it.
-
(SOLVED) [1.14.4] Best Way to Switch between Multiple Mods?
How to do it right: Create a new folder Add all the files that Forge ships with Run the forge setup commands Open eclipse and say "change workspace" Point it at the new folder
-
(SOLVED) [1.14.4] Best Way to Switch between Multiple Mods?
Then you probably set things up wrong.
-
[1.14.4] What is Stats?
Stats is more "how far have you run?" "how many dirt blocks have you harvested?" and so forth.
-
[1.12.2] Start/Pause/Resume moving sounds
Probably something like this: https://github.com/Draco18s/ReasonableRealism/blob/1.12.1/src/main/java/com/draco18s/ores/client/SoundWindmill.java#L32-L44 But it doesn't seem to me like a positioned/moving sound is what you actually want. It looks like you want an unpositioned sound (always plays at full volume).
-
[1.14.4] [SOLVED] Rendering layer (model) with transparency on player and holding an item makes the texture solid
Your code never enables alpha.
-
[1.14.4] Blockstate without model
Your item json can't be empty (but it CAN point to your block model which can be empty).
-
Stuctures 1.14
As far as I know, structure blocks can't be used for mod structures. Or at least, not yet. I've been digging into the structure code myself and I haven't yet figured out where the hooks are that deal with loading the structure block and placing its template into the world (I also don't need this capability, so I've been picking at other parts of the code).
-
Change Recipes with config
...which needs to return an instance of a class that extends IRecipe<?> from one of its methods.
-
EntityJoinWorldEvent fired multiple times
mc here is almost certainly the result of calling Minecraft.getMinecraft(), which won't work on a server (it'll crash the server).
-
[1.14.4] Event not getting registered
No. Use loot tables. https://github.com/Draco18s/ReasonableRealism/blob/1.14.4/src/main/java/com/draco18s/harderfarming/EventHandlers.java#L52
-
[1.14.4] Event not getting registered
Yes, but keep in mind that replacement is "whichever mod loads last."
-
[1.14] Custom Structures
Ah ha, I figured something out. Structures need to be sent to biomes as both a structure and a feature or they won't generate. Still more work to do, but that part finally starts making sense.
-
[1.14] Custom Structures
Yeah, I've gotten that much myself. Though I'll note that Structure<?> and Feature<?> work just fine for the object holder annotation (and as far as I can tell, both use the same registry; i.e. RegistryEvent.Register<Feature<?>>). I've also gotten features working just fine, eg: https://github.com/Draco18s/ReasonableRealism/blob/1.14.4/src/main/java/com/draco18s/harderores/HarderOres.java#L117
-
[1.14] Custom Structures
Anyone know how these work? I've been poking at the code and trying a few things, and while I have gotten the game to call hasStartAt(...) (and a bit further, such as having MyStructure.Start get init'd), I haven't been able to determine that any blocks are actually placed in the world. I'm trying to work out how the system functions so I can help Lawremi update Custom Ore Generation, which relies on being able to place ore blocks from code (not structure files) as its has its own systems for determining what goes where, but at the moment I'd be happy to just get any of these structure functions that have a reference to World (addComponentParts, handleDataMarker, whatever) get called at all.
-
[1.14.4] Event not getting registered
No, because it bypasses the loot table system. That's why that PR exists and isn't merged, see Lex's comment.
-
Hooking to Criteria Triggers?
Hmm, not sure then. I've not tried to do something like this.
-
[1.14.4] Questions about recipes, advancements and tags
Make two recipe files Use the json system? "criteria": { "has_planks": { "trigger": "minecraft:inventory_changed", "conditions": { "items": [ { "tag": "minecraft:planks" } ] } }, You don't need to do that. Just create the json file and call BlockTags/ItemTags.getCollection().getOrCreate(...) Its right there in the docs.
-
[1.14.4] Event not getting registered
No shit, Sherlock, that pull request is still open. The entire reason I linked it is because the problem you're having is because that event does not exist and there's why.
-
[1.12.2] Adding an item to a loot table
That'd do it.
-
[1.12.2]Why my Texture not Loading?
Code Style #3, I'd be willing to bet you didn't tag your item class with IHasModel (and this is one of the reasons its stupid).
-
[1.12.2]Why my Texture not Loading?
Also make sure you registered it in the ModelRegistryEvent.
-
[1.12.2] Adding an item to a loot table
I'm not sure what's up, then. I pretty rigorously made sure I got things working when I updated stuff.
IPS spam blocked by CleanTalk.