Jump to content

[1.7.10]Custom Seed Crashing Minecraft


SuperSmashKart

Recommended Posts

Hello! I'm trying to make a custom crop that is the clone of the wheat crop. Anytime I try to plant the seed on farmland, minecraft just shuts down. This problems only occurs when I have the seed planting the custom plant, but when I have it planting wheat, the seed works fine.

 

Error

 

---- Minecraft Crash Report ----
// This doesn't make any sense!

Time: 12/8/14 12:43 AM
Description: Unexpected error

java.lang.NullPointerException: Unexpected error
at net.minecraft.world.chunk.storage.ExtendedBlockStorage.func_150818_a(ExtendedBlockStorage.java:86)
at net.minecraft.world.chunk.Chunk.func_150807_a(Chunk.java:653)
at net.minecraft.world.World.setBlock(World.java:519)
at net.minecraft.world.World.setBlock(World.java:681)
at net.minecraft.item.ItemSeeds.onItemUse(ItemSeeds.java:41)
at net.minecraft.item.ItemStack.tryPlaceItemIntoWorld(ItemStack.java:143)
at net.minecraft.client.multiplayer.PlayerControllerMP.onPlayerRightClick(PlayerControllerMP.java:403)
at net.minecraft.client.Minecraft.func_147121_ag(Minecraft.java:1518)
at net.minecraft.client.Minecraft.runTick(Minecraft.java:2033)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1028)
at net.minecraft.client.Minecraft.run(Minecraft.java:951)
at net.minecraft.client.main.Main.main(Main.java:164)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:78)
at GradleStart.main(GradleStart.java:45)


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

-- Head --
Stacktrace:
at net.minecraft.world.chunk.storage.ExtendedBlockStorage.func_150818_a(ExtendedBlockStorage.java:86)
at net.minecraft.world.chunk.Chunk.func_150807_a(Chunk.java:653)
at net.minecraft.world.World.setBlock(World.java:519)
at net.minecraft.world.World.setBlock(World.java:681)
at net.minecraft.item.ItemSeeds.onItemUse(ItemSeeds.java:41)
at net.minecraft.item.ItemStack.tryPlaceItemIntoWorld(ItemStack.java:143)
at net.minecraft.client.multiplayer.PlayerControllerMP.onPlayerRightClick(PlayerControllerMP.java:403)
at net.minecraft.client.Minecraft.func_147121_ag(Minecraft.java:1518)

