Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

That_Martin_Guy

Members
  • Posts

    179
  • Joined

  • Last visited

  • Days Won

    1

That_Martin_Guy last won the day on August 20 2018

That_Martin_Guy had the most liked content!

1 Follower

Recent Profile Visitors

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

That_Martin_Guy's Achievements

Creeper Killer

Creeper Killer (4/8)

7

Reputation

  1. I am currently rewriting a mod previously written for 1.12 in version 1.15. The mod encouraged giant builds, and I'd really like for the mod to be able to be converted from the old version to the new one. I went onto the discord server and asked how to achieve this and concluded that I was going to use an event to tell the game which old registry name should be matched with which new block (for instance). I therefore tried subscribing to RegistryEvent.MissingMappings in the following way: @EventBusSubscriber(modid = SCPLockdown.MOD_ID, bus = EventBusSubscriber.Bus.FORGE) public class CommonForgeEvents { @SubscribeEvent public static void fixBlockMappings(RegistryEvent.MissingMappings<Block> event) { System.out.println("Start of blockmappings"); for(RegistryEvent.MissingMappings.Mapping<Block> blockMapping : event.getMappings()) { System.out.println(blockMapping.id); } } } This method does not print at all when I try and convert an old 1.12 world in the 1.15 version, even if I used the MOD bus instead of the FORGE bus. I therefore came to the conclusion that it doesn't fire at all, and I cannot test with it right now. I also tried matching the registry name from the old version with the new one. This did not work - all of the mods blocks were removed upon convertion, even if the names matched.
  2. Spawn an entity when the block is right clicked and make the player ride it. Once dismounted, the entity should despawn.
  3. I fixed it. Turns out cofh also needs the JEI repository to work. Not having that completely broke the project like I stated earlier... Working code: buildscript { repositories { jcenter() maven { url = "http://files.minecraftforge.net/maven" } } dependencies { classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT' } } apply plugin: 'net.minecraftforge.gradle.forge' //Only edit below this line, the above code adds and enables the necessary things for Forge to be setup. version = "0.0.1" group = "thatmartinguy.brightenup" // http://maven.apache.org/guides/mini/guide-naming-conventions.html archivesBaseName = "brightenup" sourceCompatibility = targetCompatibility = '1.8' // Need this here so eclipse task generates correctly. compileJava { sourceCompatibility = targetCompatibility = '1.8' } minecraft { version = "1.12.2-14.23.4.2705" runDir = "run" // the mappings can be changed at any time, and must be in the following format. // snapshot_YYYYMMDD snapshot are built nightly. // stable_# stables are built at the discretion of the MCP team. // Use non-default mappings at your own risk. they may not always work. // simply re-run your setup task after changing the mappings to update your workspace. mappings = "snapshot_20171003" // makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable. } repositories { maven { name = "Covers (COFH)" url = "http://maven.covers1624.net/" } maven { name = "JEI Maven" url = "http://dvs1.progwml6.com/files/maven" } } dependencies { compile 'cofh:CoFHCore:1.12.2-4.5.0.+:deobf' compile 'cofh:ThermalFoundation:1.12.2-2.5.+:deobf' } processResources { // this will ensure that this task is redone when the versions change. inputs.property "version", project.version inputs.property "mcversion", project.minecraft.version // replace stuff in mcmod.info, nothing else from(sourceSets.main.resources.srcDirs) { include 'mcmod.info' // replace version and mcversion expand 'version':project.version, 'mcversion':project.minecraft.version } // copy everything else except the mcmod.info from(sourceSets.main.resources.srcDirs) { exclude 'mcmod.info' } }
  4. I'm creating a mod that requires cofh and possibly also thermal foundation to work, but whenever I try and add both of these as a dependency all other libraries get removed, resulting in this happening, which makes modding impossible. These are all the libraries I have. When I remove the dependencies declaration forge is added as a library again. build.gradle
  5. I've heard on the forge discord that the ITeleporter interface is brand new and isn't implemented in a good way. Is this true or is there another problem?
  6. I am creating a dimension. It's simple for now, only sporting a single biome, but it will be expanded on later. For now, though, I cannot actually enter my dimension. I register my dimension here, and the world provider is here. To transfer myself to the dimension I use ItemTeleporterTest. I cannot enter the dimension, though. When I right click with the item just reloads the overworld. Using the forge setdim command does the same thing the first time, but after that it tells me it's already in that dimension. What's the problem here? EDIT: It seems that setting the biome provider in the constructor was incorrect, and so I moved it to init, which made it work.
  7. My friend is trying to setup a workspace for forge, but he gets the following error every time he runs setupDecompWorkspace; FAILURE: Build failed with an exception. * What went wrong: Unable to start the daemon process. This problem might be caused by incorrect configuration of the daemon. For example, an unrecognized jvm option is used. Please refer to the user guide chapter on the daemon at https://docs.gradle.org/2.14/userguide/gradle_daemon.html Please read the following process output to find out more: ----------------------- Error occurred during initialization of VM Could not reserve enough space for 3145728KB object heap According to task manager he has more than 3G (almost 4G) of RAM available, which should be enough according to the gradle properties file; # Sets default memory used for gradle commands. Can be overridden by user or command line properties. # This is required to provide enough memory for the Minecraft decompilation process. org.gradle.jvmargs=-Xmx3G Full stacktrace
  8. Override the items addInformation method in the class of your item and add the tooltips you want in the string list that gets passed in as an argument.
  9. I can't really tell completely, but it looks like you're calling that outside a method, which you can't do. If it is inside of a method, post your code instead of showing the error.
  10. Take a look at capabilities. Create one that stores a string, and set the string when the player joins.
  11. I have a git project me and one other person is working on. I had to reinstall my operating system because of a bug, but now, after just having installed the very same linux distribution as I had before minecraft crashes with this: https://pastebin.com/ZS4Mv0Gf I doubt it's directly related to the project, as the other person can compile and run it just fine. I'm suspecting a driver issue, although that should be automatically detected by my distro (Manjaro XFCE edition with 4.14.27-1-MANJARO kernel). Any ideas?
  12. Do you know of any way to fix it? It's not really something gamebreaking but if I'm changing a single value to really make it detailed it's quite annoying to have to wait ~30 seconds even though I changed a single number...
  13. I am experiencing this in more than one minecraft forge project, any clue as to why this is happening?
  14. I have no doubt in my mind that things will change. I also don't doubt that it is for a good reason they (or you as a forge dev) make the changes. I simply would like to know the scale of it, so I can know if minecraft gets a mountain of changes like in 1.8 or not.
  15. I am creating a simple enemy that attacks the player, but I cannot make him actually deal damage to the player. All he does is run towards the player and make contact with him. No damage is dealt. Code: public EntitySpecGhost(World worldIn) { super(worldIn); this.setSize(1, 2.4f); } @Override protected void initEntityAI() { tasks.addTask(0, new EntityAISwimming(this)); tasks.addTask(1, new EntityAIAttackMelee(this, 2, true)); tasks.addTask(2, new EntityAILookIdle(this)); tasks.addTask(3, new EntityAIWatchClosest(this, EntityPlayer.class, 100)); tasks.addTask(4, new EntityAIWander(this, 1)); targetTasks.addTask(0, new EntityAIHurtByTarget(this, true)); } @Override protected void applyEntityAttributes() { super.applyEntityAttributes(); getEntityAttribute(SharedMonsterAttributes.ATTACK_DAMAGE).setBaseValue(15); } @Nullable @Override protected SoundEvent getHurtSound(DamageSource damageSourceIn) { return null; } @Nullable @Override protected SoundEvent getDeathSound() { return null; } @Override protected void playStepSound(BlockPos pos, Block blockIn) { }
×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.