I have been able to get the texture to display correctly in hand using spyglass_in_hand.json and a file i made; sniper_in_hand.json. the problem is that the custom sniper texture will not display in the hotbar/inventory. I have been able to use this exact same setup for several other custom textures, but for some reason the spyglass isnt working. Any help appreciated
I am trying to add a sniper rifle to Minecraft with an addon, and I would like to add a zoom effect for sneaking players holding it. The only spyglass JSON files I've found have been related to the modeling and texture. I have found that the spyglass adjusts the FOV to 1/10 of whatever the player currently has it set to, and that reminded me of the setting FOV Can Be Altered By Gameplay.
The spyglass is a brand-new item that can be made with a bunch of new resources also introduced in the first half of the update. It can be pretty hard to figure out naturally how to make a spyglass, since it doesn't actually involve any glass blocks or glass panes. If you're looking to go adventuring and would like to craft the spyglass as soon as possible, look no further.
I'm not sure if this is a clientside animation for the zooming. It may be the case that the client determines when it zooms in, similar to how bows show a custom animation when you pull them. It's possible though for you to still create a zoom effect by applying slowness to the player.
To craft a spyglass, the first thing a player needs to do is find copper. The easiest way to do this would be by mining copper ore to acquire raw copper. Copper is a very common ore that generates in the range of Y=0 to Y=96, being most commonly found at Y=46 and Y=47. Players will only need two copper ingots, meaning a maximum of two copper ores need to be found to make a spyglass.
For the spyglass, players are concerned with the budding amethyst, which will occasionally grow amethyst clusters. Once these clusters reach their fourth and final stage of growth, they will drop amethyst shards when mined.
Thankfully for the player, a spyglass only requires a single amethyst shard. Assuming the player finds a single geode, they should get more than enough amethyst shards to craft their spyglass. However, if none of the budding amethysts have full growth shards on them, the player will need to wait for the shards to grow before they can harvest them.
df19127ead