-- Affected level --
Details:
Level name: MpServer
All players: 1 total; [EntityClientPlayerMP['Player398'/523, l='MpServer', x=303.10, y=64.62, z=450.20]]
Chunk stats: MultiplayerChunkCache: 575, 575
Level seed: 0
Level generator: ID 00 - default, ver 1. Features enabled: false
Level generator options: 
Level spawn location: World: (44,64,248), Chunk: (at 12,4,8 in 2,15; contains blocks 32,0,240 to 47,255,255), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
Level time: 1259 game time, 1259 day time
Level dimension: 0
Level storage version: 0x00000 - Unknown?
Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false
Forced entities: 117 total; [EntityPig['Pig'/5500, l='MpServer', x=235.50, y=77.00, z=400.50], EntityPig['Pig'/5497, l='MpServer', x=236.22, y=81.00, z=399.50], EntityPig['Pig'/5498, l='MpServer', x=237.81, y=81.00, z=399.50], EntityPig['Pig'/5499, l='MpServer', x=238.50, y=80.00, z=400.50], EntityPig['Pig'/7607, l='MpServer', x=283.50, y=76.00, z=492.50], EntityPig['Pig'/7606, l='MpServer', x=281.50, y=70.00, z=494.50], EntityPig['Pig'/7609, l='MpServer', x=286.81, y=63.00, z=488.53], EntityPig['Pig'/7608, l='MpServer', x=285.59, y=70.00, z=493.50], EntityBat['Bat'/10898, l='MpServer', x=321.31, y=42.78, z=426.61], EntityBat['Bat'/10896, l='MpServer', x=313.52, y=40.62, z=406.94], EntityBat['Bat'/10897, l='MpServer', x=322.70, y=43.21, z=424.55], EntityBat['Bat'/10895, l='MpServer', x=312.54, y=45.90, z=429.59], EntitySkeleton['Skeleton'/10864, l='MpServer', x=324.50, y=56.00, z=455.50], EntityCreeper['Creeper'/10866, l='MpServer', x=262.50, y=43.00, z=491.50], EntityPig['Pig'/6457, l='MpServer', x=313.47, y=64.00, z=421.47], EntityPig['Pig'/6458, l='MpServer', x=313.06, y=68.00, z=420.81], EntityPig['Pig'/6459, l='MpServer', x=316.16, y=62.03, z=421.47], EntityPig['Pig'/6460, l='MpServer', x=313.47, y=64.00, z=421.47], EntityCreeper['Creeper'/9912, l='MpServer', x=256.50, y=33.00, z=435.50], EntityCreeper['Creeper'/10862, l='MpServer', x=234.50, y=19.00, z=479.50], EntitySkeleton['Skeleton'/10863, l='MpServer', x=323.50, y=56.00, z=456.50], EntityCreeper['Creeper'/9861, l='MpServer', x=255.50, y=43.00, z=385.50], EntityZombie['Zombie'/9860, l='MpServer', x=255.50, y=43.00, z=389.50], EntitySkeleton['Skeleton'/10841, l='MpServer', x=232.50, y=14.00, z=432.50], EntityCreeper['Creeper'/9865, l='MpServer', x=236.50, y=81.00, z=388.50], EntityBat['Bat'/10826, l='MpServer', x=332.25, y=16.00, z=486.75], EntityBat['Bat'/10825, l='MpServer', x=329.34, y=14.68, z=483.32], EntityBat['Bat'/9952, l='MpServer', x=259.72, y=39.85, z=435.10], EntityCreeper['Creeper'/10801, l='MpServer', x=330.50, y=37.00, z=511.50], EntityBat['Bat'/10757, l='MpServer', x=340.56, y=58.00, z=476.66], EntityBat['Bat'/9950, l='MpServer', x=260.45, y=39.00, z=439.44], EntitySquid['Squid'/11209, l='MpServer', x=340.02, y=48.92, z=436.13], EntitySquid['Squid'/11208, l='MpServer', x=339.15, y=49.20, z=439.39], EntitySquid['Squid'/11211, l='MpServer', x=340.26, y=50.09, z=432.84], EntitySquid['Squid'/11210, l='MpServer', x=333.77, y=50.38, z=434.98], EntitySquid['Squid'/11212, l='MpServer', x=337.92, y=49.94, z=433.90], EntitySquid['Squid'/11201, l='MpServer', x=344.79, y=49.77, z=442.72], EntitySquid['Squid'/11203, l='MpServer', x=342.97, y=49.32, z=447.69], EntitySquid['Squid'/11202, l='MpServer', x=341.65, y=50.36, z=444.53], EntitySquid['Squid'/11205, l='MpServer', x=343.69, y=48.20, z=439.56], EntitySquid['Squid'/11204, l='MpServer', x=338.34, y=50.38, z=443.89], EntitySquid['Squid'/11207, l='MpServer', x=343.92, y=50.37, z=441.55], EntitySquid['Squid'/11175, l='MpServer', x=343.79, y=51.87, z=416.47], EntitySquid['Squid'/11174, l='MpServer', x=344.72, y=52.37, z=419.51], EntitySquid['Squid'/11173, l='MpServer', x=345.74, y=52.37, z=420.59], EntitySquid['Squid'/11171, l='MpServer', x=353.40, y=51.14, z=409.47], EntitySquid['Squid'/11170, l='MpServer', x=352.74, y=52.16, z=416.76], EntitySquid['Squid'/11169, l='MpServer', x=353.64, y=52.31, z=415.39], EntitySquid['Squid'/11168, l='MpServer', x=354.21, y=51.79, z=410.82], EntitySquid['Squid'/11196, l='MpServer', x=359.60, y=57.75, z=461.09], EntitySquid['Squid'/11197, l='MpServer', x=361.98, y=58.28, z=463.74], EntitySquid['Squid'/11195, l='MpServer', x=366.71, y=58.88, z=456.63], EntitySquid['Squid'/11166, l='MpServer', x=349.22, y=51.39, z=415.21], EntitySquid['Squid'/11167, l='MpServer', x=349.34, y=52.31, z=414.79], EntityCreeper['Creeper'/10138, l='MpServer', x=277.50, y=28.00, z=448.50], EntitySkeleton['Skeleton'/10127, l='MpServer', x=319.56, y=43.00, z=422.97], EntityCow['Cow'/6260, l='MpServer', x=302.50, y=77.00, z=418.50], EntityCow['Cow'/6261, l='MpServer', x=300.50, y=77.00, z=418.50], EntityCow['Cow'/6258, l='MpServer', x=306.47, y=70.00, z=426.64], EntityCow['Cow'/6259, l='MpServer', x=313.91, y=74.00, z=413.97], EntityPig['Pig'/9128, l='MpServer', x=278.50, y=73.00, z=527.50], EntityPig['Pig'/9127, l='MpServer', x=275.81, y=74.00, z=523.50], EntityPig['Pig'/9126, l='MpServer', x=274.22, y=74.00, z=523.50], EntityPig['Pig'/9125, l='MpServer', x=275.50, y=74.00, z=525.50], EntityPig['Pig'/9123, l='MpServer', x=286.50, y=71.00, z=528.50], EntitySkeleton['Skeleton'/10185, l='MpServer', x=254.50, y=28.00, z=443.50], EntityCow['Cow'/5976, l='MpServer', x=271.50, y=77.00, z=394.50], EntityCow['Cow'/5977, l='MpServer', x=273.50, y=77.00, z=394.50], EntityPig['Pig'/5970, l='MpServer', x=270.78, y=78.00, z=399.41], EntityPig['Pig'/5971, l='MpServer', x=269.22, y=78.00, z=396.50], EntityCow['Cow'/5974, l='MpServer', x=270.50, y=77.00, z=400.97], EntityCow['Cow'/5975, l='MpServer', x=270.81, y=78.00, z=396.50], EntityPig['Pig'/5972, l='MpServer', x=269.19, y=78.00, z=398.19], EntityZombie['Zombie'/10449, l='MpServer', x=248.99, y=12.36, z=484.73], EntityPig['Pig'/5973, l='MpServer', x=274.91, y=77.00, z=400.19], EntityZombie['Zombie'/10473, l='MpServer', x=221.59, y=14.98, z=446.31], EntityChicken['Chicken'/5948, l='MpServer', x=263.50, y=80.00, z=388.50], EntityChicken['Chicken'/5949, l='MpServer', x=261.50, y=79.00, z=391.50], EntityChicken['Chicken'/5950, l='MpServer', x=269.44, y=77.00, z=392.47], EntityChicken['Chicken'/5947, l='MpServer', x=250.47, y=88.00, z=382.38], EntityClientPlayerMP['Player398'/523, l='MpServer', x=303.10, y=64.62, z=450.20], EntitySkeleton['Skeleton'/10359, l='MpServer', x=293.50, y=46.00, z=380.50], EntityZombie['Zombie'/10360, l='MpServer', x=292.50, y=46.00, z=378.50], EntityCreeper['Creeper'/10349, l='MpServer', x=264.50, y=33.00, z=391.50], EntityZombie['Zombie'/10269, l='MpServer', x=301.50, y=44.00, z=394.50], EntityZombie['Zombie'/10283, l='MpServer', x=267.50, y=42.00, z=493.50], EntitySkeleton['Skeleton'/10699, l='MpServer', x=224.50, y=46.00, z=402.50], EntitySkeleton['Skeleton'/10691, l='MpServer', x=290.47, y=27.00, z=457.31], EntityZombie['Zombie'/10690, l='MpServer', x=296.31, y=30.00, z=450.50], EntityPig['Pig'/5754, l='MpServer', x=236.50, y=82.00, z=449.50], EntityPig['Pig'/5755, l='MpServer', x=238.50, y=80.00, z=446.50], EntityPig['Pig'/5752, l='MpServer', x=233.50, y=89.00, z=450.50], EntityPig['Pig'/5753, l='MpServer', x=233.50, y=87.00, z=449.50], EntityEnderman['Enderman'/10630, l='MpServer', x=276.38, y=19.00, z=507.47], EntityCreeper['Creeper'/10642, l='MpServer', x=236.50, y=45.00, z=419.50], EntityCreeper['Creeper'/10643, l='MpServer', x=235.50, y=45.00, z=422.50], EntitySpider['Spider'/10571, l='MpServer', x=288.22, y=28.00, z=457.53], EntitySpider['Spider'/10597, l='MpServer', x=312.75, y=35.00, z=454.47], EntitySkeleton['Skeleton'/10595, l='MpServer', x=314.69, y=35.00, z=449.31], EntityBat['Bat'/10497, l='MpServer', x=259.40, y=41.00, z=491.52], EntityZombie['Zombie'/9695, l='MpServer', x=248.50, y=26.00, z=401.97], EntitySpider['Spider'/10515, l='MpServer', x=255.41, y=29.00, z=388.88], EntityMinecartChest['entity.MinecartChest.name'/5783, l='MpServer', x=235.50, y=24.50, z=463.50], EntityZombie['Zombie'/10514, l='MpServer', x=253.50, y=29.00, z=393.50], EntitySkeleton['Skeleton'/10517, l='MpServer', x=258.28, y=30.00, z=384.78], EntitySkeleton['Skeleton'/9665, l='MpServer', x=266.50, y=31.00, z=390.50], EntitySkeleton['Skeleton'/10516, l='MpServer', x=262.13, y=24.00, z=383.34], EntitySkeleton['Skeleton'/9664, l='MpServer', x=266.50, y=31.00, z=395.50], EntitySkeleton['Skeleton'/10518, l='MpServer', x=251.72, y=29.00, z=393.22], EntityCow['Cow'/5785, l='MpServer', x=242.78, y=82.00, z=463.78], EntityCow['Cow'/5784, l='MpServer', x=240.19, y=83.00, z=460.81], EntityCow['Cow'/5787, l='MpServer', x=236.94, y=84.00, z=461.09], EntityCow['Cow'/5786, l='MpServer', x=245.47, y=80.00, z=461.69], EntitySkeleton['Skeleton'/9713, l='MpServer', x=236.50, y=27.00, z=422.50], EntityBat['Bat'/10543, l='MpServer', x=322.03, y=41.31, z=427.75], EntityBat['Bat'/10546, l='MpServer', x=309.52, y=19.09, z=392.57], EntityBat['Bat'/10545, l='MpServer', x=315.75, y=18.00, z=392.25]]
Retry entities: 0 total; []
Server brand: fml,forge
Server type: Integrated singleplayer server
Stacktrace:
at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:415)
at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2555)
at net.minecraft.client.Minecraft.run(Minecraft.java:980)
at net.minecraft.client.main.Main.main(Main.java:164)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:78)
at GradleStart.main(GradleStart.java:45)

