Shampaggon / CrackShot

CrackShot plugin for Minecraft
59 stars 43 forks source link

Item Frames, Paintings, and Armor Stands break after getting shot. #54

Open EtheriTheory opened 5 years ago

EtheriTheory commented 5 years ago

Is it possible to stop CrackShot weapons from breaking item frames, paintings and armor stands? Is it posible to stop this? Thanks in advance. (1.14.4 server, Spigot, running Bukkit version)

Abwasserrohr commented 5 years ago

Hey there,

while I can't fix that issue, I can give you an answer how you can fix this problem for yourself using Skript and skript-mirror:

import:
  com.shampaggon.crackshot.events.WeaponDamageEntityEvent
  org.bukkit.event.hanging.HangingBreakEvent

on WeaponDamageEntityEvent:
  if event.getVictim() is a armor stand:
    event.setCancelled(true)

on HangingBreakEvent:
  if "%event.getCause()%" is "explosion":
    cancel event

Here is a video of this script working: https://youtu.be/vmGmBasYe3E