Jump to content
  • Home
  • Files
  • Docs
Topics
  • All Content

  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Non-Forge
Currently Supported: 1.16.X (Latest) and 1.15.X (LTS)

Non-Forge

Forums

Site News (non-forge)
214
Supported Version Director…
By DaemonUmbra
September 24, 2020
Minecraft General
Anything related to Minecraft, but doesn't have things to do with Forge, goes here.
Subforums:
  • Let's Plays and other Videos!
  • Texture Packs
  • In-game Creations
  • Servers
2913
Loot table change for ches…
By Fizedi
15 minutes ago
Off-topic
846
Bedrock player model mod f…
By [ REDACTED ]
Wednesday at 03:55 PM


  • Posts

    • diesieben07
      Question about itemstack capabilities of crafting results

      By diesieben07 · Posted 7 minutes ago

      You cannot apply default values to all item stacks. There is no way. If you want your capability to have default values, you need to lazily initialize them whenever they are queried. For example in your capability: class MyCap { private String name = null; public String getName() { if (this.name == null) { this.name = "default value"; } return this.name; } }   This sounds very suspicious. What are you talking about?
    • Fizedi
      Loot table change for chest in plains house

      By Fizedi · Posted 13 minutes ago

      Hi All, Been trying to figure this out for a while now.    I want to make a change to the loot table so it will give me sugar cane. I have attached the json file I am testing with that should give suger cane (I replaced all the others with cane). Doesn't matter where I put it I can't get it to work. After each attempt I reload the world and tp to a spot I've never been to and then find a village (it is a flat world so not too hard). But I can't get it to work. Is there something I am missing.   I've tried putting it in saves/worlsname/data/loot_tables/minecraft/chests/village as well as in datapack folders and so many other places mentioned in google searches..   Someone please put me out of my misery...    Local game on PC, 1.15.2   Thanks! Fiz. village_plains_house.json
    • Tavi007
      Question about itemstack capabilities of crafting results

      By Tavi007 · Posted 16 minutes ago

      Hey, I stumbled across a bug in my mod, when using the workbench (and presumably any other sort of crafting station). I have an itemstack capability, that gets its default value through json files. So usually when the AttachCapabilityEvent<ItemStack> triggers, I can succesfully add these values to the item. However when the result slot in the workbench container updates to a new item, the attach event does not trigger and the capability stays empty. I added a hook using ItemCraftedEvent, so the values are being set, when the crafting results gets picked up, but I also added some costum tooltips, that displays the capability data. So currently it will not show any of my data, when the mouse hovers above the crafting result. Only after picking it up, the correct data can be seen. This might confuse the player, so I would like to know, if there is method for setting the default values the moment the resulting stack is generated. Also I fear, that the ItemCraftedEvent does not trigger for machines from other mods. This would mean, that it would be possible to create itemstacks with incorrect capability data. I hope my explanation is clear enough. If not, I can add some pictures to show you, what I mean.
    • diesieben07
      A problem occurred running the Server launcher.java.lang.reflect.InvocationTargetException

      By diesieben07 · Posted 2 hours ago

      1.12 is no longer supported on this forum. Please update to a modern version of Minecraft to receive support.
    • diesieben07
      Please help

      By diesieben07 · Posted 2 hours ago

      Really old Minecraft versions are no longer supported on this forum. Please update to a modern version of Minecraft to receive support.
  • Topics

    • Tavi007
      1
      Question about itemstack capabilities of crafting results

      By Tavi007
      Started 13 minutes ago

    • Fizedi
      0
      Loot table change for chest in plains house

      By Fizedi
      Started 11 minutes ago

    • diseasedworm
      1
      A problem occurred running the Server launcher.java.lang.reflect.InvocationTargetException

      By diseasedworm
      Started 4 hours ago

    • RETARDETH
      1
      Please help

      By RETARDETH
      Started 8 hours ago

    • Gordan
      1
      Game Crashing Exit Code: -1

      By Gordan
      Started 10 hours ago

  • Who's Online (See full list)

    • DARKHAWX
    • randomdude12300
    • Tavi007
    • diesieben07
    • Fizedi
    • Zeher_Monkey
    • discens
    • Iron1601
    • pupymk1
    • troublemaker_47
  • All Activity
  • Home
  • Non-Forge
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community