#actionbar

1 messages · Page 1 of 1 (latest)

ornate kernel
#

action bar on placeholder action hello so I need plugin or some function to display action bar with info when it get updated like I have essentials economy and when I get +1 coin it will update and show it like for 1 sec and dissapear thx

gray rivet
#

I think this should work with what you want

ornate kernel
#

yee but when I know nothing about api and came out only with this ...

#

Events: example1: type: custom custom_event_data: event: world.bentobox.aoneblock.events.MagicBlockEvent player_variable: getPlayer() variables_to_capture: - "%count%;BlockBreakEvent()" actions: default: - "message: &bYou mined 1 block!"

gray rivet
#

I'm going to bed rn so can't check but I'll try to see tomorrow

gray rivet
#
Events:
  moneyUpdate:
    type: custom
    custom_event_data:
      event: 
net.ess3.api.events.UserBalanceUpdateEvent
      player_variable: getPlayer()
      variables_to_capture:
      - "%balance%;getNewBalance()"
      - "%oldBalance%;getOldBalance()"
    actions:
      default:
      - "message: &bBefore: %oldBalance% Now:%balance%"
      - "message: &bYou +%math_%balance%-%oldBalance%%!" 
#

I have no idea if that works but it's worth a try

#

send a screenshot of what it says in chat when you get money

ornate kernel
#

and if I need it for other plugin? BentoBoxOneblock

#

AOneBlock

#

I came up with this

#

example1: type: custom custom_event_data: event: world.bentobox.aoneblock.events.MagicBlockEvent player_variable: getPlayer() variables_to_capture: - "%count%;BlockBreakEvent()" actions: default: - "to_all: message: you look so bad"

gray rivet
#

Event that is fired when the magic block spawns an entity
is that what you want?

#

what are you trying to check for?

#

and what do you want to execute/display?

ornate kernel
#

basically I want to make this

#

when u break magic block its shows action bar with these said

ornate kernel
#

nope

gray rivet
#

did it not send a chat message?

ornate kernel
#

I think this plugin dont have build it getplayer()

ornate kernel
#

no message

gray rivet
#

any errors?

ornate kernel
#

nope

#

wait

gray rivet
#

try that (I removed the variables_to_capture)

    type: custom
    custom_event_data:
      event: world.bentobox.aoneblock.events.MagicBlockEvent
      player_variable: getPlayer()
      variables_to_capture: []
    actions:
      default:
      - "to_all: message: you look so bad"
ornate kernel
gray rivet
#

I don't think this is possible with what both AOneBlock and ConditionalEvents offer

ornate kernel