User Tools

Site Tools


tutorial:blockentity_sync_itemstack

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tutorial:blockentity_sync_itemstack [2023/06/18 13:17] – added more info terratutorial:blockentity_sync_itemstack [2023/09/24 18:54] (current) – Use new minecraft wiki mattidragon
Line 5: Line 5:
 When you create a ''Block'' with ''BlockEntity'', you might want to place the block with predefined Nbt data from an ''ItemStack'' (of your ''BlockItem''), or save the ''BlockEntity'' data in the ''ItemStack'' after breaking the block. When you create a ''Block'' with ''BlockEntity'', you might want to place the block with predefined Nbt data from an ''ItemStack'' (of your ''BlockItem''), or save the ''BlockEntity'' data in the ''ItemStack'' after breaking the block.
  
-Before proceeding, you will need a [[tutorial:blocks|Block (with BlockItem)]], a [[tutorial:blockentity|BlockEntity]] and a way to [[block_modifying_blockentity|modify the BlockEntity's data]] for testing purposes.+Before proceeding, you will need a [[tutorial:blocks|Block (with BlockItem)]], a [[tutorial:blockentity|BlockEntity]] and a way to [[tutorial:blockentity_modify_data|modify the BlockEntity's data]] for testing purposes.
  
 ===== Block Drops with data ===== ===== Block Drops with data =====
Line 101: Line 101:
  
  
-More info on Loot tables on [[https://minecraft.fandom.com/wiki/Loot_table|Minecraft Wiki]]. +More info on Loot tables on [[https://minecraft.wiki/w/Loot_table|Minecraft Wiki]]. 
  
 Vanilla loot tables: .minecraft\versions\//[version]//\//[version]//.jar\data\minecraft\loot_tables\ Vanilla loot tables: .minecraft\versions\//[version]//\//[version]//.jar\data\minecraft\loot_tables\
tutorial/blockentity_sync_itemstack.1687094268.txt.gz · Last modified: 2023/06/18 13:17 by terra