-- System Details --
Details:
Minecraft Version: 1.7.10
Operating System: Windows 7 (amd64) version 6.1
Java Version: 1.7.0_71, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 549469648 bytes (524 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
IntCache: cache: 1, tcache: 1, allocated: 12, tallocated: 94
FML: MCP v9.05 FML v7.10.85.1230 Minecraft Forge 10.13.2.1230 4 mods loaded, 4 mods active
mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
FML{7.10.85.1230} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.2.1230.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
Forge{10.13.2.1230} [Minecraft Forge] (forgeSrc-1.7.10-10.13.2.1230.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
tacocraft{0.1} [Tacocraft] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
Launched Version: 1.7.10
LWJGL: 2.9.1
OpenGL: GeForce 310M/PCIe/SSE2 GL version 3.3.0, NVIDIA Corporation
GL Caps: Using GL 1.3 multitexturing.
Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
Anisotropic filtering is supported and maximum anisotropy is 16.
Shaders are available because OpenGL 2.1 is supported.

Is Modded: Definitely; Client brand changed to 'fml,forge'
Type: Client (map_client.txt)
Resource Packs: []
Current Language: English (US)
Profiler Position: N/A (disabled)
Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Anisotropic Filtering: Off (1)

 

 

---- Minecraft Crash Report ----
// Don't be sad. I'll do better next time, I promise!

Time: 12/8/14 12:43 AM
Description: Ticking memory connection

java.lang.NullPointerException: Ticking memory connection
at net.minecraft.world.chunk.storage.ExtendedBlockStorage.func_150818_a(ExtendedBlockStorage.java:86)
at net.minecraft.world.chunk.Chunk.func_150807_a(Chunk.java:653)
at net.minecraft.world.World.setBlock(World.java:519)
at net.minecraft.world.World.setBlock(World.java:681)
at net.minecraft.item.ItemSeeds.onItemUse(ItemSeeds.java:41)
at net.minecraftforge.common.ForgeHooks.onPlaceItemIntoWorld(ForgeHooks.java:456)
at net.minecraft.item.ItemStack.tryPlaceItemIntoWorld(ItemStack.java:142)
at net.minecraft.server.management.ItemInWorldManager.activateBlockOrUseItem(ItemInWorldManager.java:422)
at net.minecraft.network.NetHandlerPlayServer.processPlayerBlockPlacement(NetHandlerPlayServer.java:593)
at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.processPacket(C08PacketPlayerBlockPlacement.java:74)
at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.processPacket(C08PacketPlayerBlockPlacement.java:122)
at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:241)
at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:182)
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:726)
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614)
at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485)
at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752)


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

