Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Denis12345

Members
  • Posts

    21
  • Joined

  • Last visited

Denis12345's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. ok so i do not know why it did not work but i just made it a patern and it is good now
  2. no i did not acctualy it was a clean log and yes i forgot to copy
  3. ruby_block.jsob "type": "minecraft:crafting_shaped", "pattern": [ "###", "###", "###" ], "key": { "#": { "item": "denmod:ruby_ingot" } }, "result": { "item": "denmod:ruby_block" } } ruby ingot from ruby block { "type": "minecraft:crafting_shaped", "ingredients": [ { "item": "denmod:ruby_block" } ], "result": { "item": "denmod:ruby_ingot", "count": 9 } } ruby from smelting { "type": "minecraft:smelting", "ingredient": { "item": "denmod:ruby_ore", "item": "denmod:deepslate_ruby_ore" }, "result": "denmod:ruby", "experience": 1, "cookingtime": 225 } ruby_ingot { "type": "minecraft:crafting_shaped", "pattern": [ "###" ], "key": { "#": { "item": "denmod:ruby" } }, "result": { "item": "denmod:ruby_ingot" } }
  4. { "type": "minecraft:crafting_shaped", "ingredients": [ { "item": "denmod:ruby_block" } ], "result": { "item": "denmod:ruby", "count": 9 } } The textures are right the name the drop from it but when i try to craft it back it dose not work
  5. I still dose not render the texture look { "parent": "item/generated", "textures": { "layer0": "den:item/ruby" } } the second { "item.den.ruby": "Ruby" } MAyeby i am doing something wrong agin
  6. ModItems package com.Denis.den.item; import com.Denis.den.den; import net.minecraft.world.item.CreativeModeTab; import net.minecraft.world.item.Item; import net.minecraftforge.eventbus.api.IEventBus; import net.minecraftforge.registries.DeferredRegister; import net.minecraftforge.registries.ForgeRegistries; import net.minecraftforge.registries.RegistryObject; public class ModItems { public static final DeferredRegister<Item> ITEMS = DeferredRegister.create(ForgeRegistries.ITEMS, den.MOD_ID); public static final RegistryObject<Item> RUBY = ITEMS.register("ruby", () -> new Item(new Item.Properties().tab(CreativeModeTab.TAB_FOOD))); public static void register(IEventBus eventBus) { ITEMS.register(eventBus); } } My .mod file package com.Denis.den; import com.Denis.den.item.ModItems; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.eventbus.api.IEventBus; import net.minecraftforge.eventbus.api.SubscribeEvent; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent; import net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent; import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext; // The value here should match an entry in the META-INF/mods.toml file @Mod(den.MOD_ID) public class den { public static final String MOD_ID = "den"; // Very Important Comment public den() { IEventBus modEventBus = FMLJavaModLoadingContext.get().getModEventBus(); ModItems.register(modEventBus); modEventBus.addListener(this::commonSetup); MinecraftForge.EVENT_BUS.register(this); } private void commonSetup(final FMLCommonSetupEvent event) { } // You can use EventBusSubscriber to automatically register all static methods in the class annotated with @SubscribeEvent @Mod.EventBusSubscriber(modid = MOD_ID, bus = Mod.EventBusSubscriber.Bus.MOD) public static class ClientModEvents { @SubscribeEvent public static void onClientSetup(FMLClientSetupEvent event) { } } } en_us.json { "item.den.Ruby": "Ruby" } Ruby.json { "parent": "item/generated", "textures": { "layer0": "den:item/Ruby" } } The png name is Ruby.png
  7. I did this but i forgot to inport itemstack so i thought it was wrong
  8. Sorry I forgot to make it java code
  9. This is the code package com.Denis.denmod; import com.Denis.denmod.init.BlockInit; import com.Denis.denmod.init.ItemInit; import net.minecraft.world.item.CreativeModeTab; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.eventbus.api.IEventBus; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext; @Mod("denmod") public class Denmod { public static final String MOD_ID = "denmod"; public static final CreativeModeTab Everything= new CreativeModeTab ("Everything") { public ItemStack makeIcon() { return new ItemStack(ItemInit.RUBY.get()); } } public Denmod() { IEventBus bus = FMLJavaModLoadingContext.get().getModEventBus(); ItemInit.ITEMS.register(bus); BlockInit.BLOCKS.register(bus); MinecraftForge.EVENT_BUS.register(this); } } The error is Please insert ";" to complete The fiels Declaration Right at the closing Braket of this: Public static final Creative mode tab
×
×
  • Create New...

Important Information

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