I'm looking at the code for 1.11.2 for the potion for example:
if (!worldIn.isRemote)
{
EntityPotion entitypotion = new EntityPotion(worldIn, playerIn, itemstack1);
entitypotion.setHeadingFromThrower(playerIn, playerIn.rotationPitch, playerIn.rotationYaw, -20.0F, 0.5F, 1.0F);
worldIn.spawnEntity(entitypotion);
}
EntityPotion is not the same entity as the Item entity for potion if I were to press e to drop or toss the item on the ground that way also so there's that too, which made me question if it were possible.
So EntityPotion would need to be like EntityPotion entitypotion = new (itemStackIn)EntityPotion (worldIn, playerIn, itemstack1); or something like that.
Being the on right click event for spawning a thrown entity similarly but it uses shrink instead, to spawn the item entity instead of the entity for that item that is spawned when you right click, which is readable.
I'm looking at the code for 1.11.2 for the potion for example:
EntityPotion is not the same entity as the Item entity for potion if I were to press e to drop or toss the item on the ground that way also so there's that too, which made me question if it were possible.
So EntityPotion would need to be like EntityPotion entitypotion = new (itemStackIn)EntityPotion (worldIn, playerIn, itemstack1); or something like that.
I need this:
Being the on right click event for spawning a thrown entity similarly but it uses shrink instead, to spawn the item entity instead of the entity for that item that is spawned when you right click, which is readable.
In 1.15.2, there is the interface IRendersAsItem which the potion, snowball, egg, and enderpearl implement.
Uncrafting Table (1.15.2): https://www.minecraftforum.net/forums/mapping-and-modding-java-edition/minecraft-mods/wip-mods/3032965-uncrafting-table
Ruins of Humanity (mod, no longer being developed): https://www.minecraftforum.net/forums/mapping-and-modding-java-edition/minecraft-mods/wip-mods/2898701-1-12-2-wip-early-alpha-ruins-of-humanity
But then there is not gamemode 1 or gamemode 0, so then how are you summoning an item form of the block?