Crossbow Cartridges: Difference between revisions

From Official Gamemode 4 Wiki
Jump to navigation Jump to search
(created page)
(Added that beehive is a new valid item/block. Added multishot info. Closes https://github.com/Gamemode4Dev/GM4_Datapacks/pull/827)
 
(14 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{ModuleInfobox|name=Crossbow Cartridges|creator=Denniss|type=Stand Alone|versions=1.14}}This modules allows players to shoot different items from a crossbow.
{{ModuleInfobox|name=Crossbow Cartridges|creator=Denniss|type=Stand Alone|versions=1.14+}}This modules allows players to shoot various items from a crossbow.
==Features==
==Features==
When shooting a crossbow loaded with an arrow, certain items held in the offhand will be able to be shot. Below is a list of all items that can be shot from the offhand.
[[File:Pufferfish launching.gif|thumb|320x320px|Launching a Pufferfish]]
Certain items, when held in the offhand, can be launched by shooting a crossbow. When the player shoots the arrow, the item and the arrow will be consumed.  
 
===Valid Items===
Below is a list of all items that can be shot from the offhand.
 
{| class="wikitable"
{| class="wikitable"
|+
|+
Line 7: Line 12:
!Additional Details
!Additional Details
|-
|-
|Bucket of Fish (Any Type)
|{{Cycle|{{Stack|Bucket of Pufferfish}}{{Stack|Bucket of Cod}}{{Stack|Bucket of Axolotl}}{{Stack|Bucket of Salmon}}{{Stack|Bucket of Tropical Fish}}{{Stack|Bucket of Tadpole}}}} Bucket of aquatic mob
|The player is left with a bucket of water (only the fish is launched)
|The player is left with a bucket of water (only if the aquatic mob is launched)
|-
|-
|Splash Potions
|{{Stack|Splash Potion of Poison}} Splash Potions
|All potion data is stored, so custom potions will work as well
{{Stack|Lingering Potion of Regeneration}} Lingering Potions
|All potion data is stored.
Note: Due to a visual bug, the potion might not be visible mid-air
|-
|{{Stack|TNT}} TNT
|A primed TNT is launched
|-
|{{Stack|Fire Charge}} Fire Charge
|A small fireball is fired at high speed without gravity
|-
|-
|Lingering Potions
|{{Stack|Torch}} Torch (Any type)
|All potion data is stored, so custom potions will work as well
|A torch is placed on the block it lands on if possible;
otherwise, a torch item will drop at the location
|-
|-
|Torch
|{{Stack|String}} String (Tripwire)
|A torch is place on the block it lands on if possible.  
| Only if the player is standing inside a tripwire hook;
A torch item will drop if a torch cannot be placed
* Tripwire can be placed up to 40 blocks long.
* If a tripwire hook is present in the player's inventory, it will be placed at the end of the tripwire line on a solid block if possible.
|-
|-
|Fire Charge
|{{Stack|Beehive}}Bee Hive /{{Stack|Bee Nest}} Bee Nest
|A small fireball is fired at high speed without gravity
|Only if in offhand, bee will be shot and the total count in the hive/nest will decrease. All players within 15 blocks of the fired bee will here the sting sound.
|}
|}
===Multishot===
If the crossbow has the Multishot enchantment, some of the items make use of the functionality:
* {{Stack|TNT}} TNT, {{Stack|Fire Charge}} Fire Charges, and {{Stack|Torch}} Torches can shoot up to 3 of this item, taking 1 item from the player for each of these.
* {{Stack|Bucket of Pufferfish}} Buckets of Fish/Axolotl will shoot 2 additional "dead" duplicates to the side, which disappear shortly after and are purely visual.
*{{Stack|Beehive}}Bee Hive /{{Stack|Bee Nest}} Bee Nest can shoot up to 3 bees, removing them the nest/hive respectively.
===Spectral and Tipped Arrows===
Besides normal arrows, some of the functionality of the special arrows works as well:
* {{Stack|Spectral Arrow}} Spectral Arrows: The glowing effect is applied to the launched entity.
* {{Stack|Tipped Arrow}} Tipped Arrows: The effect on the tipped arrow is applied to the launched entity, although this is only effective on a mob in a bucket.


===Technical Details===
===Technical Details===
When the player shoots the arrow when a valid item is in the offhand, the item will be removed from the player. The entity shot will replace the arrow and follow the exact motion the arrow had. When firing a torch, the arrow will still be shot and can damage players as well.
The items as projectiles will copy the exact motion as the arrow would have had.  
 
When shooting a torch however, the arrow will still be shot. If an entity is hit instead of a block, the arrow/torch will be lost.
 
===Advancements===
===Advancements===
{| class="wikitable"
{| class="wikitable"
|+
|+
!Advancement
!Advancement
!Description
!Requirement
!Requirement
|-
|-
|Fish Launcher
|{{Advancement|Bucket of Tropical Fish|Sealife Slingshot|Launch an aquatic animal using a crossbow}}
|Launch a fish using a crossbow
| Hold a mob in a bucket in the offhand when shooting a crossbow
|Hold a bucket of fish in the offhand when firing a crossbow
|-
|{{Advancement|Tripwire Hook|Almost a Grappling Hook|Create a 40-block long tripwire circuit using a crossbow}}
| Hold at least 40 string in the offhand with a tripwire hook in your inventory, when shooting a crossbow, to create a maximum size tripwire circuit
|}
|}
==Learn More and Download==
==Learn More and Download==
{{Download|url=https://gm4.co/modules/crossbow-cartridges}}
{{YouTube|url=https://www.youtube.com/watch?v=XJiGvX7l-pI}}{{Download|url=https://gm4.co/modules/crossbow-cartridges}}
 
==Previous Versions==
===MC 1.14 Version ===
In the MC 1.14 Version string could not be fired with a crossbow.
 
==History==
==History==
{| class="wikitable"
{| class="wikitable"
Line 49: Line 85:
|01 Dec 2019
|01 Dec 2019
|Released Crossbow Cartridges
|Released Crossbow Cartridges
|-
|1.15
|05 Aug 2020
|Added tripwire
|-
|1.17
|23 Aug 2021
|Added TNT, Axolotl, and more torches
|-
|1.18
|08 Feb 2022
|Added functionality of Multishot, Spectral/Tipped Arrows
|-
|1.20
|12 Jun 2023
|Added firing bees from beehive in offhand
|}
|}
[[Category:All Modules]]
[[Category:Stand Alone Modules]]

Latest revision as of 16:54, 16 October 2023

Crossbow Cartridges

Module TypeStand Alone
Created byDenniss
Compatible MC Versions1.14+

This modules allows players to shoot various items from a crossbow.

Features

Launching a Pufferfish

Certain items, when held in the offhand, can be launched by shooting a crossbow. When the player shoots the arrow, the item and the arrow will be consumed.

Valid Items

Below is a list of all items that can be shot from the offhand.

Item Additional Details
Bucket of aquatic mob The player is left with a bucket of water (only if the aquatic mob is launched)
Splash Potions

Lingering Potions

All potion data is stored.

Note: Due to a visual bug, the potion might not be visible mid-air

TNT A primed TNT is launched
Fire Charge A small fireball is fired at high speed without gravity
Torch (Any type) A torch is placed on the block it lands on if possible;

otherwise, a torch item will drop at the location

String (Tripwire) Only if the player is standing inside a tripwire hook;
  • Tripwire can be placed up to 40 blocks long.
  • If a tripwire hook is present in the player's inventory, it will be placed at the end of the tripwire line on a solid block if possible.
Bee Hive / Bee Nest Only if in offhand, bee will be shot and the total count in the hive/nest will decrease. All players within 15 blocks of the fired bee will here the sting sound.

Multishot

If the crossbow has the Multishot enchantment, some of the items make use of the functionality:

  • TNT, Fire Charges, and Torches can shoot up to 3 of this item, taking 1 item from the player for each of these.
  • Buckets of Fish/Axolotl will shoot 2 additional "dead" duplicates to the side, which disappear shortly after and are purely visual.
  • Bee Hive / Bee Nest can shoot up to 3 bees, removing them the nest/hive respectively.

Spectral and Tipped Arrows

Besides normal arrows, some of the functionality of the special arrows works as well:

  • Spectral Arrows: The glowing effect is applied to the launched entity.
  • Tipped Arrows: The effect on the tipped arrow is applied to the launched entity, although this is only effective on a mob in a bucket.

Technical Details

The items as projectiles will copy the exact motion as the arrow would have had.

When shooting a torch however, the arrow will still be shot. If an entity is hit instead of a block, the arrow/torch will be lost.

Advancements

Advancement Requirement
Sealife Slingshot
Launch an aquatic animal using a crossbow
Hold a mob in a bucket in the offhand when shooting a crossbow
Almost a Grappling Hook
Create a 40-block long tripwire circuit using a crossbow
Hold at least 40 string in the offhand with a tripwire hook in your inventory, when shooting a crossbow, to create a maximum size tripwire circuit

Learn More and Download

Watch on YouTube Download

Previous Versions

MC 1.14 Version

In the MC 1.14 Version string could not be fired with a crossbow.

History

Version Date Change
1.14 01 Dec 2019 Released Crossbow Cartridges
1.15 05 Aug 2020 Added tripwire
1.17 23 Aug 2021 Added TNT, Axolotl, and more torches
1.18 08 Feb 2022 Added functionality of Multishot, Spectral/Tipped Arrows
1.20 12 Jun 2023 Added firing bees from beehive in offhand