Jump to content

Tiny Desk Engineer

Members
  • Posts

    22
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Tiny Desk Engineer's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Nevermind, RedstoneWireBlock.java had what I needed. Surprised I didn't try looking there until now.
  2. I don't know how such a thing would be done, but you could try looking at the source for the hunger effect and see if there's anything useful in there. Don't know if it's the same on IDEs other than IntelliJ, but you should be able to view the implementation of any class, method or field via the context menu, or if not, some other way. Either way whatever IDE you're using should give you access to the decompiled source code in some way.
  3. I would honestly suggest switching IDEs from Eclipse, if you can. I spent a year or two trying to get Eclipse to work for Forge mod development without much progress at all, but then I very recently switched to IntelliJ IDEA and all of the problems went away without me needing to do anything, and I made more progress with modding than I ever have.
  4. I'm making a block that constantly outputs a variable signal strength that can be changed by the player, with the output strength being stored in property, the same one redstone wires use. But while I've gotten it to emit the desired signal strength when placed, if a player changes the strength afterwards, while the block itself changes state as expected, the neighboring components don't update and keep the signal strength, only updating by other means. I've tried various things to get the neighboring blocks to be updated, taken from the code of various vanilla redstone component blocks, but nothing has worked so far. How am I supposed to make this work properly?
  5. mods.toml is a file that is required to be included in every mod jar that Forge attempts to load that specifies various important properties of a mod, if the game is crashing because a mod is missing it, the mod is either corrupted, improperly built, or isn't a mod. Since Aternos doesn't allow installing mods not approved for use on their servers, the problem is most likely that the mod file was messed up, either on your end or the developer's end. You can try reinstalling it, but if that doesn't work I don't know of any other possible fixes you could do.
  6. I'm trying to set up Eclipse for modding, I've gotten the 1.20.6 MDK imported into Eclipse, but I'm struggling with errors everywhere. Eclipse doesn't recognize any package names. According to the Forge documentation, Eclipse should install the Mojang and MinecraftForge packages automatically when the project is imported or opened by default. But that doesn't seem to be happening. I haven't changed any settings in Eclipse and haven't done anything to the MDK outside of following setup instructions.
  7. I got Eclipse to recognize String as a valid type. Still have no idea where I'm supposed to get any of the other packages.
  8. I managed to import the 1.20.6 MDK into Eclipse, but Eclipse is constantly complaining that no types or imports are valid even though I haven't modified anything in the project yet. It's important to note that running gradlew build results in a working mod jar, even though in Eclipse nearly every line has at least one error on it, so presumably this is a problem with Eclipse itself, not the project as a whole. I've been trying to fix this problem for over 2 weeks now and haven't made any noticeable progress. I've tried running every Gradle task I could possibly think of, including some that aren't even included in the version of the MDK I'm using. I've looked all over the internet for potential solutions, yet none of them have helped. I've made no visible progress ever since I got the MDK into Eclipse. I followed the instructions at https://docs.minecraftforge.net/en/1.20.x/gettingstarted/ as well as those in the README included in the MDK.
  9. ...Aaand build failed. It would sure be nice if I could fix these errors so Eclipse would start functioning as an IDE and stop being a glorified Notepad.
  10. ...I decided to try and write code for just one item in spite of the constant errors, and now Eclipse is complaining that "override" cannot be resolved to a type when I tried to override onItemRightClick.
  11. Still haven't figured anything out. Not even types like String or Object can be resolved. Value types like int seem to be fine though.
  12. The version of what? I just imported the MDK into Eclipse. I haven't made any edits to the Java code in it or even any other files. I haven't even gotten to changing the modid from "examplemod" yet.
  13. Trying again to get into Minecraft modding, I was able to import the Forge MDK into Eclipse after some confusion, but all of the imports in ExampleMod.java are highlighted in red with an error saying they can't be resolved, and all references to any type can't be resolved either. Any type, including String. Only the simplest types like int, along with types defined in the same package work fine. I tried right-clicking on the project, going to Gradle > Refresh Gradle Project and also running gradlew --refresh-dependencies but neither of those seem to have had any noticeable effect. The mod builds just fine in spite of the errors, though I doubt I'll be able to get anything done with Eclipse constantly screaming at me.
  14. I looked at the ShieldItem class, but I couldn't find any mention of startUsingItem in it. Might be remembering incorrectly, though.
  15. I want to do something which involves a player entering console commands in a text field within a custom GUI and wish to implement Minecraft's command autofill functionality into it, Is there a way I could do such a thing? And if it is possible, would it be possible to also add additional features to it which are specific to my custom GUI?
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.