Jump to content

Flurry

Members
  • Posts

    48
  • Joined

  • Last visited

Posts posted by Flurry

  1. So, I was watching some videos about how to do the Guis with blocks mainly with Containers & Screens, once loading up my game, and click on my block, I noticed that the gui was shown for a split second until it crashed my game.

     

    The video I was watching - 
    https://www.youtube.com/watch?v=GsV_pKkE1mo&list=PLmaTwVFUUXiBKYYSyrv_uPPoPZtEsCBVJ&index=5&t=1692s

     

    My Container Class -

    https://sourceb.in/9568761a4b.java

     

    My Screen Class -

    https://sourceb.in/712ae79b4c.java

     

    My error - 

     
     
     
    1
    Spoiler

    ---- Minecraft Crash Report ----

    // Ooh. Shiny.

     

    Time: 11/21/19 4:35 PM

    Description: Ticking entity

     

    java.lang.NullPointerException: Ticking entity

    at pichuminer.blocks.TestBlockContainer.canInteractWith(TestBlockContainer.java:37) ~[?:?] {}

    at net.minecraft.entity.player.ServerPlayerEntity.tick(ServerPlayerEntity.java:322) ~[?:?] {pl:accesstransformer:B}

    at net.minecraft.world.server.ServerWorld.updateEntity(ServerWorld.java:587) ~[?:?] {}

    at net.minecraft.world.World.func_217390_a(World.java:684) ~[?:?] {pl:accesstransformer:B}

    at net.minecraft.world.server.ServerWorld.tick(ServerWorld.java:394) ~[?:?] {}

    at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:829) ~[?:?] {pl:accesstransformer:B}

    at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:764) ~[?:?] {pl:accesstransformer:B}

    at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:112) ~[?:?] {pl:runtimedistcleaner:A}

    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:622) [?:?] {pl:accesstransformer:B}

    at java.lang.Thread.run(Thread.java:748) [?:1.8.0_222] {}

     

     

    A detailed walkthrough of the error, its code path and all known details is as follows:

    ---------------------------------------------------------------------------------------

     

    -- Head --

    Thread: Server thread

    Stacktrace:

    at pichuminer.blocks.TestBlockContainer.canInteractWith(TestBlockContainer.java:37)

    at net.minecraft.entity.player.ServerPlayerEntity.tick(ServerPlayerEntity.java:322)

    at net.minecraft.world.server.ServerWorld.updateEntity(ServerWorld.java:587)

     

    -- Entity being ticked --

    Details:

    Entity Type: minecraft:player (net.minecraft.entity.player.ServerPlayerEntity)

    Entity ID: 167

    Entity Name: Dev

    Entity's Exact location: 251.10, 71.00, 210.27

    Entity's Block location: World: (251,71,210), Chunk: (at 11,4,2 in 15,13; contains blocks 240,0,208 to 255,255,223), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)

    Entity's Momentum: 0.00, -0.08, 0.00

    Entity's Passengers: []

    Entity's Vehicle: ~~ERROR~~ NullPointerException: null

    Stacktrace:

    at net.minecraft.world.World.func_217390_a(World.java:684)

    at net.minecraft.world.server.ServerWorld.tick(ServerWorld.java:394)

     

    -- Affected level --

    Details:

    All players: 1 total; [ServerPlayerEntity['Dev'/167, l='New World', x=251.10, y=71.00, z=210.27]]

    Chunk stats: ServerChunkCache: 2176

    Level dimension: DimensionType{minecraft:overworld}

    Level name: New World

    Level seed: 2129524378310876350

    Level generator: ID 00 - default, ver 1. Features enabled: true

    Level generator options: {}

    Level spawn location: World: (256,70,208), Chunk: (at 0,4,0 in 16,13; contains blocks 256,0,208 to 271,255,223), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)

    Level time: 17992 game time, 7220 day time

    Level storage version: 0x04ABD - Anvil

    Level weather: Rain time: 15293 (now: false), thunder time: 93173 (now: false)

    Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: true

    Stacktrace:

    at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:829)

    at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:764)

    at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:112)

    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:622)

    at java.lang.Thread.run(Thread.java:748)

     

    -- System Details --

    Details:

    Minecraft Version: 1.14.4

    Minecraft Version ID: 1.14.4

    Operating System: Mac OS X (x86_64) version 10.15.1

    Java Version: 1.8.0_222, AdoptOpenJDK

    Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), AdoptOpenJDK

    Memory: 363470112 bytes (346 MB) / 1060634624 bytes (1011 MB) up to 1908932608 bytes (1820 MB)

    CPUs: 4

    JVM Flags: 1 total; -Xss1M

    ModLauncher: 3.2.0+60+b86c1d4

    ModLauncher launch target: fmluserdevclient

    ModLauncher naming: mcp

    ModLauncher services: 

    /eventbus-1.0.0-service.jar eventbus PLUGINSERVICE 

    /forge-1.14.4-28.1.0_mapped_snapshot_20190719-1.14.3-launcher.jar object_holder_definalize PLUGINSERVICE 

    /forge-1.14.4-28.1.0_mapped_snapshot_20190719-1.14.3-launcher.jar runtime_enum_extender PLUGINSERVICE 

    /accesstransformers-1.0.0-shadowed.jar accesstransformer PLUGINSERVICE 

    /forge-1.14.4-28.1.0_mapped_snapshot_20190719-1.14.3-launcher.jar capability_inject_definalize PLUGINSERVICE 

    /forge-1.14.4-28.1.0_mapped_snapshot_20190719-1.14.3-launcher.jar runtimedistcleaner PLUGINSERVICE 

    /forge-1.14.4-28.1.0_mapped_snapshot_20190719-1.14.3-launcher.jar fml TRANSFORMATIONSERVICE 

    FML: 28.1

    Forge: net.minecraftforge:28.1.0

    FML Language Providers: 

    javafml@28.1

    minecraft@1

    Mod List: 

    forge-1.14.4-28.1.0_mapped_snapshot_20190719-1.14.3.jar Forge {forge@28.1.0 DONE}

    main PichuMod {pichumod@0.1 DONE}

    client-extra.jar Minecraft {minecraft@1.14.4 DONE}

    Player Count: 1 / 8; [ServerPlayerEntity['Dev'/167, l='New World', x=251.10, y=71.00, z=210.27]]

    Data Packs: vanilla, mod:pichumod, mod:forge

    Type: Integrated Server (map_client.txt)

    Is Modded: Definitely; Client brand changed to 'forge'

     

  2. On 10/12/2019 at 3:19 PM, Animefan8888 said:

    What more do you need explained?

    Hi! I know I have mentioned before I wouldn't need any further explanation, but I need some assistance with your explanations. 

     

    1 - Can you give a small class example for the Minecraft#displayScreen & the other things you've mentioned.

    2 - Any videos/pictures that could assist me with my question?

    3 - Sorry if the first one seemed a bit bossy, I just am new to the screen creations.

  3. BlockList.testing_block = new Block(Block.Properties.create(Material.ANVIL).hardnessAndResistance(2.0f, 3.0f).lightValue(2).sound(SoundType.ANVIL)).getBlock().setRegistryName(location("testing_block"))

     

    The line that I have provided up here I wanted it to be a class instead of a JSON file. One of my blocks outlines and I wanted to add the CUTOUT method towards the model itself.

    Am I able to replace the testing_block with the class I created for the block?

    Example

    BlockList.testing_block = new Block(Block.Properties.create(Material.ANVIL).hardnessAndResistance(2.0f, 3.0f).lightValue(2).sound(SoundType.ANVIL)).getBlock().setRegistryName(location(TestingBlockClass))

    TestingBlockClass being the class, or where it's the location is at.

  4. On 7/18/2019 at 11:07 PM, ShadowG79023 said:

    so i saw some youtubers doing a minecraft roleplay and they were sleeping on stone and other blocks does anyone know how they did this because i cant find anything about this

    There's a forum discussing how to make them sit on there, apparently, you create an invisible entity with the correct location and rotation, then have the player mount it (sit on top of it).

    I believe if you wanted it to sleep you'd do the exact same thing.

  5. On 7/25/2019 at 2:13 PM, d0a1v2i3d said:

    i installed multimc to hawe fabric 1.14.4 and forge 1.14.4 cooperating but in multimc there is not yet the install forge for 1.14.4 button available

    is there way how to install it manualy

    MultiMC is something created by the creator of the original launcher (for the default Minecraft), it doesn't combine the versions together.

    It's just useful in case if you can't get those versions manually.

  6.  
     
     
     
     
     
     
    5
    On 8/20/2019 at 2:32 PM, OsHeaven said:

    it would be nice to have this by default and "tag": "forge:shears" instead of "item": "minecraft:shears" in all loot_tables (cobweb, leaves, grass), so it is easier to use custom shears on custom leaves etc...

    if someone add new shears, they have to replace all the loot_tables and if you Play with custom shears and a mod with new trees, you have to edit all custom leaves loot_tables manually...

    You got to remember, forge doesn't have everything replaced into their own words nor resources. Sure I agree with you in this, but it mainly tells the user(s) that it's a default Minecraft item with the assets domain.

    Also, it'll take some time to replace some of it just with their own domain, but I like it.

  7. On 5/31/2019 at 3:19 AM, DavidM said:

    Yes. .DS_Store updates every time a file/sub directory name changes, a file/sub directory is added/deleted, or a file is edited.

    When you create a folder or file in eclipse, it seems that the action will not trigger a .DS_Store update.

    Creating a folder via Finder will cause an update.

     

    There is probably a way to disable the generation of DSstore via a command, but I don’t know it. Try google it up.

     

    Apple do patronize its user. To illustrate, you cannot create a new text file in Mac OS via right click because Apple thinks “adding the option to create an empty text file might confuse the user; they should use tools they are working with, like Pages or Keynote, to create new files”.

    I also have a problem with this, even though this may be a little back I wish I could get some assistance.

    net.minecraft.util.ResourceLocationException: Non [a-z0-9_.-] character in namespace of location: .DS_Store:sounds.json

  8. 24 minutes ago, Draco18s said:

    Lets follow the logic here.

     

    "I need to override this method in my block class in order to get the behavior I want."

     

    Now answer the question, "Do I need my own block class?"

     

    Yes:

      Reveal hidden contents

    Of course, where else would you put the overridden method?

    No:

      Reveal hidden contents

    I'm open to suggestions on how you're going to accomplish this. Good luck, have fun!

     

    Thank you so much!
    One more thing before I hit the road (is that how people say it?)

     

    "1": "assets:blocks/hardened_clay_stained_silver",

    "2": "assets:blocks/hardened_clay_stained_purple"

     

    These are the textures I selected for the certain model I wanted, (changed up the colors cause why not)

    But yet they won't go in, is it because I selected some of the default textures from Minecraft client itself or?

    If so, what do I put to resolve this issue?

  9. 13 minutes ago, Draco18s said:

    Generally speaking, you can only override a method in a class that is, itself, a subclass of the class where the method to be overridden is found. So in order to override a method in the Block class you have to do so in a subclass that extends Block.

     

    You would know this if you had any knowledge of object oriented programming already. A thing that we here at Forge, don't teach, because there's already a billion other resources for it, like Stack Overflow. All we help people with is finding the right method in Minecraft or Forge that does the thing that they need. We've done that, we've told you to override getRenderLayer, what to return, and where it goes.

     

    (Oh, by the way, if you show up at Stack Overflow and post this exact question, I'll see it and almost certainly vote to close it for being unclear or too broad or looking for off-site resources)

    Do you think I should make a block class for the specific block that I'm wanting to be put into the game itself? Or have a BlockList?

    (I forgot to mention this.)

  10. The image that I have provided shows the Blockbench model I have loaded in, I don't know why it's showing an empty space underneath, also I wanted to know how to set an icon for the certain block. I have a BlockItem + Block itself to make it work.

     

    Does anybody have solutions towards both of these?

    (P.S I watched Harry Talks tutorials, but I tried to make it from block bench instead of other resources.)

    Screen Shot 2019-10-13 at 7.02.53 PM.png

×
×
  • Create New...

Important Information

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