Jump to content

NotLukas_

Members
  • Posts

    28
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

NotLukas_'s Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Yeah, that was the problem, Thanks for helping me
  2. I've just found out what it was.. I forgot to put register sounds in my base file i feel so stupid, lol but now when i throw it, i hear the sound but its like a bit slowed down or something
  3. Ok, I'm doing this now, I set it to false because my file isn't more than a few seconds
  4. Hi, i replaced the code for both so now my class looks like this: i still get the same results as last time, could it be that maybe the sound category in the item class has something to do with this?
  5. Oh yes, sorry I forgot about it package notlukas.mod.init; import net.minecraft.client.audio.Sound; import net.minecraft.item.Item; import net.minecraft.util.ResourceLocation; import net.minecraft.util.SoundEvent; import net.minecraftforge.fml.common.registry.GameRegistry; import notlukas.mod.ref; import notlukas.mod.util.utils; public class soundHandler { public static SoundEvent heart_crystal; public static SoundEvent mana_crystal; public static void registerSounds() { heart_crystal = registerSound("heart_crystal"); mana_crystal = registerSound("mana_crystal"); } private static SoundEvent registerSound(String soundName) { final ResourceLocation id = new ResourceLocation(ref.MODID, soundName); return GameRegistry.register(new SoundEvent(id).setRegistryName(id)); } } I also tried to play the sound with the /playsound and I can't tab it but if I type the sound in (mana_crystal) I can hear the sound its meant to play
  6. Hi, I have been trying to test my sounds and copied a egg item onto my custom item I replaced the sounds to make it run my sounds when it is thrown, but my sound is not playing My item: package notlukas.mod.item; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.projectile.EntityEgg; import net.minecraft.init.SoundEvents; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.stats.StatList; import net.minecraft.util.ActionResult; import net.minecraft.util.EnumActionResult; import net.minecraft.util.EnumHand; import net.minecraft.util.SoundCategory; import net.minecraft.world.World; import notlukas.mod.init.soundHandler; public class itemManaCrystal extends Item { public itemManaCrystal(String unlocalizedName, String registryName) { this.setUnlocalizedName(unlocalizedName); this.setRegistryName(registryName); this.setCreativeTab(CreativeTabs.MISC); } public ActionResult<ItemStack> onItemRightClick(ItemStack itemStackIn, World worldIn, EntityPlayer playerIn, EnumHand hand) { if (!playerIn.capabilities.isCreativeMode) { --itemStackIn.stackSize; } worldIn.playSound((EntityPlayer)null, playerIn.posX, playerIn.posY, playerIn.posZ, soundHandler.mana_crystal, SoundCategory.AMBIENT, 0.5F, 0.4F / (itemRand.nextFloat() * 0.4F + 0.8F)); if (!worldIn.isRemote) { EntityEgg entityegg = new EntityEgg(worldIn, playerIn); entityegg.setHeadingFromThrower(playerIn, playerIn.rotationPitch, playerIn.rotationYaw, 0.0F, 1.5F, 1.0F); worldIn.spawnEntityInWorld(entityegg); } playerIn.addStat(StatList.getObjectUseStats(this)); return new ActionResult(EnumActionResult.SUCCESS, itemStackIn); } } My log : Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release [18:58:51] [main/INFO] [GradleStart]: Extra: [] [18:58:52] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, /Users/Lukas/.gradle/caches/minecraft/assets, --assetIndex, 1.10, --accessToken{REDACTED}, --version, 1.10.2, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker] [18:58:52] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [18:58:52] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [18:58:52] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker [18:58:52] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker [18:58:52] [main/INFO] [FML]: Forge Mod Loader version 12.18.3.2185 for Minecraft 1.10.2 loading [18:58:52] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_112, running on Mac OS X:x86_64:10.12.2, installed at /Library/Java/JavaVirtualMachines/jdk1.8.0_112.jdk/Contents/Home/jre [18:58:52] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [18:58:52] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker [18:58:52] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin [18:58:52] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin [18:58:52] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [18:58:52] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [18:58:52] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [18:58:52] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [18:58:52] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [18:58:52] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [18:58:52] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work! [18:58:53] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing [18:58:53] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [18:58:53] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [18:58:54] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [18:58:54] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker [18:58:54] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker [18:58:54] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main} [18:58:56] [Client thread/INFO]: Setting user: Player598 [18:59:02] [Client thread/WARN]: Skipping bad option: lastServer: [18:59:02] [Client thread/INFO]: LWJGL Version: 2.9.2 [18:59:03] [Client thread/INFO] [FML]: MinecraftForge v12.18.3.2185 Initialized [18:59:03] [Client thread/INFO] [FML]: Replaced 231 ore recipes [18:59:03] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer [18:59:03] [Client thread/INFO] [FML]: Searching /Users/Lukas/Desktop/terrariamod/run/mods for mods [18:59:05] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load [18:59:06] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, notl] at CLIENT [18:59:06] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, notl] at SERVER [18:59:06] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Terraria Mod [18:59:07] [Client thread/INFO] [FML]: Processing ObjectHolder annotations [18:59:07] [Client thread/INFO] [FML]: Found 423 ObjectHolder annotations [18:59:07] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations [18:59:07] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations [18:59:07] [Client thread/INFO] [FML]: Applying holder lookups [18:59:07] [Client thread/INFO] [FML]: Holder lookups applied [18:59:07] [Client thread/INFO] [FML]: Applying holder lookups [18:59:07] [Client thread/INFO] [FML]: Holder lookups applied [18:59:07] [Client thread/INFO] [FML]: Applying holder lookups [18:59:07] [Client thread/INFO] [FML]: Holder lookups applied [18:59:07] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0 [18:59:07] [Forge Version Check/INFO] [ForgeVersionCheck]: [Forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json [18:59:07] [Client thread/INFO] [notl]: Registered item: fallen_star [18:59:07] [Client thread/INFO] [notl]: Registered item: mana_crystal [18:59:07] [Client thread/INFO] [notl]: Registered item: life_crystal [18:59:07] [Client thread/INFO] [notl]: Registered item: life_fruit [18:59:07] [Client thread/INFO] [notl]: Registered block: heart_lantern [18:59:07] [Client thread/INFO] [notl]: Register Render for fallen_star [18:59:07] [Client thread/INFO] [notl]: Register Render for mana_crystal [18:59:07] [Client thread/INFO] [notl]: Register Render for life_crystal [18:59:07] [Client thread/INFO] [notl]: Register Render for life_fruit [18:59:07] [Client thread/INFO] [notl]: Register Render for heart_lantern [18:59:07] [Client thread/INFO] [FML]: Applying holder lookups [18:59:07] [Client thread/INFO] [FML]: Holder lookups applied [18:59:07] [Client thread/INFO] [FML]: Injecting itemstacks [18:59:07] [Client thread/INFO] [FML]: Itemstack injection complete [18:59:07] [Forge Version Check/INFO] [ForgeVersionCheck]: [Forge] Found status: UP_TO_DATE Target: null [18:59:09] [sound Library Loader/INFO]: Starting up SoundSystem... [18:59:09] [Thread-6/INFO]: Initializing LWJGL OpenAL [18:59:09] [Thread-6/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [18:59:09] [Thread-6/INFO]: OpenAL initialized. [18:59:10] [sound Library Loader/INFO]: Sound engine started [18:59:13] [Client thread/INFO] [FML]: Max texture size: 4096 [18:59:13] [Client thread/INFO]: Created: 16x16 textures-atlas [18:59:16] [Client thread/INFO] [FML]: Injecting itemstacks [18:59:16] [Client thread/INFO] [FML]: Itemstack injection complete [18:59:16] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods [18:59:16] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Terraria Mod [18:59:19] [Client thread/INFO]: SoundSystem shutting down... [18:59:19] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com [18:59:19] [sound Library Loader/INFO]: Starting up SoundSystem... [18:59:19] [Thread-8/INFO]: Initializing LWJGL OpenAL [18:59:19] [Thread-8/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [18:59:19] [Thread-8/INFO]: OpenAL initialized. [18:59:19] [sound Library Loader/INFO]: Sound engine started [18:59:22] [Client thread/INFO] [FML]: Max texture size: 4096 [18:59:23] [Client thread/INFO]: Created: 512x512 textures-atlas [18:59:25] [Client thread/WARN]: Skipping bad option: lastServer: [18:59:25] [Client thread/ERROR]: ########## GL ERROR ########## [18:59:25] [Client thread/ERROR]: @ Post startup [18:59:25] [Client thread/ERROR]: 1281: Invalid value [18:59:26] [Realms Notification Availability checker #1/INFO]: Could not authorize you against Realms server: Invalid session id My .json file for the sounds: { "heart_crystal":{"category": "record", "sounds": [{"name": "notl:heart_crystal","stream":false}]}, "mana_crystal":{"category": "record", "sounds": [{"name": "notl:mana_crystal","stream":false}]} } I put my .json file in my assets and made a new folder called sounds in my assets and put the sounds there so my json would be in assets/notl/sounds.json and my sounds folder would be in assets/notl/sounds/
  7. Hi, so i've done the piece of code and it works, the X-ray thing isn't there anymore Although every time I break it the purple and black particles come out? is there a way to change this?
  8. Ok I will try this now
  9. Hi there, how exactly would I do this? Sorry I'm new to the coding thing
  10. So i made a .json file for a block from my cray fish model creator and well I ran into a problem I was trying to make a lantern and all the textures render correctly but this is what happened : https://www.dropbox.com/s/8eiit310q9488x6/Screen%20Shot%202017-01-03%20at%2019.11.59.png?dl=0 https://www.dropbox.com/s/xo0gx3mdvklshce/Screen%20Shot%202017-01-03%20at%2019.12.16.png?dl=0 https://www.dropbox.com/s/jykpge0ftvb3zun/Screen%20Shot%202017-01-03%20at%2019.12.37.png?dl=0 Here is the .json file code, I put the .json file in the models/block folder { "__comment": "Model generated using MrCrayfish's Model Creator (http://mrcrayfish.com/modelcreator/)", "textures": { "0": "blocks/log_oak", "1": "blocks/cobblestone", "2": "blocks/nether_brick" }, "elements": [ { "name": "Wood", "from": [ 5.0, 15.0, 4.0 ], "to": [ 12.0, 16.0, 12.0 ], "faces": { "north": { "texture": "#0", "uv": [ 0.0, 0.0, 7.0, 1.0 ] }, "east": { "texture": "#0", "uv": [ 0.0, 0.0, 8.0, 1.0 ] }, "south": { "texture": "#0", "uv": [ 0.0, 0.0, 7.0, 1.0 ] }, "west": { "texture": "#0", "uv": [ 0.0, 0.0, 8.0, 1.0 ] }, "up": { "texture": "#0", "uv": [ 0.0, 0.0, 7.0, 8.0 ] }, "down": { "texture": "#0", "uv": [ 0.0, 0.0, 7.0, 8.0 ] } } }, { "name": "Wood1", "from": [ 6.0, 13.0, 7.0 ], "to": [ 7.0, 15.0, 9.0 ], "faces": { "north": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 2.0 ] }, "east": { "texture": "#0", "uv": [ 0.0, 0.0, 2.0, 2.0 ] }, "south": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 2.0 ] }, "west": { "texture": "#0", "uv": [ 0.0, 0.0, 2.0, 2.0 ] }, "up": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 2.0 ] }, "down": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 2.0 ] } } }, { "name": "Wood2", "from": [ 10.0, 13.0, 7.0 ], "to": [ 11.0, 15.0, 9.0 ], "faces": { "north": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 2.0 ] }, "east": { "texture": "#0", "uv": [ 0.0, 0.0, 2.0, 2.0 ] }, "south": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 2.0 ] }, "west": { "texture": "#0", "uv": [ 0.0, 0.0, 2.0, 2.0 ] }, "up": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 2.0 ] }, "down": { "texture": "#0", "uv": [ 0.0, 0.0, 1.0, 2.0 ] } } }, { "name": "Wood3", "from": [ 6.0, 12.0, 7.0 ], "to": [ 11.0, 13.0, 9.0 ], "faces": { "north": { "texture": "#0", "uv": [ 0.0, 0.0, 5.0, 1.0 ] }, "east": { "texture": "#0", "uv": [ 0.0, 0.0, 2.0, 1.0 ] }, "south": { "texture": "#0", "uv": [ 0.0, 0.0, 5.0, 1.0 ] }, "west": { "texture": "#0", "uv": [ 0.0, 0.0, 2.0, 1.0 ] }, "up": { "texture": "#0", "uv": [ 0.0, 0.0, 5.0, 2.0 ] }, "down": { "texture": "#0", "uv": [ 0.0, 0.0, 5.0, 2.0 ] } } }, { "name": "Stone1", "from": [ 8.0, 13.0, 3.0 ], "to": [ 9.0, 14.0, 13.0 ], "faces": { "north": { "texture": "#1", "uv": [ 0.0, 0.0, 1.0, 1.0 ] }, "east": { "texture": "#1", "uv": [ 0.0, 0.0, 10.0, 1.0 ] }, "south": { "texture": "#1", "uv": [ 0.0, 0.0, 1.0, 1.0 ] }, "west": { "texture": "#1", "uv": [ 0.0, 0.0, 10.0, 1.0 ] }, "up": { "texture": "#1", "uv": [ 0.0, 0.0, 1.0, 10.0 ] }, "down": { "texture": "#1", "uv": [ 0.0, 0.0, 1.0, 10.0 ] } } }, { "name": "Stone2", "from": [ 8.0, 11.0, 3.0 ], "to": [ 9.0, 13.0, 4.0 ], "faces": { "north": { "texture": "#1", "uv": [ 0.0, 0.0, 1.0, 1.0 ] }, "east": { "texture": "#1", "uv": [ 0.0, 0.0, 1.0, 2.0 ] }, "south": { "texture": "#1", "uv": [ 0.0, 0.0, 1.0, 2.0 ] }, "west": { "texture": "#1", "uv": [ 0.0, 0.0, 1.0, 2.0 ] }, "up": { "texture": "#1", "uv": [ 0.0, 0.0, 1.0, 1.0 ] }, "down": { "texture": "#1", "uv": [ 0.0, 0.0, 1.0, 1.0 ] } } }, { "name": "Stone3", "from": [ 8.0, 11.0, 12.0 ], "to": [ 9.0, 13.0, 13.0 ], "faces": { "north": { "texture": "#1", "uv": [ 0.0, 0.0, 1.0, 1.0 ] }, "east": { "texture": "#1", "uv": [ 0.0, 0.0, 1.0, 2.0 ] }, "south": { "texture": "#1", "uv": [ 0.0, 0.0, 1.0, 2.0 ] }, "west": { "texture": "#1", "uv": [ 0.0, 0.0, 1.0, 2.0 ] }, "up": { "texture": "#1", "uv": [ 0.0, 0.0, 1.0, 1.0 ] }, "down": { "texture": "#1", "uv": [ 0.0, 0.0, 1.0, 1.0 ] } } }, { "name": "Nether1", "from": [ 1.0, 10.0, 1.0 ], "to": [ 15.0, 11.0, 15.0 ], "faces": { "north": { "texture": "#2", "uv": [ 0.0, 0.0, 14.0, 1.0 ] }, "east": { "texture": "#2", "uv": [ 0.0, 0.0, 14.0, 1.0 ] }, "south": { "texture": "#2", "uv": [ 0.0, 0.0, 14.0, 1.0 ] }, "west": { "texture": "#2", "uv": [ 0.0, 0.0, 14.0, 1.0 ] }, "up": { "texture": "#2", "uv": [ 1.0, 1.0, 14.0, 14.0 ] }, "down": { "texture": "#2", "uv": [ 1.0, 1.0, 14.0, 14.0 ] } } }, { "name": "StoneStand1", "from": [ 2.0, 1.0, 2.0 ], "to": [ 4.0, 10.0, 4.0 ], "faces": { "north": { "texture": "#1", "uv": [ 0.0, 0.0, 2.0, 9.0 ] }, "east": { "texture": "#1", "uv": [ 0.0, 0.0, 2.0, 9.0 ] }, "south": { "texture": "#1", "uv": [ 0.0, 0.0, 2.0, 9.0 ] }, "west": { "texture": "#1", "uv": [ 0.0, 0.0, 2.0, 9.0 ] }, "up": { "texture": "#1", "uv": [ 0.0, 0.0, 2.0, 2.0 ] }, "down": { "texture": "#1", "uv": [ 0.0, 0.0, 2.0, 2.0 ] } } }, { "name": "Nether2", "from": [ 1.0, 0.0, 1.0 ], "to": [ 15.0, 1.0, 15.0 ], "faces": { "north": { "texture": "#2", "uv": [ 0.0, 0.0, 14.0, 1.0 ] }, "east": { "texture": "#2", "uv": [ 0.0, 0.0, 14.0, 1.0 ] }, "south": { "texture": "#2", "uv": [ 0.0, 0.0, 14.0, 1.0 ] }, "west": { "texture": "#2", "uv": [ 0.0, 0.0, 14.0, 1.0 ] }, "up": { "texture": "#2", "uv": [ 1.0, 1.0, 14.0, 14.0 ] }, "down": { "texture": "#2", "uv": [ 1.0, 1.0, 14.0, 14.0 ] } } }, { "name": "StoneStand2", "from": [ 2.0, 1.0, 12.0 ], "to": [ 4.0, 10.0, 14.0 ], "faces": { "north": { "texture": "#1", "uv": [ 0.0, 0.0, 2.0, 9.0 ] }, "east": { "texture": "#1", "uv": [ 0.0, 0.0, 2.0, 9.0 ] }, "south": { "texture": "#1", "uv": [ 0.0, 0.0, 2.0, 9.0 ] }, "west": { "texture": "#1", "uv": [ 0.0, 0.0, 2.0, 9.0 ] }, "up": { "texture": "#1", "uv": [ 0.0, 0.0, 2.0, 2.0 ] }, "down": { "texture": "#1", "uv": [ 0.0, 0.0, 2.0, 2.0 ] } } }, { "name": "StoneStand3", "from": [ 12.0, 1.0, 12.0 ], "to": [ 14.0, 10.0, 14.0 ], "faces": { "north": { "texture": "#1", "uv": [ 0.0, 0.0, 2.0, 9.0 ] }, "east": { "texture": "#1", "uv": [ 0.0, 0.0, 2.0, 9.0 ] }, "south": { "texture": "#1", "uv": [ 0.0, 0.0, 2.0, 9.0 ] }, "west": { "texture": "#1", "uv": [ 0.0, 0.0, 2.0, 9.0 ] }, "up": { "texture": "#1", "uv": [ 0.0, 0.0, 2.0, 2.0 ] }, "down": { "texture": "#1", "uv": [ 0.0, 0.0, 2.0, 2.0 ] } } }, { "name": "StoneStand4", "from": [ 12.0, 1.0, 2.0 ], "to": [ 14.0, 10.0, 4.0 ], "faces": { "north": { "texture": "#1", "uv": [ 0.0, 0.0, 2.0, 9.0 ] }, "east": { "texture": "#1", "uv": [ 0.0, 0.0, 2.0, 9.0 ] }, "south": { "texture": "#1", "uv": [ 0.0, 0.0, 2.0, 9.0 ] }, "west": { "texture": "#1", "uv": [ 0.0, 0.0, 2.0, 9.0 ] }, "up": { "texture": "#1", "uv": [ 0.0, 0.0, 2.0, 2.0 ] }, "down": { "texture": "#1", "uv": [ 0.0, 0.0, 2.0, 2.0 ] } } } ] } This is the item class package notlukas.mod.block; import java.util.Random; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.block.state.IBlockState; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; import net.minecraft.util.ResourceLocation; import notlukas.mod.ref; public class blockHeartLantern extends Block { public blockHeartLantern(String unlocalizedName, String registryName) { super(Material.ROCK); this.setUnlocalizedName(unlocalizedName); this.setRegistryName(new ResourceLocation(ref.MODID, registryName)); this.setCreativeTab(CreativeTabs.BUILDING_BLOCKS); this.setLightLevel(10.0F); } @Override public Item getItemDropped(IBlockState state, Random rand, int fortune) { return Item.getItemFromBlock(this); } }
  11. btw i did not change any bit of code all code of mine stayed the same
  12. Hi, I fixed the problem somehow with the .json file? I installed some .json editor on my eclipse so then i copied and pasted the exact same thing and did the exact same thing as before but then it worked I was so surprised I guess you need a special file editor to make it work Should I lock topic?
  13. how exactly would i replace this bit of code? I've tried to replace it but I'm getting errors
  14. Hi, ill just have a look at your tutorials I don't really wanna bother you Thanks for helping ill update if it works or not
  15. yes the line at the top of the json is a squiggly bracket i copied the .json of an apple and renamed everything is this bad?
×
×
  • Create New...

Important Information

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