Jump to content

Recommended Posts

Posted

Hello everyone and I've been tinkering...trying to figure out the problem

Thing is ...i got to render my custom furnace in my inventory and i can see gui and slots are working just fine...and bug that i encountered is when i place coal down and my ore...

Block turns to Same block with number 0 while inventory is open...items is not created...1 coal is used...and items will not appear on out slot.

and most annying thing while i did test...is when i do that...as soon i put 2 items into respective slots....my machine turns into BLOCK locking vanilla furnace with no gui...just as ordinary block.

 

Here is tileEnity:

http://pastebin.com/2BQQexEH

 

GuiHandler:

http://pastebin.com/4LvdWMwm

 

Container:

http://pastebin.com/Ki1aJZ3W

 

Block:

http://pastebin.com/U9LmaRcq

 

 

In Main where is preinit, init, and postinit.

Gui have been registered as GameRegistry.registerTileEntity(TileEntityGrinder.class, "TileEntityGrinder"); in Init Section.

 

Forge Version is 11.14.3.1487

Posted

((BlockFurnace) BlockList.GrinderOn).setState(this.isBurning(), this.worldObj, this.pos);

 

now it crashes and here is crash log

 

---- Minecraft Crash Report ----

// Don't do that.

 

Time: 7/14/15 8:03 PM

Description: Ticking block entity

 

java.lang.ClassCastException: com.expansion.blocks.BlockMachineGrinder cannot be cast to net.minecraft.block.BlockFurnace

at com.expansion.tileentity.TileEntityGrinder.update(TileEntityGrinder.java:269)

at net.minecraft.world.World.updateEntities(World.java:1879)

at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:587)

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

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

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

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

at java.lang.Thread.run(Unknown Source)

 

 

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

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

 

-- Head --

Stacktrace:

at com.expansion.tileentity.TileEntityGrinder.update(TileEntityGrinder.java:269)

 

-- Block entity being ticked --

Details:

Name: TileEntityGrinder // com.expansion.tileentity.TileEntityGrinder

Block type: ID #207 (tile.GrinderOff // com.expansion.blocks.BlockMachineGrinder)

Block data value: 2 / 0x2 / 0b0010

Block location: World: (-215,87,240), Chunk: (at 9,5,0 in -14,15; contains blocks -224,0,240 to -209,255,255), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)

Actual block type: ID #207 (tile.GrinderOff // com.expansion.blocks.BlockMachineGrinder)

Actual block data value: 2 / 0x2 / 0b0010

Stacktrace:

at net.minecraft.world.World.updateEntities(World.java:1879)

at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:587)

 

-- Affected level --

Details:

Level name: New World

All players: 1 total; [EntityPlayerMP['Player714'/301, l='New World', x=-214.63, y=87.17, z=237.95]]

Chunk stats: ServerChunkCache: 625 Drop: 0

Level seed: 675717299778829591

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

Level generator options:

Level spawn location: -208.00,64.00,248.00 - World: (-208,64,248), Chunk: (at 0,4,8 in -13,15; contains blocks -208,0,240 to -193,255,255), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)

Level time: 77868 game time, 77868 day time

Level dimension: 0

Level storage version: 0x04ABD - Anvil

Level weather: Rain time: 11444 (now: true), thunder time: 92610 (now: false)

Level game mode: Game mode: survival (ID 0). Hardcore: false. Cheats: true

Stacktrace:

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

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

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

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

at java.lang.Thread.run(Unknown Source)

 

-- System Details --

Details:

Minecraft Version: 1.8

Operating System: Windows 8.1 (amd64) version 6.3

Java Version: 1.8.0_45, Oracle Corporation

Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation

Memory: 833048920 bytes (794 MB) / 1056309248 bytes (1007 MB) up to 1056309248 bytes (1007 MB)

JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M

IntCache: cache: 0, tcache: 0, allocated: 13, tallocated: 95

FML: MCP v9.10 FML v8.0.99.99 Minecraft Forge 11.14.3.1487 4 mods loaded, 4 mods active

States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored

UCHIJAAAA mcp{9.05} [Minecraft Coder Pack] (minecraft.jar)

UCHIJAAAA FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.8-11.14.3.1487.jar)

