Minecraft Data Packs / Game Mechanic

CC's Improved Fletching Tables v1.3 (Custom GUI, Reworked Recipes, Custom Arrows!)

  • check_circle Advancements
  • check_circle Functions
  • check_circle Predicates
  • check_circle Recipes
  • 5,697 views, 13 today
  • 400 downloads, 1 today
  • 32
  • 28
  • 3
calebchan avatar calebchan
Level 46 : Master Explorer
41

Improved Fletching Tables




All the other Village workstations got a fancy GUI; Smithing Tables recently got their Netherite upgrading feature. Even Composters are still being crafted, as inefficient in making bone meal as they are. How come Fletching Tables didn't get one?

The only reason anyone ever crafts a Fletching Table is to grind sticks into emeralds. Let's show some love to my boy, the Fletching Table.



So with this datapack, I've made the following minor changes:


  Fletching Table

  • Shoot an arrow into the target of a Fletching Table to convert it into a Fletching-Crafting Table.
  • The Crafting Table texture will replace its top texture.

  Fletching
  • In the GUI, there will be a 3x3 crafting grid and an ouput slot, as well as a recipe book.
  • You can craft fletching-specific items in the 3x3 crafting grid, and the output will appear in the output slot.
  • Click on the output slot to fletch/craft the item, which will then be spawned as an item above the Fletching Table.
  • Note: Shift-clicking is not implemented, so it will always fletch/craft the entire stack i.e. the maximum count possible given the ingredients in the crafting grid.

  Recipe Book
  • Clicking on the Recipe Book will bring you to the Recipe List menu, as well as unload all the current items left in the 3x3 grid (again, by spawning them as items above the Table).
  • You can click on an item in the Recipe List to show the recipe for that one item.
  • Then, you can go back to the main Recipe List menu by clicking on the oak sign named "Back".
  • At any time, you can click on the Recipe Book to toggle between the 3x3 crafting grid and browsing the Recipe List.

  Advancements
  • Fletch Me A Table: Shoot an arrow into the target of a Fletching Table

  Vanilla Features
  • Arrow crafting only outputs 2 Arrows per craft instead of the usual 4.
  • Tipped Arrow crafting no longer works, since the fletching recipe uses Splash Potions instead of Lingering Potions.
  • Spectral Arrow crafting no longer works (for now), since the fletching recipe uses 1 Glowstone Dust + 1 Arrow = 1 Spectral Arrow. Am thinking whether I want to edit the Crafting Recipe of Spectral arrows to be less efficient?
  • Inground tipped arrows lose their potion effect and convert into regular arrows.

  Custom Arrows


Tipped Arrows
Shapeless: 1 Splash Potion + 8 Arrows = 8 Tipped Arrows (has the same potion effects)

Lingering Potions were too expensive for anyone to craft Tipped Arrows for daily usage. Splash Potions should've been the recipe.

The Fletching Table will also accept Splash Potions with custom potion effects, and transfer them to the tipped arrows appropriately!

TNT Rocket
Shapeless: 1 TNT Rocket (Any Flight Duration) (Must have at least one Large Ball pattern) + 1 TNT = 1 TNT Rocket (has the same Flight Duration and patterns)

TNT rockets function just like regular Firework Rockets, except they pack an extra explosive punch! Upon exploding (even upon collision with entities), it will summon an instantly-exploding creeper to cause massive explosion damage, even destroying blocks! Just make sure not to use these as Elytra boosts!

Spear Bolt
Shaped: 1 Prismarine Shard + 1 Stick + 1 Feather =4 Spear Bolts

Spear Bolts can be used as underwater projectiles! Fully charged thrown tridents only deal 8 damage, and then you need to retrieve your sinking trident; and even if it does have Loyalty, the DPS can never match up with its land-counterpart, the bow.

Spear Bolts are tipped arrows that are instantly converted into tridents with the same Motion/trajectory. They can be used to fight drowned(s) and Guardians! In fact, this whole datapack was solely made so that players have a way to craft these Spear Bolt projectiles for my upcoming datapack that deals with underwater features!

Spear Bolts can only be used with Crossbows; using Bows will drop the Spear Bolt straight downwards. Spear Bolts are compatible with crossbows that are enchanted with Quick Charge and Multishot! You can even pick up your Spear Bolts from the ground! There will be more variants and upgrades of the Spear Bolt in upcoming versions.

Phantom Arrow
Shaped: 1 Flint + 1 Stick + 1 Phantom Membrane = 4 Phantom Arrows

Phantom Arrows are like regular arrows, except the usual Feather fletch is replaced with the gravity-defying Phantom Membrane! Usable by both Bows and Crossbows, Phantom Arrows fly in a straight trajectory, ignoring the effects of gravity.

Phantom Arrows have the NoGravity:1b tag, and if they miss and stick to a wall, they turn back into normal arrows. They seem to freeze in motion underwater too. Since the Phantom Arrow is really a Tipped Arrow, it will be consumed even with an Infinity enchanted Bow. Don't worry about spamming these arrows into the sky and causing lag: after 500 ticks of being airborne, they lose their NoGravity:1b tag and will fall to the ground like a normal arrow!

