Jump to content


  • Posts

  • Joined

  • Last visited

Recent Profile Visitors

5017 profile views

PulseBeat_02's Achievements

Creeper Killer

Creeper Killer (4/8)



  1. That makes way more sense now. I was a bit confused originally because that method return an array of worlds, and I wouldn't know which world that would be currently loading in. Ah. Thank you for your help.
  2. Oh yeah, I forgot lol. If I recall properly, I would need to use the MinecraftServer.getServer().worldServers method (Unless it was changed in the recent versions of forge). This would return an array of all loaded Worlds. I would then change the method to a loop which would run through all of the loaded worlds.
  3. If you aren't doing anything that is going to be "custom" to the slab, you could just directly use the constructor from the class and pass in some params (as what Draco18s said). That would be much simpler and easier to read. If you wanted to change how certain functions and methods work in the slab, you would have to extend the class.
  4. I did see the SlabBlock class. Maybe try making your own Slab class and extend it? I'm pretty sure if you search for classes you will find a couple examples of slabs in the Minecraft source.
  5. It should be noted that items do burn in fire (You would have to override that). I am slightly confused on what your plan is. Do you want the cooked item to be thrown out from the fire and onto the player once it is finished? You could always make a block similar to the normal Fireplace in Minecraft (which also cooks food). Maybe take a look at that class.
  6. Ah. I see. Thank you for helping me find what the other events are that I needed to use. That means that if I want to check if a user is creating a fresh world, I would have to make a new class which extends WorldSavedData (which would contain a constructor that would be invoked if the player is creating a new world). Here is my code, (and the method used to determine if a world is newly created is inside the class): import org.kingmammoth.kmcutscenes.KingMammothCutScenes; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.world.storage.WorldSavedData; import net.minecraftforge.fml.client.FMLClientHandler; public class FreshWorldCreation extends WorldSavedData { private static final String DATA_NAME = KingMammothCutScenes.MODID + "_CUTSCENEDATA"; public FreshWorldCreation() { super(DATA_NAME); } @Override public void readFromNBT(NBTTagCompound nbt) { } @Override public NBTTagCompound writeToNBT(NBTTagCompound compound) { return null; } public static boolean isFreshlyCreated() { FreshWorldCreation instance = (FreshWorldCreation) FMLClientHandler.instance().getWorldClient().getMapStorage() .getOrLoadData(FreshWorldCreation.class, DATA_NAME); return instance == null ? true : false; } } Is that correct?
  7. Ah. Thank you for the event. I was thinking of if there was more specific events, such as something like onWorldCreate, onWorldLoad, onExitWorld, something like that.
  8. Hi, I was looking around for an event which would could be used while the user is creating a single player world. (For example, methods with this event would be called when the user is creating a single player world). Does anyone know a possible event which exists? If there isn't an event, please tell me a way to do this without using the event.
  9. You can get started on Twitch, if that helps. Just make a custom profile and start adding some mods. You can look at the mod's documentation if you want to tweak some settings.
  10. This thread is pretty old, and I don't know why we are necroing it. I think the conclusion is that adfoc.us is very safe as long as you don't click on the ads and press skip on the top right corner. If a mod could close the thread they are more than welcome to.
  11. So there is this mod called Ambience, (a mod which adds music), that I would like to port to 1.15. The current version is 1.12. What steps would I take to get the code from the Github and set the version in Gradle/Forge to 1.15? I've downloaded the code in a zip file, edited the gradle config file to set the mcp mappings to the latest 1.15 version, and set the version to the latest 1.15 forge version. After that I ran gradlew eclipse and gradlew genEclipseRuns. Is there anything else I have to do before in order to get myself started and start changing up the code to make it compatible with forge 1.15? Thanks.
  12. I'm not a moderator, but anything 1.12 and below is not supported. Check out the update on the green bar.
  13. @DavidM I am having some trouble trying to configure these dependencies in the build.gradle dependencies section. Can you show me a line of script that would add JavaFX to the build path?
  14. Hello, have you tried following online tutorials such as https://minecraft.gamepedia.com/Mods/Installing_Forge_mods You must install Forge by clicking on the jar/exe file (depending on your installation), and then selecting "Install Client". Make sure you played that specific Minecraft version at least once, or the installer won't let you install Forge. Then, after installing, go into your .minecraft folder, and go into the mods folder (or create a mods folder if there isn't one), and add the downloaded mod jar file there. Then, go into Minecraft, create another custom Launch Configuration, and select your forge version. Then, you should be able to just click "Play", and the mod should be loaded in.
  • Create New...

Important Information

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