🛏
🛏
🛏
🛏
BedWars Creative
Search
⌃K
🎨
Sandbox Mode
🪓
WorldEdit Commands
🍊
BedWars Scripting
📜
Changelog
🚜
Services
🎽
AbilityService
📣
AnnouncementService
🧱
BlockService
🔤
ChatService
⚔
CombatService
🌪
DisasterService
🪅
DataStoreService
🪨
EntityService
🔥
ForgeService
🏭
GeneratorService
👩🚀
GravityService
⌨
InputService
🎒
InventoryService
💎
ItemService
🛏
MatchService
ℹ
MessageService
🎁
ModelService
🦤
MountService
🏄♂
PlayerService
🏗
PartService
🎉
ParticleService
👆
PromptService
💰
ShopService
📻
SoundService
🪄
StatusEffectService
🚁
VehicleService
🚩
TeamService
🥇
UIService
🤝
Events
📦
Objects
📚
Types
⚙
Utilities
Powered By GitBook
Comment on page
💎

ItemService

Service for handling dropped items.
Example usage:
-- Randomly spawn resources around the map
while task.wait(0.2) do
local position = BlockService.getAboveRandomBlock()
ItemService.dropItem(ItemType.EMERALD, position)
end

Functions

dropItem(itemType: ItemType, position: Vector3, amount: bool | nil)

Drop an item at a location. If you supply an amount that will be the item stack size.
​
Previous
InventoryService
Next
MatchService
Last modified 3mo ago