#Rosestacker stack size in skript?

1 messages · Page 1 of 1 (latest)

formal crest
#

I have looked in rose stacker stacked mob nbt and cant find anything about stack size so i dont know what to do now.

haughty ledge
#

prob have to use reflect

#

unless the entity name has the quantity of mobs in it, like "Zombie x5" or something

#

in which case you can just replace stuff in the string

formal crest
#

the display name returns none so i dont know how they do it

formal crest
haughty ledge
#

"%name of (entity)%" should not return none

formal crest
#
    broadcast "%name of victim%"``` this is just returning none?
haughty ledge
#

then whatever display above it thats showing the count is an armourstand or a text display

formal crest
#

okay so what do i have to do?

haughty ledge
#

find that entity

formal crest
#
    loop entities in radius 2 of victim:
        broadcast "%name of loop-entity%"``` yeah so i did this and its juts returning 2 nones..
haughty ledge
#

then you gotta do some reflect stuff

#

presumably with this expression

#

by importing one of these

formal crest
#

could you send them in a message please?

haughty ledge
#

top of this

formal crest
#
    org.bukkit.event.entity.EntityDeathEvent
    dev.rosewood.rosestacker.RoseStacker
    dev.rosewood.rosestacker.event.EntityStackMultipleDeathEvent
    dev.rosewood.rosestacker.manager.StackManager
    dev.rosewood.rosestacker.manager.StackSettingManager
    dev.rosewood.rosestacker.stack.StackedEntity
    dev.rosewood.rosestacker.stack.StackedItem
    dev.rosewood.rosestacker.stack.StackingThread
    dev.rosewood.rosestacker.stack.settings.EntityStackSettings
    dev.rosewood.rosestacker.utils.EntityUtils

on EntityDeathEvent:
    set {_e} to event.getEntity().getStackSize() 
    broadcast "%{_e}%"``` am i dumb? this is returning none
formal crest
#
    org.bukkit.event.entity.EntityDeathEvent
    com.google.common.base.Preconditions
    dev.rosewood.rosestacker.RoseStacker
    dev.rosewood.rosestacker.event.EntityStackMultipleDeathEvent
    dev.rosewood.rosestacker.manager.StackManager
    dev.rosewood.rosestacker.manager.StackSettingManager
    dev.rosewood.rosestacker.stack.StackedBlock
    dev.rosewood.rosestacker.stack.StackedEntity
    dev.rosewood.rosestacker.stack.StackedItem
    dev.rosewood.rosestacker.stack.StackedSpawner
    dev.rosewood.rosestacker.stack.StackingThread
    dev.rosewood.rosestacker.stack.settings.BlockStackSettings
    dev.rosewood.rosestacker.stack.settings.EntityStackSettings
    dev.rosewood.rosestacker.stack.settings.ItemStackSettings
    dev.rosewood.rosestacker.stack.settings.SpawnerStackSettings
    dev.rosewood.rosestacker.utils.EntityUtils
    dev.rosewood.rosestacker.utils.ItemUtils


on EntityStackMultipleDeathEvent:
    set {_e} to event.getEntityKillCount()
    broadcast "%{_e}% number"``` update: trying this and still returning none
haughty ledge
#

not sure then

limpid drift
formal crest
#

updated everything and it works now

limpid drift
formal crest
limpid drift
#

Ahhh, if you manage anything more. Keep it updated in here xD

#

Im trying to make it so if 100 pigs die, it drops 100 redstone etc

#

but its so confusing imo

haughty ledge
#

drop {_var} of (item) at (location)