Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Create Fake Entities ( Items [ NOT MOBS ] )

Comments in 'Plugin Development' started by iDirtPlayzMC, Oct 21, 2015.

  1. iDirtPlayzMC
    Offline

    iDirtPlayzMC Active Member

    Joined:
    Apr 10, 2015
    Posts:
    264
    Minecraft User:
    iZenith_xPr
    How to create a fake entities ( drop on the ground - items - entities )
  2. Primus
    Offline

    Primus Notable Member

    Joined:
    Apr 7, 2015
    Posts:
    1,470
    Minecraft User:
    PrimusLV
    There was something about packets, i've never used them (directly) so i cant say no more :(
    TheSuperYT1122 likes this.
  3. iDirtPlayzMC
    Offline

    iDirtPlayzMC Active Member

    Joined:
    Apr 10, 2015
    Posts:
    264
    Minecraft User:
    iZenith_xPr
    Is ok figured it out about spawning entities but dk how to make it fake lol xD
  4. Hotshot_9930
    Offline

    Hotshot_9930 Notable Member Plugin Developer

    Joined:
    May 26, 2014
    Posts:
    665
    Plugins:
    2
    Minecraft User:
    HotshotHD
    Store the enitities you created in an array or config and cancel the InventoryPickupItemEvent if a player tries to pick them up.
  5. TheSuperYT1122
    Offline

    TheSuperYT1122 New Member

    Joined:
    Oct 18, 2015
    Posts:
    5
    Minecraft User:
    TheSuperYT1122
    I'll give you some credit for the trolling plugin I'm making :)
  6. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    So you want to spawn an item that is unpickable?

    @Primus note that you have to handle a lot of things if you use packets. It wouldn't work well if you send the entities while the player isn't using (loaded) that chunk.
  7. Primus
    Offline

    Primus Notable Member

    Joined:
    Apr 7, 2015
    Posts:
    1,470
    Minecraft User:
    PrimusLV
    But spawning actual entity (about 50) and handling InventoryPickupEvent? would'nt cause lag ?
  8. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
  9. Creeperface
    Offline

    Creeperface Notable Member Plugin Developer

    Joined:
    Nov 8, 2014
    Posts:
    1,346
    Plugins:
    4
    Minecraft User:
    CreeperFace
    so i must add entity on server start, save it and remove on server stop? or how?
  10. iDirtPlayzMC
    Offline

    iDirtPlayzMC Active Member

    Joined:
    Apr 10, 2015
    Posts:
    264
    Minecraft User:
    iZenith_xPr
    Spawn entities ( have particle in it ) function = spawn mobs ( mob ai from aliuly ) so basicly its a mob spawner
  11. Nawaf_Craft1b
    Offline

    Nawaf_Craft1b Active Member Plugin Developer

    Joined:
    May 8, 2015
    Posts:
    232
    Plugins:
    1
    Minecraft User:
    Nawaf_Craft1b
    if you want A Spawner MOBS ??
  12. wolfdale
    Offline

    wolfdale Active Member Plugin Developer

    Joined:
    Dec 3, 2014
    Posts:
    276
    Plugins:
    1
    Minecraft User:
    ace
    Look at code in ItemCasePE
  13. iDirtPlayzMC
    Offline

    iDirtPlayzMC Active Member

    Joined:
    Apr 10, 2015
    Posts:
    264
    Minecraft User:
    iZenith_xPr
    yes

Share This Page

Advertisement