Skip to content

bug with remove_item and wait_ticks #114

@kazotaruumc72

Description

@kazotaruumc72

Events:
wheat:
type: custom
custom_event_data:
event: me.rivaldev.harvesterhoes.api.events.RivalBlockBreakEvent
player_variable: getPlayer()
variables_to_capture:
- '%crop_type%;getCrop().getType()'
conditions:
- '%crop_type% contains WHEAT'
actions:
default:
- "console_command: coreplugin:kcore giveitem %player_name% nexo:wheat 1-3"
- "console_command: eco give pixelcoins %player_name% 1"
- "console_command: cyberlevel addExp 1 %player_name%"
- "wait_ticks: 1" # 10-20 ticks = 0.5-1 seconde
- "remove_item: %checkitem_remove_mat:WHEAT%"
- "wait_ticks: 1" # 10-20 ticks = 0.5-1 seconde
- "remove_item: %checkitem_remove_mat:WHEAT_SEEDS,amt:{checkitem_mat:WHEAT_SEEDS}%"

https://imgur.com/a/4RYdsPb
version:
This server is running Purpur version 1.21.8-2497-HEAD@a49cdb9 (2025-09-19T01:51:04Z) (Implementing API version 1.21.8-R0.1-SNAPSHOT)

  • You are running the latest version

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions