Jump to content
  • Home
  • Files
  • Docs
Status Updates
  • All Content

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • hiotewdew

hiotewdew

Members
 View Profile  See their activity
  • Content Count

    101
  • Joined

    May 27, 2017
  • Last visited

    November 22, 2020
  • Days Won

    1

 Content Type 

  • All Activity

Profiles

  • Status Updates
  • Status Replies

Forums

  • Topics
  • Posts

Calendar

  • Events

Posts posted by hiotewdew

  • Prev
  • 1
  • 2
  • 3
  • 4
  • 5
  • Next
  • Page 4 of 5  
  1. Failing to find model json file

    in Modder Support

    Posted April 4, 2018


    Also try running

    attrib -R -H /D /S C:\Users\Reece\AppData\Roaming\.minecraft

    This will remove both the hidden and read-only attributes from .minecraft and all of its subfolders and files.

  2. Failing to find model json file

    in Modder Support

    Posted April 4, 2018


    Quote from StackOverflow. " There are three cases where a FileNotFoundException may be thrown. The named file does not exist. The named file is actually a directory. The named file cannot be opened for reading for some reason. The first two cases are unlikely based on your description. I would test against the third case using file.canRead() . "

     

  3. Need help making a sword spawn lightning where player looks on right click.

    in Modder Support

    Posted January 5, 2018


    So you have to convert the method to some sort of format that excludes partial ticks so it can run serverside.

  4. Need help making a sword spawn lightning where player looks on right click.

    in Modder Support

    Posted January 5, 2018


    43 minutes ago, Draco18s said:

    Partial Ticks is what fraction of a game-tick the current render frame is on (if the game runs at 20 ticks a second and the application is rendering at 60 frames a second, then each frame is 0.3333 of a tick). Partial ticks only make sense client side, so please double check that that rayTrace method is not marked @SideOnly(Side.CLIENT)

     @Nullable
        @SideOnly(Side.CLIENT)
        public RayTraceResult rayTrace(double blockReachDistance, float partialTicks)
        {
            Vec3d vec3d = this.getPositionEyes(partialTicks);
            Vec3d vec3d1 = this.getLook(partialTicks);
            Vec3d vec3d2 = vec3d.addVector(vec3d1.x * blockReachDistance, vec3d1.y * blockReachDistance, vec3d1.z * blockReachDistance);
            return this.world.rayTraceBlocks(vec3d, vec3d2, false, false, true);
        }

    This is the method...

  5. [1.12.2] How to make a normal bucket turn to a custom bucket after collecting a custom fluid?

    in Modder Support

    Posted January 5, 2018 · Edited January 5, 2018 by hiotewdew
    fix error


    While you do attempt to do the above it is not correct.

    	static {
    		FluidRegistry.enableUniversalBucket();
    	}
    
    	public static final String MODID = "mff";
    	public static final String NAME = "My Food Factory";
    	public static final String VERSION = "1.0.0";
    	public static Logger LOGGER;
    	@Mod.Instance(MyFoodFactory.MODID)
    	public static MyFoodFactory instance;

    Should be changed to this:

    	public static final String MODID = "mff";
    	public static final String NAME = "My Food Factory";
    	public static final String VERSION = "1.0.0";
    	public static Logger LOGGER;
    	@Mod.Instance(MyFoodFactory.MODID)
    	public static MyFoodFactory instance = createInstance();
    	static MyFoodFactory createInstance() {
    		FluidRegistry.enableUniversalBucket();
    	}

     

  6. [1.12.2] How to make a normal bucket turn to a custom bucket after collecting a custom fluid?

    in Modder Support

    Posted January 5, 2018


    You have to call enableUniversalBucket before the pre-initialization stage.

    Here's a solved thread with an explanation.

  7. [1.12.2] How to make a normal bucket turn to a custom bucket after collecting a custom fluid?

    in Modder Support

    Posted January 5, 2018


    Show me the class you register your fluid in.

  8. Removing string/buttons from gui

    in Modder Support

    Posted January 4, 2018


    Just now, weeeee said:

    But where am I supposed to get that variable? :L

    Quote

    possibly event.buttonList.get(number) or something like that

     

     

  9. Undescriptive Error Log, Sound doesn't work on servers but works on singleplayer

    in Modder Support

    Posted January 4, 2018


    3 hours ago, jeffryfisher said:

    Some of the vanilla sound methods run on the server and send packets to all listeners (players). Other methods act like renderers, only existing or running on the client, often downstream from the packet handlers. Unfortunately, much of the naming is similar, so Minecraft's sound system is confusing. IIRC, PositionedSound is client-side only.

     

    You need to analyze these classes and then organize your code so that you make decisions on the server that cause sounds to be rendered on the client. In many cases, you do not need to design your own packets and handlers; vanilla will handle that for you.

     

    I recommend setting some breakpoints and then stepping through the process for some vanilla sound in debug mode. That'll show you in a hurry what calls what where.

     

    You should also read about sound in the Forge docs.

    I feel like there's a different problem because I am NOT calling any functions to play sounds except in some cases, but in the cases that I don't, there is literally no time I call getAmbientSound(). This is all vanilla handling it. I have a mob with functioning sound, a villager, using default villager sounds. Yet my other mobs all extend a base class, which extends EntityAnimal, which is exactly what I have my villager extending. It makes no sense. The SoundEvents seem to be correct. I read the Forge docs several times already and nothing there has worked.

  10. Removing string/buttons from gui

    in Modder Support

    Posted January 4, 2018


    If you can get the GuiButton variable

    possibly event.buttonList.get(number) or something like that

    You can set the visible variable to true/false

  11. Need help making a sword spawn lightning where player looks on right click.

    in Modder Support

    Posted January 4, 2018


    A Vector is a list of three numbers. It has an X value, a Y value, and a Z value. In Minecraft, X, Y, and Z refer to the position a block/tile/entity is located at.

    So if you have a Vector and desire a BlockPos, you can create a BlockPos with a vector via

    new BlockPos(Vector)

    Draco referenced the rayTrace function.

    You can use the EntityPlayer rayTrace to find the Vector (Block Position) that the play is currently looking at.

    So you can use

    RayTraceResult rayResult = playerIn.rayTrace(howFarThePlayerCanReachinBlocks, partialTicksnotSurewhatthisIs);
    BlockPos lookingPosition = new BlockPos(rayResult.hitVec);
    // Summon your lightning at lookingPosition

    I haven't tested but if that doesn't work try adding the hitVec to the player position like this:

    BlockPos lookingPosition = rayResult.hitVec.add(player.getPositionVector());

     

    Pursue your modding course and make sure you understand Java and not just Minecraft code.

    Java is a useful skill and a powerful tool.

  12. [1.12.2] How to make a normal bucket turn to a custom bucket after collecting a custom fluid?

    in Modder Support

    Posted January 4, 2018


    15 hours ago, LeoCTH said:

    ....

    My problem is my REGISTERING process having problem...

    It's not working

    Can I have more context than this? Or are you good and used a universal bucket?

  13. FPSSpooferMod to 1.12 resolve type error

    in Modder Support

    Posted January 4, 2018


    18 hours ago, huiUIFO said:

    Could you make an example of what should I replace on line 25?

    EntityPlayer player = (EntityPlayer) sender.getCommandSenderEntity();
    player.sendMessage(new TextComponentString("Current FPS Spoof: " + this.mod.getSpoofType().toString() ));

    This forum isn't a Java tutorial. Make sure you have basic Java knowledge.

    and Matryoshika is correct, the calling of Minecraft.getMinecraft().getPlayer() would be bad especially when execute gives you the player executing in the form of ICommandSender.

  14. FPSSpooferMod to 1.12 resolve type error

    in Modder Support

    Posted January 4, 2018


    If you're trying to fix the chat, you send chat with

    (an instance of EntityPlayer).sendMessage(new TextComponentString(a String));

  15. (Solved) I need inheritance of my field created in ASM. Best way?

    in Modder Support

    Posted January 4, 2018 · Edited January 4, 2018 by hiotewdew


    Error Log?

     

    Well, if you are passing a packet from client to server but it is on a singleplayer world, there's a server, but not a dedicated server. I'm not sure, but maybe that could be the problem. Try a manual check for a server and if it isn't a server, just do it all clientside.

     

    The problem could be that EntityPlayerSP extends an abstract class, AbstractClientPlayer, which extends EntityPlayer.

    EntityPlayerSP isn't referenced in these kinds of situations. You run most things on EntityPlayer.

    In what situation must this be applied to EntityPlayerSP?

    If you're using Minecraft.getMinecraft().player, you shouldn't. Use the reference from the command as your player.

     

    I know nothing about ASM. This is literally all speculation.

  16. [1.12.2] How to make a normal bucket turn to a custom bucket after collecting a custom fluid?

    in Modder Support

    Posted January 4, 2018 · Edited January 4, 2018 by hiotewdew
    grammar


    If you want to drain it just add a check to see if the item held is your full bucket and run eventWorld.setBlockState to set the block at hitVec to your liquid.

  17. [1.12.2] How to make a normal bucket turn to a custom bucket after collecting a custom fluid?

    in Modder Support

    Posted January 4, 2018 · Edited January 4, 2018 by hiotewdew
    Fix formatting


    Use Event hooks from Forge.

    So create an EventHandler, make sure it's registered and subscribe an event like so:

    public static void onBucketUsed(FillBucketEvent event) {
        World eventWorld = event.getWorld();
        BlockPos hitPos = new BlockPos(event.getTarget().hitVec);
        if(eventWorld.getBlockState(hitPos) == yourBlockRegistry.theliquidVariable) {
            event.setFilledBucket(new ItemStack(yourItemRegistry.theBucketVariable, 1));
        }
    }
    	
  18. Minecraft crashing below 1.12.1 forge

    in Support & Bug Reports

    Posted January 4, 2018


    I have no idea. Some sort of system error.

    Maybe someone more experienced than me can help you.

  19. Minecraft crashing below 1.12.1 forge

    in Support & Bug Reports

    Posted January 4, 2018


    It should be in

    C:\Users\Josh\AppData\Roaming\.minecraft\.minecraft\
    

     

  20. Minecraft crashing below 1.12.1 forge

    in Support & Bug Reports

    Posted January 4, 2018


    21 minutes ago, Catahoula_ said:

    [19:11:48] [Client thread/INFO]: [net.minecraftforge.fml.client.SplashProgress:start:219]: ---- Minecraft Crash Report ---- // This doesn't make any sense! Time: 1/3/18 7:11 PM Description: Loading screen debug info This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- System Details -- Details: Minecraft Version: 1.10.2 Operating System: Windows 7 (x86) version 6.1 Java Version: 1.8.0_25, Oracle Corporation Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation Memory: 218104512 bytes (208 MB) / 419430400 bytes (400 MB) up to 1073741824 bytes (1024 MB) JVM Flags: 8 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx1G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=16M IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: Loaded coremods (and transformers):

     

    There is no error in this crash report (See "Loading screen debug info This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR".

    Is this the log or the report from the crash-reports folder? If it's the log can you add the crash-report file if there is one?

     

  21. Undescriptive Error Log, Sound doesn't work on servers but works on singleplayer

    in Modder Support

    Posted January 3, 2018 · Edited January 4, 2018 by hiotewdew


    So basically if you're on a server the sound doesn't work and the client gives you this error:

    [main/FATAL]: Error executing task
    java.util.concurrent.ExecutionException: java.lang.NullPointerException
    	at java.util.concurrent.FutureTask.report(Unknown Source) ~[?:1.8.0_121]
    	at java.util.concurrent.FutureTask.get(Unknown Source) ~[?:1.8.0_121]
    	at net.minecraft.util.Util.runTask(Util.java:54) [Util.class:?]
    	at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1161) [Minecraft.class:?]
    	at net.minecraft.client.Minecraft.run(Minecraft.java:436) [Minecraft.class:?]
    	at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?]
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_121]
    	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
    	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_121]
    	at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]
    	at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_121]
    	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
    	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_121]
    	at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
    	at GradleStart.main(GradleStart.java:26) [start/:?]
    Caused by: java.lang.NullPointerException
    	at net.minecraft.client.audio.PositionedSoundRecord.<init>(PositionedSoundRecord.java:45) ~[PositionedSoundRecord.class:?]
    	at net.minecraft.client.audio.PositionedSoundRecord.<init>(PositionedSoundRecord.java:40) ~[PositionedSoundRecord.class:?]
    	at net.minecraft.client.multiplayer.WorldClient.playSound(WorldClient.java:509) ~[WorldClient.class:?]
    	at net.minecraft.client.multiplayer.WorldClient.playSound(WorldClient.java:497) ~[WorldClient.class:?]
    	at net.minecraft.client.network.NetHandlerPlayClient.handleSoundEffect(NetHandlerPlayClient.java:1828) ~[NetHandlerPlayClient.class:?]
    	at net.minecraft.network.play.server.SPacketSoundEffect.processPacket(SPacketSoundEffect.java:78) ~[SPacketSoundEffect.class:?]
    	at net.minecraft.network.play.server.SPacketSoundEffect.processPacket(SPacketSoundEffect.java:13) ~[SPacketSoundEffect.class:?]
    	at net.minecraft.network.PacketThreadUtil$1.run(PacketThreadUtil.java:21) ~[PacketThreadUtil$1.class:?]
    	at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) ~[?:1.8.0_121]
    	at java.util.concurrent.FutureTask.run(Unknown Source) ~[?:1.8.0_121]
    	at net.minecraft.util.Util.runTask(Util.java:53) ~[Util.class:?]
    	... 15 more
    [17:48:46] [main/FATAL]: Error executing task
    java.util.concurrent.ExecutionException: java.lang.NullPointerException
    	at java.util.concurrent.FutureTask.report(Unknown Source) ~[?:1.8.0_121]
    	at java.util.concurrent.FutureTask.get(Unknown Source) ~[?:1.8.0_121]
    	at net.minecraft.util.Util.runTask(Util.java:54) [Util.class:?]
    	at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1161) [Minecraft.class:?]
    	at net.minecraft.client.Minecraft.run(Minecraft.java:436) [Minecraft.class:?]
    	at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?]
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_121]
    	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
    	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_121]
    	at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]
    	at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_121]
    	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
    	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_121]
    	at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
    	at GradleStart.main(GradleStart.java:26) [start/:?]
    Caused by: java.lang.NullPointerException
    	at net.minecraft.client.audio.PositionedSoundRecord.<init>(PositionedSoundRecord.java:45) ~[PositionedSoundRecord.class:?]
    	at net.minecraft.client.audio.PositionedSoundRecord.<init>(PositionedSoundRecord.java:40) ~[PositionedSoundRecord.class:?]
    	at net.minecraft.client.multiplayer.WorldClient.playSound(WorldClient.java:509) ~[WorldClient.class:?]
    	at net.minecraft.client.multiplayer.WorldClient.playSound(WorldClient.java:497) ~[WorldClient.class:?]
    	at net.minecraft.client.network.NetHandlerPlayClient.handleSoundEffect(NetHandlerPlayClient.java:1828) ~[NetHandlerPlayClient.class:?]
    	at net.minecraft.network.play.server.SPacketSoundEffect.processPacket(SPacketSoundEffect.java:78) ~[SPacketSoundEffect.class:?]
    	at net.minecraft.network.play.server.SPacketSoundEffect.processPacket(SPacketSoundEffect.java:13) ~[SPacketSoundEffect.class:?]
    	at net.minecraft.network.PacketThreadUtil$1.run(PacketThreadUtil.java:21) ~[PacketThreadUtil$1.class:?]
    	at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) ~[?:1.8.0_121]
    	at java.util.concurrent.FutureTask.run(Unknown Source) ~[?:1.8.0_121]
    	at net.minecraft.util.Util.runTask(Util.java:53) ~[Util.class:?]
    	... 15 more
    [17:48:46] [main/FATAL]: Error executing task
    java.util.concurrent.ExecutionException: java.lang.NullPointerException
    	at java.util.concurrent.FutureTask.report(Unknown Source) ~[?:1.8.0_121]
    	at java.util.concurrent.FutureTask.get(Unknown Source) ~[?:1.8.0_121]
    	at net.minecraft.util.Util.runTask(Util.java:54) [Util.class:?]
    	at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1161) [Minecraft.class:?]
    	at net.minecraft.client.Minecraft.run(Minecraft.java:436) [Minecraft.class:?]
    	at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?]
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_121]
    	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
    	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_121]
    	at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]
    	at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_121]
    	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
    	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_121]
    	at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
    	at GradleStart.main(GradleStart.java:26) [start/:?]
    Caused by: java.lang.NullPointerException
    	at net.minecraft.client.audio.PositionedSoundRecord.<init>(PositionedSoundRecord.java:45) ~[PositionedSoundRecord.class:?]
    	at net.minecraft.client.audio.PositionedSoundRecord.<init>(PositionedSoundRecord.java:40) ~[PositionedSoundRecord.class:?]
    	at net.minecraft.client.multiplayer.WorldClient.playSound(WorldClient.java:509) ~[WorldClient.class:?]
    	at net.minecraft.client.multiplayer.WorldClient.playSound(WorldClient.java:497) ~[WorldClient.class:?]
    	at net.minecraft.client.network.NetHandlerPlayClient.handleSoundEffect(NetHandlerPlayClient.java:1828) ~[NetHandlerPlayClient.class:?]
    	at net.minecraft.network.play.server.SPacketSoundEffect.processPacket(SPacketSoundEffect.java:78) ~[SPacketSoundEffect.class:?]
    	at net.minecraft.network.play.server.SPacketSoundEffect.processPacket(SPacketSoundEffect.java:13) ~[SPacketSoundEffect.class:?]
    	at net.minecraft.network.PacketThreadUtil$1.run(PacketThreadUtil.java:21) ~[PacketThreadUtil$1.class:?]
    	at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) ~[?:1.8.0_121]
    	at java.util.concurrent.FutureTask.run(Unknown Source) ~[?:1.8.0_121]
    	at net.minecraft.util.Util.runTask(Util.java:53) ~[Util.class:?]
    	... 15 more
    [17:48:47] [main/FATAL]: Error executing task
    java.util.concurrent.ExecutionException: java.lang.NullPointerException
    	at java.util.concurrent.FutureTask.report(Unknown Source) ~[?:1.8.0_121]
    	at java.util.concurrent.FutureTask.get(Unknown Source) ~[?:1.8.0_121]
    	at net.minecraft.util.Util.runTask(Util.java:54) [Util.class:?]
    	at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1161) [Minecraft.class:?]
    	at net.minecraft.client.Minecraft.run(Minecraft.java:436) [Minecraft.class:?]
    	at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?]
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_121]
    	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
    	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_121]
    	at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]
    	at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_121]
    	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
    	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_121]
    	at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
    	at GradleStart.main(GradleStart.java:26) [start/:?]
    Caused by: java.lang.NullPointerException
    	at net.minecraft.client.audio.PositionedSoundRecord.<init>(PositionedSoundRecord.java:45) ~[PositionedSoundRecord.class:?]
    	at net.minecraft.client.audio.PositionedSoundRecord.<init>(PositionedSoundRecord.java:40) ~[PositionedSoundRecord.class:?]
    	at net.minecraft.client.multiplayer.WorldClient.playSound(WorldClient.java:509) ~[WorldClient.class:?]
    	at net.minecraft.client.multiplayer.WorldClient.playSound(WorldClient.java:497) ~[WorldClient.class:?]
    	at net.minecraft.client.network.NetHandlerPlayClient.handleSoundEffect(NetHandlerPlayClient.java:1828) ~[NetHandlerPlayClient.class:?]
    	at net.minecraft.network.play.server.SPacketSoundEffect.processPacket(SPacketSoundEffect.java:78) ~[SPacketSoundEffect.class:?]
    	at net.minecraft.network.play.server.SPacketSoundEffect.processPacket(SPacketSoundEffect.java:13) ~[SPacketSoundEffect.class:?]
    	at net.minecraft.network.PacketThreadUtil$1.run(PacketThreadUtil.java:21) ~[PacketThreadUtil$1.class:?]
    	at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) ~[?:1.8.0_121]
    	at java.util.concurrent.FutureTask.run(Unknown Source) ~[?:1.8.0_121]
    	at net.minecraft.util.Util.runTask(Util.java:53) ~[Util.class:?]
    	... 15 more

    The server gives no errors whatsoever and my code is not referenced in the stacktrace.

    Any ideas?

    This is my sound code on my mob:

    @Override
    protected SoundEvent getAmbientSound()
    {
    	return SoundRegistry.grump;
    }

    grump being a regular SoundEvent.

     

    EDIT: PositionedSoundRecord contains this as line 43-46:

    43 private PositionedSoundRecord(SoundEvent soundIn, SoundCategory categoryIn, float volumeIn, float pitchIn, boolean repeatIn, int  repeatDelayIn, ISound.AttenuationType attenuationTypeIn, float xIn, float yIn, float zIn)
    44 {
    45         this(soundIn.getSoundName(), categoryIn, volumeIn, pitchIn, repeatIn, repeatDelayIn, attenuationTypeIn, xIn, yIn, zIn);
    46 }

    Line 40 is a constructor pointing to this one.

    From my understand one of the constructing values are null creating this error. I just cannot understand this. Sound should work normally!!!

    This is a sound in my sounds.json(pointed to by the SoundEvent via ResourceLocation, but I know that works, don't worry about it)

    "grump": {
            "replace": false,
            "category": "entity",
            "sounds": [
                "derpcats:grump"
            ]
    },

     

  22. [1.12.2] Opening a folder with GUI, like "Open Resource Folder" button

    in Modder Support

    Posted September 19, 2017 · Edited September 19, 2017 by hiotewdew
    Vagueness


    I can't figure out how Minecraft does this. I know I CAN do it since Minecraft itself does it. Anyone know?

    EDIT: I have a GUI with buttons, just need the method to call. Sorry for being vague.

  23. [1.12.1] Button will not show in Pause Menu

    in Modder Support

    Posted September 16, 2017


    Just now, Kokkie said:

    What happens when you use GuiButtonExt instead of GuiButton?

    same thing, i tried GuiButtonExt.

  24. [1.12.1] Button will not show in Pause Menu

    in Modder Support

    Posted September 16, 2017


    I've registered my Event Handler and it does print "#!#" as expected but the button just isn't there.

    Here's my event class:

    public class EventHandler {
    
    	@SubscribeEvent
    	public void onGuiInit(InitGuiEvent.Pre event) {
    		if(event.getGui() instanceof GuiIngameMenu) { // Make sure GUI is Escape menu
    			System.out.println("#!#");
    			GuiButton button = new GuiButton(43, Minecraft.getMinecraft().displayWidth / 4, Minecraft.getMinecraft().displayHeight / 4, "Music");
    			event.getButtonList().add(button);
    		}
    	}
    	
    	@SubscribeEvent
    	public void onGuiActionPerformed(ActionPerformedEvent event) {
    		if(event.getGui() instanceof GuiIngameMenu && event.getButton().id == 43) { //Confirm my button was pressed
    			//Open new GUI here
    		}
    	}
    
    }

    Yet when I open it up and hit esc, it prints #!# but fails to show any button in existence.

     

  25. Using "config" button in Mods menu

    in Modder Support

    Posted May 27, 2017


    14 hours ago, V0idWa1k3r said:

    Here is a tutorial. It is a bit outdated but should work for the most part.

    Apart from that forge itself contains an example.

    Or you can see the example for JEI - mod, factory and gui

     

    Thank you! I got it working.

  • Prev
  • 1
  • 2
  • 3
  • 4
  • 5
  • Next
  • Page 4 of 5  
  • All Activity
  • Home
  • hiotewdew
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community