UCHIJAAAA Forge{11.14.3.1487} [Minecraft Forge] (forgeSrc-1.8-11.14.3.1487.jar)

UCHIJAAAA expansion{Alpha 0.0.5} [Expansion: Overhaul] (bin)

Loaded coremods (and transformers):

GL info: ~~ERROR~~ RuntimeException: No OpenGL context found in the current thread.

Profiler Position: N/A (disabled)

Player Count: 1 / 8; [EntityPlayerMP['Player714'/301, l='New World', x=-214.63, y=87.17, z=237.95]]

Type: Integrated Server (map_client.txt)

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

 

Posted

I do read the code and i can see and read errors but i seek some assistance.

If you are frustrated and do not wanna say something helpful that" learn Java" or pointing out errors.

Thing is no one is born alive and learned on it's own some programming language.

If you do not have to say/point to my error...I would ask you nicely not to post anything.

Guest
This topic is now closed to further replies.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • logs too big for one pastebin https://pastebin.com/ZjUGHu3u  https://pastebin.com/RqCUZf3X  https://pastebin.com/6ZPS99nD
    • You probably used jd-gui to open it, didn't you? Nothing wrong with that, I also made that mistake, except that Notch was a smart guy and he obfuscated the code. That's why you only see files called "a", "b", "c" and then a file that combines them all. As I said, use RetroMCP to deobfuscate the code so that you will 100% understand it and be able to navigate it.
    • Decompiling minecraft indev, infdev, alpha, beta or whichever legacy version is really easy. I'm not a plug, I just also got interested in modding legacy versions (Infdev to be specific). Use https://github.com/MCPHackers/RetroMCP-Java Once you install their client and the Zulu Architecture that they say they recommend (or use your own Java). I encountered some problems, so I run it with: "java -jar RetroMCP-Java-CLI.jar". You should run it in a seperate folder (not in downloads), otherwise the files and folders will go all over the place. How to use RetroMCP: Type setup (every time you want change version), copy-paste the version number from their list (they support indev), write "decompile" and done! The code will now be deobfuscated and filenames will be normal, instead of "a", "b" and "c"! Hope I helped you, but I don't expect you to reply, as this discussion is 9 years old! What a piece of history!  
    • I know that this may be a basic question, but I am very new to modding. I am trying to have it so that I can create modified Vanilla loot tables that use a custom enchantment as a condition (i.e. enchantment present = item). However, I am having trouble trying to implement this; the LootItemRandomChanceWithEnchantedBonusCondition constructor needs a Holder<Enchantment> and I am unable to use the getOrThrow() method on the custom enchantment declared in my mod's enchantments class. Here is what I have so far in the GLM:   protected void start(HolderLookup.Provider registries) { HolderLookup.RegistryLookup<Enchantment> registrylookup = registries.lookupOrThrow(Registries.ENCHANTMENT); LootItemRandomChanceWithEnchantedBonusCondition lootItemRandomChanceWithEnchantedBonusCondition = new LootItemRandomChanceWithEnchantedBonusCondition(0.0f, LevelBasedValue.perLevel(0.07f), registrylookup.getOrThrow(*enchantment here*)); this.add("nebu_from_deepslate", new AddItemModifier(new LootItemCondition[]{ LootItemBlockStatePropertyCondition.hasBlockStateProperties(Blocks.DEEPSLATE).build(), LootItemRandomChanceCondition.randomChance(0.25f).build(), lootItemRandomChanceWithEnchantedBonusCondition }, OrichalcumItems.NEBU.get())); }   Inserting Enchantments.[vanilla enchantment here] actually works but trying to declare an enchantment from my custom enchantments class as [mod enchantment class].[custom enchantment] does not work even though they are both a ResourceKey and are registered in Registries.ENCHANTMENT. Basically, how would I go about making it so that a custom enchantment declared as a ResourceKey<Enchantment> of value ResourceKey.create(Registries.ENCHANTMENT, ResourceLocation.fromNamespaceAndPath([modid], [name])), declared in a seperate enchantments class, can be used in the LootItemRandomChanceWithEnchantedBonusCondition constructor as a Holder? I can't use getOrThrow() because there is no level or block entity/entity in the start() method and it is running as datagen. It's driving me nuts.
  • Topics

×
×
  • Create New...

Important Information

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