Harpoon Arrow
Shapeless: 1 Spear Bolt + 1 Lead = 1 Harpoon Arrow

Harpoon Arrows function like Spear Bolts, except that upon striking a mob, it will leash that mob to the person who fired it. This can be useful for tagging a fleeing Guardian, before the Lead snaps taut and pulls the Guardian to you to finish it off with a clean melee strike. Or, it could be used for more sinister purposes, like enslaving dolphins to get their Dolphin's Grace for an underwater highway...

Harpoon Arrows, like Spear Bolts, can only be used with Crossbows and functions nigh identically. If fired from a Multishot Crossbow, only the middle arrow will become the Harpoon Arrow, while the two "ghost" arrows will be removed. Picking up a missed Harpoon Arrow from the ground still returns a Harpoon Arrow.

Leads have a very short 10-block range, so if you hit a mob that is further than 10 blocks away, the lead will instantly snap, spawning a Lead item on the mob. There is no way to circumvent this, but it's in line with the whole short rope thing.

There were many ways to do this that I've seen out there. Reelistic Fishing uses a Fishing Rod's bobber's Motion tag when you reel it back in, multiplying that by a factor before copying the Motion tag to the entity. But I didn't want to use a fishing rod's texture, plus the whole Fishing Rod actually being able to fish. Then, I also saw someone's datapack where it uses a Loyalty trident to tag the mob that it hit, and then constantly teleport the tagged mob to the returning trident. This seemed pretty cool, I might change it to this. We'll see.


  Safeguards
  • You cannot take any of the GUI items (the stained glass, the example recipe item) into your inventory.
  • You cannot press Q to toss out any of the GUI items.
  • Placing (or replacing) any of the GUI items with your own inventory item will spit out your item on the table, and replace the GUI/ghost item in the GUI (or clear it by setting the slot as air if your item was placed in the output slot.
  • Exiting or breaking the Fletching Table at any time will spit out its contents, along with the Fletching Table itself.
  • Grabbing a half-stack of the output doesn't count as taking it, and will reset it properly.
  • Pressing Q on the output crafts the whole stack, just like left-clicking it. Let's call this a feature.


Known Issues
  • Since the Fletching-Crafting Table is really a Barrel in disguise, this means that Villagers that chose this Fletching Table as a workstation will convert into Fishermen instead of Fletchers. This is unavoidable.
  • Fletch Me A Table, the advancement for converting a table will be granted only to the nearest player to the Fletching Table when it is converted. This means if a player shoots a fletching table while another player is closer, the advancement will be granted to the nearer player. To trace the owner of the arrow requires a UUID matching sequence, and like 4 scoreboards and everything and this shouldn't be too big a deal.
  • Using /kill @e will destroy the FallingBlock facade and the Fletching-Crafting Table will appear as a Barrel. The Barrel will act as a normal Barrel, though, since the command checks at a tagged FallingBlock whether the Barrel at its location is being open, etc.
CompatibilityMinecraft 1.16
Tags

3 Update Logs

v1.3 Phantom Arrows and Harpoon Arrows! : 08/14/2020 1:07:52 amAug 14th, 2020

  • Added Phantom Arrows and Harpoon Arrows
  • Adult Chickens and Parrots shed feathers as soon as they are ready to breed!
  • Spear Bolts/Harpoons that hit entities will now be removed from the world, just like normal arrows hitting entities. But missed Spear Bolts can be picked up from the ground.
  • Proper handling for Multishot custom arrows
  • Changed Spear Bolts from 2 to 4 per craft


  • Global in ground Tipped Arrows will lose their potion effect and be converted into normal arrows, rather than just delaying pickup.
  • Fixed namespaced bugs
  • Overall optimisations
LOAD MORE LOGS

Create an account or sign in to comment.

2
04/02/2021 12:02 am
Level 7 : Apprentice Mage
PhantomOfficial
PhantomOfficial avatar
Is there a way to just have the fletching table have the GUI instead of converting it to a fletching-crafting table
1
04/02/2021 12:29 am
Level 46 : Master Explorer
calebchan
calebchan avatar
Hello! So fletching tables have no inherent GUI. Think of them like the smithing table, before the smithing table got a use. They only have a crafting recipe and functions as a workstation, but that's it. In that regard, the fletching table is like any other block, like dirt or stone.

There's no (vanilla) way to convert a non-GUI block to have a GUI. It would be like adding a GUI to a dirt block.

So, what this datapack does is a simple trick: in place of the fletching table, there would be a barrel. The barrel acts as a GUI that is right-clickable, and then you can do magic in there. But the problem is that the barrel looks like... a barrel. So I mask it with NoGravity FallingSand that looks like a fletching table. So it's all an illusion; the fletching table block itself is removed the moment you convert it. Because you can't do anything with it.

If you're asking whether I could've made it so that you don't need to convert it, but rather when you place it down then it is already the "converted" version... well yes, but that involves some raycasting which I could learn up, but potential bugs and having to learn raycasting are a few reasons why I opted for the simpler, clunkier route.

hope this helps!
2
08/22/2020 3:42 pm
Level 44 : Master Imposter
RewindNoob
RewindNoob avatar
nice
Planet Minecraft

Website

© 2010 - 2021
www.planetminecraft.com

Welcome