Bullseye

Bullseye adds the ability for blocks to detect arrows with a sign. Allows you to create a Bullseye block (arrow detector block) by placing a sign, with special text, on any block. Whenever that block is hit with arrows, the sign will change to a redstone torch briefly.

This is different from a Target block because you can choose which sides the redstone signal will appear, you can customize the pulse length, and you can make it completely hidden by having the torch appear on the back of the block.

Features

  • Make blocks able to detect arrows hitting them!
  • The detection is shown by Bullseye signs turning into a redstone torch briefly
  • No commands needed
  • Can put multiple signs on one block
  • Customize the time the redstone torch will be active in ticks
  • Bullseye signs turn blue if placed on a valid block, and red if placed on an invalid block.
  • Can configure which blocks to allow in an allow/deny list.
  • Optional message to be displayed when the Bullseye block is hit with an arrow, message can be written on the last three lines.
    • Spaces needed between lines
    • Works with colors
  • Works with any block you can put a sign on!
    • If the block has an Inventory (Chest, Dispenser, Enchantment Table, etc.) crouch/sneak first (hold Shift) in order to put a sign on them
  • If the redstone torch breaks for any reason, it will drop the original sign instead of the torch
  • Option for arrows shot out of Dispensers to activate the signs (default true)
  • Option for arrows shot by Skeletons to activate the signs (default false)
  • Configure a maximum allowed tick duration (default 100 ticks, 5 seconds)

Usage

  1. Make a sign and put the text [bullseye], [bull], or [be] on the first line
    • Optionally put the number of ticks the redstone torch will activate for: [be 40] will be active for 2 seconds
    • Default 30 ticks
  2. Optionally any text on the next 3 lines will be sent to you when you activate the sign
  3. Now whenever you shoot the block the sign is on with an arrow, the sign will briefly turn into a redstone torch
    • Note: you don't have to hit the sign, just the block the sign is attached to
    • You can have multiple signs per block

 

Bullseye Demo

 

These are examples of valid signs:

Valid signs

 

Here is an example of an invalid sign:

Invalid sign

Known Issues

Minecraft 1.14 only

With Spigot 1.14, the server shows an error in the logs similar to the following:

[Server thread/ERROR]: Block at 84, 3, 182 is Block{minecraft:redstone_wall_torch} but has net.minecraft.server.v1_14_R1.TileEntitySign@37dedbb0. Bukkit will attempt to fix this, but there may be additional damage that we cannot recover.

 However, Bullseye works as expected so it can be ignored. This does not show on any other version tested from 1.13-1.19.1.

To-Do

  • Allow other projectiles besides arrows
  • Add permissions
  • Customize per sign how long the redstone torch is active (v0.10.0)
  • Maybe figure out how to get Chests and Enchanting tables to work correctly?? (v0.8)
  • Add config for which blocks to allow (v0.7)
  • Fix water issue (v0.5)
  • Add Furnaces, Crafting tables, etc. (v0.3)

Have more ideas? Create a ticket! :)

Source

Issues?

  • Either create a ticket or
  • Post them here.

Changelog

Version 0.10.0

  • Add custom activation time by adding ticks to the tag line
    • [bullseye 40] will have the sign activate for 40 ticks (2 seconds)
  • Fixed water breaking an activated Bullseye sign (again...)
  • Fixed Skeletons and dispensers able to trigger Bullseye blocks
  • Verified support for 1.13-1.19.1

Older changes:

Version 0.9.1

  • Fix issue where players could turn any amount of redstone torches into signs

Version 0.9.0

  • Support for 1.13 - 1.17
  • Completely fix issue with breaking activated redstone torches and having them drop
    • Now it drops the original sign
  • Change blockList to allow/deny list

Version 0.8.1

  • Support for 1.12
  • Note: 1.13 is working, but glitchy. Not recommend to use for 1.13. It will require more code changes to work properly

Version 0.8.0

  • If you can put a sign on it, it will work (got all blocks working)
  • Flowing water can't stop a Bullseye sign!
  • Better detection of the block hit by an arrow
  • Prevented explosions from dropping the redstone torch and cancel putting the sign back
  • Added an allowSkeleton option in the config to allow skeletons to activate Bullseye signs
  • Rewrote a lot of code because the old stuff was deprecated
  • Improvements and bug fixes
  • I did a 0.1.0 increase mainly because of just how much code was rewritten

Version 0.7.1

  • Highly recommended for users of v0.7.0
  • Fixed a bug that made all signs created think they were bullseye signs.

Version 0.7 (broken: use v0.7.1)

  • Added config.yml
  • Whitelist/Blacklist for which blocks to allow as Bullseye blocks.
  • Add option for arrows launched from dispensers to activate the Bullseye signs.
    • Default is true and can be changed in the config.yml
  • Built with CB1.3.1-R1.0, works with CB1.2.5
  • Some code optimization.

Version 0.6

  • Code optimization.
  • More work on the previous water bug.
  • Built with 1.2.5-R5.0 and working in 1.3.1-R0.1
    • In 1.3.1 when using a fly hack (such as zombe's) arrows don't shoot right.
  • Fixed issue where if a player hit a Bullseye sign, only that sign would change, even if there were others on the attached block.

Version 0.5

  • Highly recommended for all users
  • Fixed an issue where v0.4 would only work with previously made signs, and not new ones.
  • Confirmed it working on CraftBukkit 1.2.5-R5.0.

Version 0.4 (broken: use v0.5)

  • Bug fix: when placed near water, could potentially lead to an infinite amount of redstone torches

Version 0.3

  • Note blocks, Crafting tables, and Jukeboxes work like Furnaces and Dispensers.
  • Ender portal frames added to "invalid" list.

Version 0.2

  • Added ability for furnaces and dispensers to be Bullseye blocks.

Version 0.1

  • Initial release
  • If you place a water bucket directly on a redstone torch when its active, the torch will drop and the sign will still change back, allowing for an infinite amount of redstone torches
  • If changing the whitelist/blacklist blocks, the first line on an already made Bullseye sign won't change color until it is shot.

Comments

Posts Quoted:
Reply
Clear All Quotes

About This Project

Categories

Members

Recent Files