-- Head --
Stacktrace:
at net.minecraft.world.chunk.storage.ExtendedBlockStorage.func_150818_a(ExtendedBlockStorage.java:86)
at net.minecraft.world.chunk.Chunk.func_150807_a(Chunk.java:653)
at net.minecraft.world.World.setBlock(World.java:519)
at net.minecraft.world.World.setBlock(World.java:681)
at net.minecraft.item.ItemSeeds.onItemUse(ItemSeeds.java:41)
at net.minecraftforge.common.ForgeHooks.onPlaceItemIntoWorld(ForgeHooks.java:456)
at net.minecraft.item.ItemStack.tryPlaceItemIntoWorld(ItemStack.java:142)
at net.minecraft.server.management.ItemInWorldManager.activateBlockOrUseItem(ItemInWorldManager.java:422)
at net.minecraft.network.NetHandlerPlayServer.processPlayerBlockPlacement(NetHandlerPlayServer.java:593)
at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.processPacket(C08PacketPlayerBlockPlacement.java:74)
at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.processPacket(C08PacketPlayerBlockPlacement.java:122)
at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:241)

-- Ticking connection --
Details:
Connection: net.minecraft.network.NetworkManager@2b63a2d3
Stacktrace:
at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:182)
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:726)
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614)
at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485)
at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752)

