how to immediately explode creeper

Discussion in 'Plugin Development' started by KoPeYkA, Aug 5, 2022.

Thread Status:
Not open for further replies.
  1. Offline

    KoPeYkA

    I'm messing around with an entity in a plugin, and I want to make a "bomb creeper". I set it to about bilion HP, set the blast radius to 200 blocks, and set it to explode 30 seconds after activation. But I still need it to be activated from the moment of spawn. On the Internet (YouTube) I found that I need to write You_Entity_tag.ignite(), but IDEA does not even offer me such a word and underlines the error. What to do?

    creeper*

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Aug 5, 2022
  2. Offline

    man_in_matrix

    Make a runnable that runs 30 seconds later using runTaskLater and then just explode the creeper, you can modify the creepers explosion damage and its health easily by getting the Creeper class
     
Thread Status:
Not open for further replies.

Share This Page