Add the player-use peripheral for CC:Tweaked #9
No reviewers
Labels
No Label
Focus/Block Entities
Focus/Blocks
Focus/CC
Focus/Effects
Focus/Forge
Focus/Ores
Focus/Recipes
Focus/Rendering
Focus/Texturing
Focus/UI
Focus/Wiki
Kind/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: bans-minecraft/utamacraft#9
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "BlakeRain/utamacraft:cc-playerish-peripheral"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
In reference to #8, this PR adds the ability to create peripherals for CC:Tweaked turtles. It also includes a peripheral that emulates a player, and adds a
use()
method that will attempt to use the block in-front of the turtle (up to four blocks away).Crating the Upgrade
The upgrade can be crafted by combining four gold ingots, four redstone and an eye of ender.
The upgrade can be combined with a normal or advanced turtle in the usual way of throwing them into a crating interface to combine them. Currently the upgrade will sit in the left socket. It might be possible to use the Lua
turtle
API to mount the peripheral on the right.Using the Upgrade
Once the upgrade is added to a turtle, the peripheral can be wrapped in the usual way using the
peripheral
API. This peripheral yields a single method, calleduse
, which takes no arguments and performs the use operation. The method will return eithernil
if used incorrectly or a string representation of theInteractionResult
enumeration (e.g."CONSUME"
or"SUCCESS"
). I don't know what all the enumerators mean.