-- System Details --
Details:
Minecraft Version: 1.7.10
Operating System: Windows 7 (amd64) version 6.1
Java Version: 1.7.0_71, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 548617424 bytes (523 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
IntCache: cache: 1, tcache: 1, allocated: 12, tallocated: 94
FML: MCP v9.05 FML v7.10.85.1230 Minecraft Forge 10.13.2.1230 4 mods loaded, 4 mods active
mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
FML{7.10.85.1230} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.2.1230.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
Forge{10.13.2.1230} [Minecraft Forge] (forgeSrc-1.7.10-10.13.2.1230.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
tacocraft{0.1} [Tacocraft] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
Profiler Position: N/A (disabled)
Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Player Count: 1 / 8; [EntityPlayerMP['Player398'/523, l='playing', x=303.10, y=63.00, z=450.20]]
Type: Integrated Server (map_client.txt)
Is Modded: Definitely; Client brand changed to 'fml,forge'

 

 

The Code

 

 

package com.tacocraft.blocks;

import com.tacocraft.item.MItems;

import net.minecraft.block.BlockCrops;
import net.minecraft.init.Items;
import net.minecraft.item.Item;

public class LettuceCrop extends BlockCrops {



 protected Item func_149866_i()
    {
        return MItems.lettuceSeed;
    }

    protected Item func_149865_P()
    {
        return MItems.lettuce;
    }




}

 

 

 

package com.tacocraft.blocks;

import com.tacocraft.lib.RefStrings;

import cpw.mods.fml.common.registry.GameRegistry;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.creativetab.CreativeTabs;



public class MBlocks {

public static Block cheeeseBlock;
public static Block lettuceCrop;

public static void mainRegistry(){
	initializeBlock();
	registerBlock();
}



public static void initializeBlock(){
	cheeeseBlock = new CheBlock(Material.ground).setBlockName("cheeeseBlock").setCreativeTab(CreativeTabs.tabDecorations).setBlockTextureName(RefStrings.MODID + ":cheeseblock").setStepSound(Block.soundTypeSnow).setHardness(0.3f);
	lettuceCrop = new LettuceCrop().setBlockName("lettuceCrop").setBlockTextureName(RefStrings.MODID + ":lettucecrop");
}

public static void registerBlock(){
	GameRegistry.registerBlock(cheeeseBlock, cheeeseBlock.getUnlocalizedName());
	GameRegistry.registerBlock(lettuceCrop, lettuceCrop.getUnlocalizedName());
}
}

 

 

 

package com.tacocraft.Main;

import com.tacocraft.blocks.MBlocks;
import com.tacocraft.item.MItems;
import com.tacocraft.lib.RefStrings;

import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;

@Mod(modid = RefStrings.MODID, name = RefStrings.NAME , version = RefStrings.VERSION)

public class MainRegistry {

@SidedProxy(clientSide = RefStrings.CLIENTSIDE, serverSide = RefStrings.SERVERSIDE )
public static ServerProxy proxy;

@EventHandler
public static void PreLoad(FMLPreInitializationEvent PreEvent)
{
	proxy.registerRenderInfo();
	MItems.mainRegistry();
	MBlocks.mainRegistry();
	CraftingManager.mainRegistry();
}

@EventHandler
public static void Load(FMLInitializationEvent event)
{


}

@EventHandler
public static void PostLoad(FMLPostInitializationEvent PostEvent)
{


}
}

 

 

 

package com.tacocraft.item;

import com.tacocraft.blocks.MBlocks;
import com.tacocraft.lib.RefStrings;

import cpw.mods.fml.common.registry.GameRegistry;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.init.Blocks;
import net.minecraft.item.Item;
import net.minecraft.item.ItemFood;
import net.minecraft.item.ItemSeeds;
import net.minecraft.item.ItemStack;
import net.minecraftforge.common.MinecraftForge;

public class MItems {

public static Item taco;
public static Item cheese;
public static Item shreddedCheese;
public static Item flatBread;
public static Item groundBeef;

public static Item lettuce;
public static Item lettuceSeed;

public static void mainRegistry(){
	initializeItem();
	registerItem();
}

public static void initializeItem(){
	taco = new TacoEat(10, 12, false).setUnlocalizedName("taco").setCreativeTab(CreativeTabs.tabFood).setTextureName(RefStrings.MODID + ":taco");
	cheese = new Cheese(5, 12, false).setUnlocalizedName("cheese").setCreativeTab(CreativeTabs.tabFood).setTextureName(RefStrings.MODID + ":cheese");
	shreddedCheese = new ShreddedCheese(2, 12, false).setUnlocalizedName("shreddedCheese").setCreativeTab(CreativeTabs.tabFood).setTextureName(RefStrings.MODID + ":shreddedcheese");
	flatBread = new FlatBread(3, 12, false).setUnlocalizedName("flatBread").setCreativeTab(CreativeTabs.tabFood).setTextureName(RefStrings.MODID + ":flatbread");
	groundBeef = new GroundBeef(4, 12, true).setUnlocalizedName("groundBeef").setCreativeTab(CreativeTabs.tabFood).setTextureName(RefStrings.MODID + ":groundbeef");
	lettuce = new ItemFood(2, 12, false).setUnlocalizedName("lettuce").setCreativeTab(CreativeTabs.tabFood).setTextureName(RefStrings.MODID + ":lettuce");
	lettuceSeed = new ItemSeeds(MBlocks.lettuceCrop, Blocks.farmland).setUnlocalizedName("lettuceSeed").setCreativeTab(CreativeTabs.tabFood).setTextureName(RefStrings.MODID + ":lettuceseed");
}

public static void registerItem(){
	GameRegistry.registerItem(taco, taco.getUnlocalizedName());
	GameRegistry.registerItem(cheese, cheese.getUnlocalizedName());
	GameRegistry.registerItem(shreddedCheese, shreddedCheese.getUnlocalizedName());
	GameRegistry.registerItem(flatBread, flatBread.getUnlocalizedName());
	GameRegistry.registerItem(groundBeef, groundBeef.getUnlocalizedName());
	GameRegistry.registerItem(lettuce, lettuce.getUnlocalizedName());
	GameRegistry.registerItem(lettuceSeed, lettuceSeed.getUnlocalizedName());
	MinecraftForge.addGrassSeed(new ItemStack(lettuceSeed), 10);
}
}

 

 

 

Any idea how to fix the problem?

Thank you in advance.

Link to comment
Share on other sites

Show your seed and MItems classes.

Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! |

mah twitter

This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.

Link to comment
Share on other sites

Yes, this is a common mistake with custom seeds.  As diesieben07 points out, you have actually made your seed plant a "null".  This is a Java programming point that is important to understand -- if something is null and you assign another object with its value when you update that something later it doesn't automatically update the second object: it will still point to null.

 

A pattern like this doesn't work:

 

    ObjectA objA;

    ObjectA objB = objA;

    objA = new ObjectA();

 

In such an example, objB will stay null.  It will NOT track changes to objA.

 

By the way, I have a detailed tutorial on custom crops: http://jabelarminecraft.blogspot.com/p/minecraft-forge-172-creating-custom.html

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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